We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
any idea what's wrong? i get this after image upload
` main - ERROR - Error in engine: 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'
2024-11-23 23:47:44,251 - main - ERROR - Full traceback: Traceback (most recent call last): File "/workspace/FacePoke/engine.py", line 209, in transform_image mask_ori = await asyncio.to_thread(prepare_paste_back, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/asyncio/threads.py", line 25, in to_thread return await loop.run_in_executor(None, func_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/FacePoke/liveportrait/utils/crop.py", line 402, in prepare_paste_back mask_ori = _transform_img(mask_crop, crop_M_c2o, dsize) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/workspace/FacePoke/liveportrait/utils/crop.py", line 33, in _transform_img return cv2.warpAffine(img, M[:2, :], dsize=_dsize, flags=flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
any idea what's wrong? i get this after image upload
` main - ERROR - Error in engine: 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'
2024-11-23 23:47:44,251 - main - ERROR - Full traceback:
Traceback (most recent call last):
File "/workspace/FacePoke/engine.py", line 209, in transform_image
mask_ori = await asyncio.to_thread(prepare_paste_back,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/asyncio/threads.py", line 25, in to_thread
return await loop.run_in_executor(None, func_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/FacePoke/liveportrait/utils/crop.py", line 402, in prepare_paste_back
mask_ori = _transform_img(mask_crop, crop_M_c2o, dsize)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/FacePoke/liveportrait/utils/crop.py", line 33, in _transform_img
return cv2.warpAffine(img, M[:2, :], dsize=_dsize, flags=flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^`
The text was updated successfully, but these errors were encountered: