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.95k stars 947 forks source link

import cv2 #13

Closed cclauss closed 6 years ago

cclauss commented 6 years ago

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
cclauss commented 6 years ago

The above issues are closed.

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

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

./utils/render.py:362:17: F821 undefined name 'image'
    [h, w, _] = image.shape
                ^
1     F821 undefined name 'image'
1