-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Description
I have tried both the script setup and pip install methods a couple of times now, but still not able to run the demos.
In the demo Examples/Image/Detection I am not able to run the command python DetectionDemo.py
. This is the output:
training FasterRCNN
Traceback (most recent call last):
File ".\DetectionDemo.py", line 59, in
eval_model = od.train_object_detector(cfg)
File "C:\cntk-2-2\CNTK-Samples-2-2\Examples\Image\Detection\utils\od_utils.py", line 19, in train_object_detector
from FasterRCNN.FasterRCNN_train import prepare, train_faster_rcnn
File "C:\cntk-2-2\CNTK-Samples-2-2\Examples\Image\Detection\FasterRCNN\FasterRCNN_train.py", line 30, in
from utils.od_mb_source import ObjectDetectionMinibatchSource
File "C:\cntk-2-2\CNTK-Samples-2-2\Examples\Image\Detection\utils\od_mb_source.py", line 9, in
from utils.od_reader import ObjectDetectionReader
File "C:\cntk-2-2\CNTK-Samples-2-2\Examples\Image\Detection\utils\od_reader.py", line 8, in
import cv2 # pip install opencv-python
File "C:\Users\krberge\AppData\Local\Continuum\Anaconda3\lib\site-packages\cv2_init_.py", line 9, in
from .cv2 import *
ImportError: DLL load failed: The specified module could not be found.
PS C:\cntk-2-2\CNTK-Samples-2-2\Examples\Image\Detection>
From what I understand, this boils down to the cv2 import, because the command python -c "import cv2"
outputs a similar error message
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\krberge\AppData\Local\Continuum\Anaconda3\lib\site-packages\cv2_init_.py", line 9, in
from .cv2 import *
ImportError: DLL load failed: The specified module could not be found.
Runnin pip install opencv-python
outputs that everything is up to date.
Not really sure what is missing here and how python/anaconda does imports.
I also noticed that the example I'm trying to run is using Fast R-CNN, so I followed the steps in the readme there too, but pip install dlib
failes here. It says cmake is missing. After installing cmake with conda install cmake
I get a new error saying that the cmake configuration failed.
I think the tutorial/install guide might be inadequate here, because I'm not able get anything to work by following the guide.