yfeng95 / PRNet

Joint 3D Face Reconstruction and Dense Alignment with Position Map Regression Network (ECCV 2018)
http://openaccess.thecvf.com/content_ECCV_2018/papers/Yao_Feng_Joint_3D_Face_ECCV_2018_paper.pdf
MIT License
4.96k stars 944 forks source link

'obj' is an undefined name in utils/write.py #16

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

https://github.com/YadiraF/PRNet/blob/master/utils/write.py#L26

flake8 testing of https://github.com/YadiraF/PRNet on Python 3.6.3

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./api.py:158:19: F821 undefined name 'cv2'
        texture = cv2.remap(image, pos[:,:,:2].astype(np.float32), None, interpolation=cv2.INTER_NEAREST, borderMode=cv2.BORDER_CONSTANT,borderValue=(0))
                  ^
./api.py:158:88: F821 undefined name 'cv2'
        texture = cv2.remap(image, pos[:,:,:2].astype(np.float32), None, interpolation=cv2.INTER_NEAREST, borderMode=cv2.BORDER_CONSTANT,borderValue=(0))
                                                                                       ^
./api.py:158:118: F821 undefined name 'cv2'
        texture = cv2.remap(image, pos[:,:,:2].astype(np.float32), None, interpolation=cv2.INTER_NEAREST, borderMode=cv2.BORDER_CONSTANT,borderValue=(0))
                                                                                                                     ^
./demo.py:14:14: E999 SyntaxError: invalid syntax
    print args.isDlib
             ^
./predictor.py:7:84: F821 undefined name 'self'
    assert num_outputs%2==0, "num_outputs must be divided by channel_factor %d." % self.channel_factor
                                                                                   ^
./utils/write.py:26:20: F821 undefined name 'obj'
        obj_name = obj + '.obj'
                   ^
1     E999 SyntaxError: invalid syntax
5     F821 undefined name 'cv2'
6
yfeng95 commented 6 years ago

Thanks @cclauss . I will fix it.