hellochick / PSPNet-tensorflow

TensorFlow-based implementation of "Pyramid Scene Parsing Network".
326 stars 123 forks source link

Error about inference.py #4

Closed kyeongbokong closed 6 years ago

kyeongbokong commented 6 years ago

Hello

I have error to run inference.py. Do you know solution about this?

python inference.py --img-path=./input/test_256x512.png successful load img: ./input/test_256x512.png 1 Traceback (most recent call last): File "inference.py", line 138, in main() File "inference.py", line 89, in main net = PSPNet({'data': img}, is_training=False, num_classes=num_classes) File "C:\Tensorflow\PSPNet-tensorflow-master\PSPNet-tensorflow-master\network.py", line 48, in init self.setup(is_training, num_classes) File "C:\Tensorflow\PSPNet-tensorflow-master\PSPNet-tensorflow-master\model.py", line 14, in setup (self.feed('data') File "C:\Tensorflow\PSPNet-tensorflow-master\PSPNet-tensorflow-master\network.py", line 81, in feed if isinstance(fed_layer, basestring): NameError: name 'basestring' is not defined

hellochick commented 6 years ago

@kyeongbokong , it seems the problem will happen in python3. I have fixed it yet. you can update the repo and try again.