Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gfpgan_onnx_api.py #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

hengtuibabai
Copy link

bugfix:
ReHiFace-S\face_restore\gfpgan_onnx_api.py", line 46, in forward
image_in = CVImage(face_image).set_blob(self.input_std, self.input_mean, self.input_size).blob_in(rgb=False)
AttributeError: 'CVImage' object has no attribute 'set_blob'

bugfix: 
ReHiFace-S\face_restore\gfpgan_onnx_api.py", line 46, in forward
    image_in = CVImage(face_image).set_blob(self.input_std, self.input_mean, self.input_size).blob_in(rgb=False)
AttributeError: 'CVImage' object has no attribute 'set_blob'
@QUTGXX
Copy link

QUTGXX commented Aug 21, 2024

What's your 'cv2box' version? @hengtuibabai If cv2box='0.4.9', code would work.

bugfix:
input video path is relative path like : "./samples/t.mp4" etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants