mxnet-ssd icon indicating copy to clipboard operation
mxnet-ssd copied to clipboard

I got this when I ran the demo.py

Open shootingliu opened this issue 9 years ago • 3 comments

C:\Users\LST\mxnet-ssd-master>python demo.py Traceback (most recent call last): File "demo.py", line 7, in from detect.detector import Detector File "C:\Users\LST\mxnet-ssd-master\detect\detector.py", line 63 print "Detection time for {} images: {:.4f} sec".format( ^ SyntaxError: invalid syntax

with win10, anaconda3.THX~~

shootingliu avatar Jan 04 '17 11:01 shootingliu

python 3 don't support print syntax, you need to modify the code a bit or use python2.7 instead

zhreshold avatar Jan 05 '17 06:01 zhreshold

I changed 2 into 3 for tensorflow just a couple of days ago. I will try 2, thanks a lot.

shootingliu avatar Jan 07 '17 11:01 shootingliu

in python 2 print "test", in python 3 use print ("test")

MyAusweis avatar Jun 09 '17 09:06 MyAusweis