Spaces:
Running
on
L40S
Running
on
L40S
Getting "ValueError: Failed to modify image" when dragging feature lines
#9
by
mmacmahon
- opened
After getting it setup locally, I ran into the following error below. This happens after I upload an image and the facelines are applied (with option to show feature lines when hovering over them). When I try to drag the curves to modify the face, this error pops up:
"ValueError: Failed to modify image: OpenCV(4.8.1) /io/opencv/modules/imgproc/src/imgwarp.cpp:2729: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine'"
The image I uploaded was a .png, which I exported with alpha explicitly disabled (separately, I got an error "could not broadcast input array from shape (512,512,4) into shape (512,512,3)" when there was an alpha channel in the image).
Thanks for any help with this!