Engineering-Course / LIP_JPPNet

Code repository for Joint Body Parsing & Pose Estimation Network, T-PAMI 2018
MIT License
341 stars 87 forks source link

Cannot run the inference #3

Closed yfang1028 closed 6 years ago

yfang1028 commented 6 years ago

When I run evaluate_pose_JPPNet-s2.py, I got the following error:

Traceback (most recent call last): File "evaluate_pose_JPPNet-s2.py", line 168, in main() File "evaluate_pose_JPPNet-s2.py", line 45, in main net_100 = JPPNetModel({'data': image_batch}, is_training=False, n_classes=N_CLASSES) File "/Users/yfang/LIP_JPPNet/kaffe/tensorflow/network.py", line 48, in init self.setup(is_training, n_classes) File "/Users/yfang/LIP_JPPNet/utils/model.py", line 18, in setup (self.feed('data') File "/Users/yfang/LIP_JPPNet/kaffe/tensorflow/network.py", line 78, in feed if isinstance(fed_layer, basestring): NameError: name 'basestring' is not defined

Can you help? Thanks a lot!

yfang1028 commented 6 years ago

Solved. Change 'basestring' to 'str'. It seems the code is written in python 2.7. There are other modifications for making it run in python 3.6.

Engineering-Course commented 6 years ago

Yes. The code is written in python 2.7

achalshah20 commented 6 years ago

@yfang1028 Did you make it work in python 3.6?

yfang1028 commented 6 years ago

@achalshah20 Yes, it works for me in python 3.6 now. There are not many changes needed.

achalshah20 commented 6 years ago

@Engineering-Course I did a few changes in parsing evaluation to make it work in both python3.6 and python2.7. #4

Engineering-Course commented 6 years ago

@achalshah20 Thanks!