aaron-xichen / pytorch-playground

Base pretrained models and datasets in pytorch (MNIST, SVHN, CIFAR10, CIFAR100, STL10, AlexNet, VGG16, VGG19, ResNet, Inception, SqueezeNet)
MIT License
2.62k stars 612 forks source link

error #4

Closed andeyeluguo closed 7 years ago

andeyeluguo commented 7 years ago

I run this script,and it occur the error "print = misc.logger.info ^SyntaxError: invalid syntax",I don't know why.

aaron-xichen commented 7 years ago

Maybe you are using python2? Switch to python3 may solve this problem.

andeyeluguo commented 7 years ago

I guess so...

andeyeluguo commented 7 years ago

is it easy to change the code of python 3 to python 2

aaron-xichen commented 7 years ago

I don't know yet, maybe you can google it. https://www.google.com/search?q=python3+to+python2&oq=python3+to+python2&aqs=chrome..69i57j69i60j69i57j69i65l2j69i60.5215j0j7&sourceid=chrome&ie=UTF-8

andeyeluguo commented 7 years ago

I commented out the sentence of "print = " , and it can run good. thank you!

aaron-xichen commented 7 years ago

Happy to hear that you solve this problem. But the potential risk is the logging behavior maybe unexpected.