Closed cclauss closed 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
Thanks @cclauss . I will fix it.
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