Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Missing parentheses in call to 'print' when run train.py #24

Closed
ysh329 opened this issue Sep 13, 2017 · 2 comments
Closed

Comments

@ysh329
Copy link

ysh329 commented Sep 13, 2017

After data download and prerequisite installation, I ran commands as below:

root@2d5d0934e049:/home/yuanshuai/code/pytorch-semseg# python train.py \                            
> --arch fcn8s \
> --dataset pascal \
> --img_rows 224 \
> --img_cols 224 \
> --n_epoch 1 \
> --batch_size 1 \
> --l_rate 1 \
> --feature_scale 2
Traceback (most recent call last):
  File "train.py", line 14, in <module>
    from ptsemseg.loader import get_loader, get_data_path
  File "/home/yuanshuai/code/pytorch-semseg/ptsemseg/loader/__init__.py", line 3, in <module>
    from ptsemseg.loader.pascal_voc_loader import pascalVOCLoader
  File "/home/yuanshuai/code/pytorch-semseg/ptsemseg/loader/pascal_voc_loader.py", line 130
    print "Pre-encoding segmentation masks..."
                                             ^
SyntaxError: Missing parentheses in call to 'print'

Any advice or suggestions, thanks in advance!

@achaiah
Copy link

achaiah commented Sep 13, 2017

That's because you're using python 3.x while this project was written in python 2.x

@ysh329
Copy link
Author

ysh329 commented Sep 14, 2017

@achaiah Thanks my big brother 🤣

@ysh329 ysh329 closed this as completed Sep 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants