Comments (8)
If you want to pass in the weights of a PyTorch model, you can pass it in as parameter: ops.image_embedding.timm(model_name=MODEL, device=DEVICE, checkpoint_path=YOUR_WEIGHTS_PATH)
If it contains PyTorch code, a new operator needs to be created.
https://towhee.readthedocs.io/en/latest/operator/usage.html#run-pipeline-with-named-operators
You can refer to this implementation
https://towhee.io/image-embedding/timm/raw/branch/main/timm_image.py
from examples.
If you want to pass in the weights of a PyTorch model, you can pass it in as parameter:
ops.image_embedding.timm(model_name=MODEL, device=DEVICE, checkpoint_path=YOUR_WEIGHTS_PATH)
If it contains PyTorch code, a new operator needs to be created. https://towhee.readthedocs.io/en/latest/operator/usage.html#run-pipeline-with-named-operators You can refer to this implementation https://towhee.io/image-embedding/timm/raw/branch/main/timm_image.py
我可以使用timm库注册自己的模型吗
from examples.
If you want to pass in the weights of a PyTorch model, you can pass it in as parameter:
ops.image_embedding.timm(model_name=MODEL, device=DEVICE, checkpoint_path=YOUR_WEIGHTS_PATH)
If it contains PyTorch code, a new operator needs to be created. https://towhee.readthedocs.io/en/latest/operator/usage.html#run-pipeline-with-named-operators You can refer to this implementation https://towhee.io/image-embedding/timm/raw/branch/main/timm_image.py
我想要替换掉以图搜图里的模型,使用自己的行人重识别模型。换句话说,我想让我的行人重识别模型可以像以图搜图项目那样部署在服务器上
from examples.
https://github.com/huggingface/pytorch-image-models/tree/main/timm/models
Can you find the model you are using there? If so, you can use timm.
from examples.
https://github.com/huggingface/pytorch-image-models/tree/main/timm/models Can you find the model you are using there? If so, you can use timm.
这个里面没有我使用的模型
from examples.
Then you'll have to implement an op yourself.
from examples.
Then you'll have to implement an op yourself.
具体要怎么实现呢,可以具体说一下吗
from examples.
Then you'll have to implement an op yourself.
具体要怎么实现呢,可以具体说一下吗
https://towhee.readthedocs.io/en/latest/operator/usage.html#run-pipeline-with-named-operators
from examples.
Related Issues (20)
- MilvusException: <MilvusException: (code=2, message=Fail connecting to server on 127.0.0.1:19530. Timeout)> HOT 2
- How to free GPU memory HOT 1
- RuntimeError: Loading operator with error:Load operator failed HOT 5
- how to ensure that the model is only loaded once when extracting feature vectors HOT 1
- TypeError: 'torch._C.Node' object is not subscriptable HOT 2
- huggingface_hub.utils._errors.LocalEntryNotFoundError ... HOT 4
- 数据存放失败 HOT 7
- dpr模型无法下载
- convert_video2gif function error
- Gradio界面出来无响应
- Repair two small pits for 1_build_text_image_search_engine.ipynb
- Problem with Running sample NLP Text Search application
- 1_build_image_search_engine更改metric_type为COSINE后,检索时出错【expected=COSINE, actual=L2】 HOT 4
- Error in embeddings pipe HOT 6
- Memory leakage during image feature extraction(OOM)
- web page does not exist url: https://towhee.io/towhee-api/v1/repos/image-decode/--deepcopy--/tree?recursive=true&ref=main HOT 2
- when i insert vector to milvus,i get zero results, but the code is copied and pasted over. HOT 10
- The search results did not respond after modifying the limit value.
- Network fluctuations? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from examples.