switchablenorms / CelebAMask-HQ

A large-scale face dataset for face parsing, recognition, generation and editing.
2.04k stars 343 forks source link

demo QImage(): too many arguments #89

Closed diaodeyi closed 3 years ago

diaodeyi commented 3 years ago

File "demo.py", line 210, in edit qim = QImage(result.data, result.shape[1], result.shape[0], result.strides[0], QImage.Format_RGB888) TypeError: arguments did not match any overloaded call: QImage(): too many arguments QImage(QSize, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(bytes, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(sip.voidptr, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(bytes, int, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(sip.voidptr, int, int, int, QImage.Format): argument 1 has unexpected type 'memoryview' QImage(List[str]): argument 1 has unexpected type 'memoryview' QImage(str, format: str = None): argument 1 has unexpected type 'memoryview' QImage(QImage): argument 1 has unexpected type 'memoryview' QImage(Any): too many arguments [1] 16810 abort (core dumped) python demo.py

diaodeyi commented 3 years ago

i have figured it out, but it seems strange, because i run with no problom before. Now i need to modify the demo.py then i can run

xinmaoge commented 2 years ago

i have figured it out, but it seems strange, because i run with no problom before. Now i need to modify the demo.py then i can run Hello I have the same problem. How can I solve it

SparshDrolia22 commented 1 year ago

Just add .copy() at line 203