microsoft / CNTK

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
https://docs.microsoft.com/cognitive-toolkit/
Other
17.53k stars 4.28k forks source link

FastRCNN tutorial is broken #2692

Closed omri374 closed 6 years ago

omri374 commented 7 years ago

Hi, Going over the tutorial here: https://docs.microsoft.com/en-us/cognitive-toolkit/Object-Detection-using-Fast-R-CNN

When running python run_fast_rcnn.py one gets an ImportException Traceback (most recent call last): File "run_fast_rcnn.py", line 9, in from FastRCNN_train import prepare, train_fast_rcnn File "/CNTK/Examples/Image/Detection/FastRCNN/FastRCNN_train.py", line 18, in from cntk.learners import momentum_sgd, learning_parameter_schedule_per_sample, momentum_schedule ImportError: cannot import name 'learning_parameter_schedule_per_sample'

I believe the CNTK code was changed but the example wasn't updated. Thanks!

kyoro1 commented 7 years ago

Related to this comment

hellosaumil commented 7 years ago

I'm facing a similar issue.

hellosaumil commented 6 years ago

@omri374 Hi, please refer to the previously referenced issue #2713 it has been fixed.

Please close this one if you are through with it. Otherwise, right back and I'll try to solve it.

omri374 commented 6 years ago

@hellosaumil Thanks! It now works.

hellosaumil commented 6 years ago

@omri374 😄

manya19 commented 6 years ago

Hi, I am facing a similar problem while trying to run the python run_fast_rcnn.py from the examples in Fast RCNN

(C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35) C:\local\CNTK-2-3\cntk\Examples\Image\Detection\FastRCNN>python run_fast_rcnn.py Traceback (most recent call last): File "run_fast_rcnn.py", line 9, in from FastRCNN_train import prepare, train_fast_rcnn File "C:\local\CNTK-2-3\cntk\Examples\Image\Detection\FastRCNN\FastRCNN_train.py", line 29, in from utils.od_mb_source import ObjectDetectionMinibatchSource File "C:\local\CNTK-2-3\cntk\Examples\Image\Detection\FastRCNN..\utils\od_mb_source.py", line 9, in from utils.od_reader import ObjectDetectionReader File "C:\local\CNTK-2-3\cntk\Examples\Image\Detection\FastRCNN..\utils\od_reader.py", line 8, in import cv2 # pip install opencv-python File "C:\local\Anaconda3-4.1.1-Windows-x86_64\envs\cntk-py35\lib\site-packages\cv2__init__.py", line 4, in from .cv2 import * ImportError: DLL load failed: The specified module could not be found.

I re-installed the python as well, but nothing worked.