-
Notifications
You must be signed in to change notification settings - Fork 606
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
Failed to search vectors in Milvus:Index out of range And Failed to load data to Milvus: 'NoneType' object has no attribute 'insert' #643
Comments
The Error:
It means that your search is incorrect, you can check the search vectors.
I think it occurs when Milvus does not connect successfully, so the Milvvus object is None, and it does not have 'insert'. So please check the Milvus connections and you can refer to this issue #636 |
@akimisr I think you are right, the code |
@shiyu22 opened PR with the required changes, please review! Looking forward to contribute more. 🎉 |
Thanks @avats-dev :) Closed by #808 |
Hello everyone, I have two errors when I use Image Similarity Search with object detection. What are the reasons for this? There is no response in web search, the following is my environment.
`# packages in environment at C:\ProgramData\Anaconda3\envs\milvus_od:
Name Version Build Channel
absl-py 0.13.0
aiofiles 0.7.0
alabaster 0.7.12
astor 0.8.1
astunparse 1.6.3
atomicwrites 1.4.0
attrs 21.2.0
Babel 2.9.1
ca-certificates 2021.7.5 haa95532_1 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
cachetools 4.2.2
certifi 2021.5.30 py38haa95532_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
chardet 3.0.4
charset-normalizer 2.0.4
clang 5.0
click 7.1.2
colorama 0.4.4
decorator 4.4.2
diskcache 5.2.1
docutils 0.17.1
fastapi 0.65.2
flatbuffers 1.12
gast 0.3.3
google-auth 1.35.0
google-auth-oauthlib 0.4.6
google-pasta 0.2.0
grpcio 1.37.1
grpcio-tools 1.37.1
h11 0.12.0
h5py 3.1.0
idna 2.8
imagesize 1.2.0
Jinja2 3.0.1
joblib 1.0.1
keras 2.6.0
Keras-Preprocessing 1.1.2
Markdown 3.3.4
MarkupSafe 2.0.1
mmh3 3.0.0
more-itertools 8.9.0
numpy 1.19.3
oauthlib 3.1.1
opencv-python 4.5.2.54
openssl 1.1.1l h2bbff1b_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
opt-einsum 3.3.0
packaging 21.0
paddlepaddle 2.1.0
pandas 1.2.4
Pillow 8.3.2
pip 21.2.2 py38haa95532_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
pluggy 0.13.1
protobuf 3.17.3
py 1.10.0
pyasn1 0.4.8
pyasn1-modules 0.2.8
pydantic 1.8.2
Pygments 2.10.0
pymilvus 2.0.0rc4
pymilvus-orm 2.0.0rc4
PyMySQL 1.0.2
pyparsing 2.4.7
pytest 5.3.4
python 3.8.3 he1778fa_2 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
python-dateutil 2.8.2
python-multipart 0.0.5
pytz 2021.1
PyYAML 5.4.1
requests 2.22.0
requests-oauthlib 1.3.0
rsa 4.7.2
scikit-learn 0.24.2
scipy 1.7.1
setuptools 52.0.0 py38haa95532_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
six 1.15.0
snowballstemmer 2.1.0
Sphinx 2.3.1
sphinxcontrib-applehelp 1.0.1
sphinxcontrib-devhelp 1.0.1
sphinxcontrib-htmlhelp 1.0.2
sphinxcontrib-jsmath 1.0.1
sphinxcontrib-qthelp 1.0.2
sphinxcontrib-serializinghtml 1.1.3
sqlite 3.36.0 h2bbff1b_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
starlette 0.14.2
tensorboard 2.6.0
tensorboard-data-server 0.6.1
tensorboard-plugin-wit 1.8.0
tensorflow 2.6.0
tensorflow-estimator 2.6.0
termcolor 1.1.0
threadpoolctl 2.2.0
typing-extensions 3.7.4.3
ujson 4.1.0
urllib3 1.25.11
uvicorn 0.13.4
vc 14.2 h21ff451_1 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
vs2015_runtime 14.27.29016 h5e58377_2 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wcwidth 0.2.5
Werkzeug 2.0.1
wheel 0.37.0 pyhd3eb1b0_1 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wincertstore 0.2 py38_0 http://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
wrapt 1.12.1
`
Error message:
2021-09-09 23:04:04,120 | ERROR | milvus_helpers.py | search_vectors | 107 | Failed to search vectors in Milvus:Index out of range
ERROR 0m: Exception in ASGI application
2021-09-10 07:48:36,401 | ERROR | milvus_helpers.py | insert | 66 | Failed to load data to Milvus: 'NoneType' object has no attribute 'insert'
�[31mERROR�[0m: Exception in ASGI application
Traceback (most recent call last):
File "C:\RIS\reverse_image_search\object_detection\server\src\milvus_helpers.py", line 59, in insert
mr = self.collection.insert(data)
AttributeError: 'NoneType' object has no attribute 'insert'
The text was updated successfully, but these errors were encountered: