milvus-io / bootcamp

Dealing with all unstructured data, such as reverse image search, audio search, molecular search, video analysis, question and answer systems, NLP, etc.

Home Page:https://milvus.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

http://127.0.0.1:8001/ 添加/data 的时候 会有Error with extracting feature from image unexpected EOF 的错误

mayyalove opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

报错日志
docker logs -n 0 -f img-search-webserver
INFO: 172.16.238.1:60296 - "OPTIONS /img/load HTTP/1.1" 200 OK
2023-03-23 02:13:37,482 - 140422268770112 - helpers.py-helpers:247 - INFO: Loading pretrained weights from url (https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-rsb-weights/resnet50_a1_0-14fe96d1.pth)
2023-03-23 02:13:37,482 | INFO | helpers.py | load_pretrained | 247 | Loading pretrained weights from url (https://github.com/rwightman/pytorch-image-models/releases/download/v0.1-rsb-weights/resnet50_a1_0-14fe96d1.pth)
2023-03-23 02:13:38,528 | ERROR | load.py | extract_features | 37 | Error with extracting feature from image unexpected EOF, expected 18818777 more bytes. The file might be corrupted.
2023-03-23 02:13:38,528 - 140422268770112 - load.py-load:37 - ERROR: Error with extracting feature from image unexpected EOF, expected 18818777 more bytes. The file might be corrupted.
2023-03-23 02:13:39,463 - 140422268770112 - milvus_helpers.py-milvus_helpers:72 - ERROR: Failed to load data to Milvus: list index out of range
2023-03-23 02:13:39,463 | ERROR | milvus_helpers.py | insert | 72 | Failed to load data to Milvus: list index out of range
ERROR: Exception in ASGI application
我换了jpg png的图片都不行 是什么原因呢

Expected Behavior

No response

Steps To Reproduce

No response

Software version

Milvus: [e.g. 2.0.0rc1]
Server: [e.g. 2.0.0]
Client: [e.g. 2.0.0]

Anything else?

No response

@mayyalove The error shows that the weights file might be corrupted. Can you remove the file in ~/.cache/torch/hub/checkpoints and redownload it?

@shiyu22
I deleted it and it's working now !thanks