Skip to content
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

milvus/img/add 错误 #1

Open
Challotter opened this issue Mar 17, 2023 · 5 comments
Open

milvus/img/add 错误 #1

Challotter opened this issue Mar 17, 2023 · 5 comments

Comments

@Challotter
Copy link

{ "code": 10100, "message": "Image.__init__() missing 3 required positional arguments: 'height', 'channel', and 'mode'" }

@AndsGo
Copy link
Owner

AndsGo commented Jun 15, 2023

你可以提供下请求参数吗,看着应该是上传的image用点问题

@TankTim68
Copy link

{
"id": 3,
"url": "https://k.sinaimg.cn/n/sinakd20230518s/688/w1080h408/20230518/4070-4475f485dcdb0ac410fa739177e34874.png/w700d1q75cms.jpg",
"tags": "1",
"brief": "2",
"table": "test"
}
也是报这个错误了。

{
"code": 10100,
"message": "init() missing 3 required positional arguments: 'height', 'channel', and 'mode'"
}

@AndsGo
Copy link
Owner

AndsGo commented Jul 8, 2023

你这个报错应该是模型加载的问题,你可以先手动下载下然后再上传到指定文件夹。linux 默认下载到 /root/.cache/torch/hub/checkpoints ,windows 默认下载到 C:\Users\Administrator.cache\torch\hub\checkpoints

模型地址 : https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-rsb-weights/resnet50_a1_0-14fe96d1.pth

@golangboy
Copy link

pip install towhee==0.8.0

@huotianyu
Copy link

我也是把towhee从0.6.0升级到pip install towhee==0.8.0后,可以上传图片成功

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants