pytorch-ssd
pytorch-ssd copied to clipboard
About repo libraries
Hi,
when i try to run this demo file with python3
, python gives me an error about missing libraries like
from vision.ssd.vgg_ssd import create_vgg_ssd, create_vgg_ssd_predictor from vision.ssd.mobilenetv1_ssd import create_mobilenetv1_ssd, create_mobilenetv1_ssd_predictor
Then i used this command and installed missing vision
library
pip3 install vision
But i can't still run the demo because it gives:
Error processing line 1 of /home/deniz/.local/lib/python3.6/site-packages/vision-1.0.0-nspkg.pth:
Traceback (most recent call last): File "/usr/lib/python3.6/site.py", line 174, in addpackage exec(line) File "<string>", line 1, in <module> File "<frozen importlib._bootstrap>", line 568, in module_from_spec AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored Traceback (most recent call last): File "run_ssd_live_demo.py", line 1, in <module> from vision.ssd.vgg_ssd import create_vgg_ssd, create_vgg_ssd_predictor ModuleNotFoundError: No module named 'vision'
When i use pip3 freeze
or pip freeze
i can see this library in package list
How can i resolve this? Thanks.
vision is not pip. that is folder name
There is some path problem that you are facing. You need to fix your paths probably. Make sure you run the file from the root of this git repo and not somewhere outside.
Thank you. I deleted and reinstalled repo files. And now it gives this
select timeout select timeout OpenCV Error: Assertion failed (total() == 0 || data != __null) in Mat, file /home/nvidia/build_opencv/opencv/modules/core/include/opencv2/core/mat.inl.hpp, line 500 Traceback (most recent call last): File "run_ssd_live_demo.py", line 60, in <module> ret, orig_image = cap.read() cv2.error: /home/nvidia/build_opencv/opencv/modules/core/include/opencv2/core/mat.inl.hpp:500: error: (-215) total() == 0 || data != __null in function Mat
I think it's not about about repo but i can use opencv2
I guess the path to the image is not correct and it is not able to open the file.