-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
以图搜图如何使用自己的模型 #234
Comments
If you want to pass in the weights of a PyTorch model, you can pass it in as parameter: |
我可以使用timm库注册自己的模型吗 |
我想要替换掉以图搜图里的模型,使用自己的行人重识别模型。换句话说,我想让我的行人重识别模型可以像以图搜图项目那样部署在服务器上 |
https://github.com/huggingface/pytorch-image-models/tree/main/timm/models |
这个里面没有我使用的模型 |
Then you'll have to implement an op yourself. |
|
https://towhee.readthedocs.io/en/latest/operator/usage.html#run-pipeline-with-named-operators |
@junjiejiangjjj |
You can use |
@junjiejiangjjj |
@junjiejiangjjj Thank you for your prompt reply! |
在
p_embed = (
pipe.input('src')
.flat_map('src', 'img_path', load_image)
.map('img_path', 'img', ops.image_decode())
.map('img', 'vec', ops.image_embedding.timm(model_name=MODEL, device=DEVICE))
)
现在我有一个行人重识别的模型,在这里我需要怎么样做,才能替换为自己的模型。非常期待您的回复,感谢!
The text was updated successfully, but these errors were encountered: