Ask Your Question
0

Link 404 error in DNN tutorial

asked 2019-03-27 08:11:31 -0600

Hi, the link provided for DNN tutorial at DNN Tutorial. The name of the file is - classification_classes_ILSVRC2012.txt

edit retag flag offensive close merge delete

Comments

thanks, but someone beat you

berak gravatar imageberak ( 2019-03-27 08:33:13 -0600 )edit

That's okay. I wasn't able to find it on GitHub. Thanks!

Tanisha gravatar imageTanisha ( 2019-04-02 07:01:33 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2019-04-03 23:53:53 -0600

updated 2019-04-03 23:56:21 -0600

Hi Christof,

Yes, I had to tweak the code a bit to get the answer. Firstly, the code in the tutorial is updated in the actual repository. This is my reference code - classification.py

So the command line changes to this -

python classification.py --model=bvlc_googlenet.caffemodel --config=bvlc_googlenet.prototxt --width=224 --height=224 --classes=classification_classes_ILSVRC2012.txt --input=sample.jpg

Instead of this -

python classification.py  --model=bvlc_googlenet.caffemodel --config=bvlc_googlenet.prototxt --width=224 --height=224 --classes=classification_classes_ILSVRC2012.txt --input=space_shuttle.jpg --mean="104 117 123"

Also, I used matplotlib to get the result, because cv.namedWindow(winName, cv.WINDOW_NORMAL), wasn't working on my system, and a few answers on StackOverflow don't recommend using it either. So, I am using the following -

import matplotlib.pyplot as plt
plt.imshow(frame)
plt.show(block=True)

I am also having trouble with the waitkey function. So, I mostly need to reinstall a few things. Hope this helps.

edit flag offensive delete link more
0

answered 2019-03-27 08:29:17 -0600

minihops gravatar image

Hi, You can find the file here as well: https://github.com/opencv/opencv/blob...

Nevertheless I have problems running the example. I do not get the result as shown in the linked DNN Tutorial. Are you able to reproduce the result? Christof

edit flag offensive delete link more

Comments

I still have to try. Will get back to you.

Tanisha gravatar imageTanisha ( 2019-04-02 07:02:58 -0600 )edit

You could also try with - --mean 104 117 123 (without = and quotes) This made it work properly for me. I also had to re-install my opencv so now waitkey and everything else is working fine.

Tanisha gravatar imageTanisha ( 2019-04-06 13:17:53 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-03-27 08:11:31 -0600

Seen: 300 times

Last updated: Apr 03 '19