scaelles / OSVOS-TensorFlow

One-Shot Video Object Segmentation
http://vision.ee.ethz.ch/~cvlsegmentation/osvos/
GNU General Public License v3.0
438 stars 132 forks source link

Error occurred When I run " python osvos_demo.py" in windows #10

Closed 5kejun closed 6 years ago

5kejun commented 6 years ago

Error occurred When I run " python osvos_demo.py" in windows 7 X64 command line. As followed: === RESTART: E:\My Documents\python\OSVOS-TensorFlow-master\osvos_demo.py === Traceback (most recent call last): File "E:\My Documents\python\OSVOS-TensorFlow-master\osvos_demo.py", line 20, in import osvos File "E:\My Documents\python\OSVOS-TensorFlow-master\osvos.py", line 152 print 'input + output channels need to be the same' ^ SyntaxError: Missing parentheses in call to 'print' PS. I had unzip parent model(55 MB) and pre-trained models(2.2GB) under models/. Moreover, unzipped DAVIS-2017-test-dev-480p.zip in the root directory

gdshen commented 6 years ago

The code was written by python2, Tensorflow on windows only support py3. You can use 2to3 to convert this repo into py3-compatible, or you can wrap the "print" statement into print() function.

kmaninis commented 6 years ago

Hi, we never tried the code for Windows, however the specific error, as @gdshen pointed, looks like a Python version error.