error: (-215:Assertion failed) !buf.empty() in function 'imdecode_' #238

Closed
opened 2026-01-29 21:45:59 +00:00 by claunia · 1 comment
Owner

Originally created by @dongfengxijian on GitHub (Aug 29, 2022).

First I met the error as follow:
微信图片_20220829224154
Then I add int at ’quality‘ as https://github.com/TencentARC/GFPGAN/issues/93
But I got another error as follow:
微信图片_20220829224459

Originally created by @dongfengxijian on GitHub (Aug 29, 2022). First I met the error as follow: ![微信图片_20220829224154](https://user-images.githubusercontent.com/24863806/187227959-c08fef3e-b593-4288-852e-6c7da217db37.png) Then I add int at ’quality‘ as [https://github.com/TencentARC/GFPGAN/issues/93](url) But I got another error as follow: ![微信图片_20220829224459](https://user-images.githubusercontent.com/24863806/187228637-672a723a-1745-4a5f-be9a-a69815963282.jpg)
Author
Owner

@juanluisrosaramos commented on GitHub (Sep 1, 2022):

This is an opencv problem. I downgrade to another version and it trains without problem.
In my case for example i randomly choose pip install opencv-contrib-python==4.1.0.25

@juanluisrosaramos commented on GitHub (Sep 1, 2022): This is an opencv problem. I downgrade to another version and it trains without problem. In my case for example i randomly choose pip install opencv-contrib-python==4.1.0.25
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TencentARC/GFPGAN#238