jhj0517 / AdvancedLivePortrait-WebUI

gradio WebUI for AdvancedLivePortrait
Apache License 2.0
7 stars 1 forks source link

Error installing modules in Forge (Debian) #3

Closed epictetito closed 2 hours ago

epictetito commented 2 hours ago

Hi

I added this extension in Forge, and when I restarted UI it started downloading and installing the modules, and I got this error that prevents the extension from starting:

[GPU Setting] You will use 91.50% GPU memory (11017.00 MB) to load weights, and use 8.50% GPU memory (1024.00 MB) to do matrix computation. /home/forge/models/AdvancedPortrait/appearance_feature_extractor.safetensors is not detected. Downloading model... 100%|#####################################################################################################| 3.21M/3.21M [00:00<00:00, 17.7MB/s] /home/forge/models/AdvancedPortrait/motion_extractor.safetensors is not detected. Downloading model... 100%|#######################################################################################################| 107M/107M [00:03<00:00, 31.0MB/s] /home/forge/models/AdvancedPortrait/warping_module.safetensors is not detected. Downloading model... 100%|#######################################################################################################| 174M/174M [00:05<00:00, 31.7MB/s] /home/forge/models/AdvancedPortrait/spade_generator.safetensors is not detected. Downloading model... 100%|#######################################################################################################| 211M/211M [00:06<00:00, 32.6MB/s] /home/forge/models/AdvancedPortrait/stitching_retargeting_module.safetensors is not detected. Downloading model... 100%|#######################################################################################################| 890k/890k [00:00<00:00, 10.7MB/s] /home/forge/models/AdvancedPortrait/faceyolov8n.pt is not detected. Downloading model... 100%|#####################################################################################################| 5.94M/5.94M [00:00<00:00, 25.5MB/s] [ WARN:0@66.345] global loadsave.cpp:241 findDecoder imread('/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/utils/resources/mask_template.png'): can't open/read file: check file path/integrity Traceback (most recent call last): File "/home/forge/venv/lib/python3.11/site-packages/gradio/queueing.py", line 536, in process_events response = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/route_utils.py", line 285, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1923, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1508, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/utils.py", line 818, in wrapper response = f(args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 177, in edit_expression self.psi = self.prepare_source(src_image, crop_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 606, in prepare_source mask_ori = cv2.warpAffine(self.get_mask_img(), crop_trans_m, get_rgb_size(img_rgb), cv2.INTER_LINEAR) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.10.0) /io/opencv/modules/imgproc/src/imgwarp.cpp:2825: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine'

[ WARN:0@163.601] global loadsave.cpp:241 findDecoder imread_('/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/utils/resources/mask_template.png'): can't open/read file: check file path/integrity Traceback (most recent call last): File "/home/forge/venv/lib/python3.11/site-packages/gradio/queueing.py", line 536, in process_events response = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/route_utils.py", line 285, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1923, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1508, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/utils.py", line 818, in wrapper response = f(args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 177, in edit_expression self.psi = self.prepare_source(src_image, crop_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 606, in prepare_source mask_ori = cv2.warpAffine(self.get_mask_img(), crop_trans_m, get_rgb_size(img_rgb), cv2.INTER_LINEAR) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.10.0) /io/opencv/modules/imgproc/src/imgwarp.cpp:2825: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine'

[ WARN:0@190.954] global loadsave.cpp:241 findDecoder imread_('/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/utils/resources/mask_template.png'): can't open/read file: check file path/integrity Traceback (most recent call last): File "/home/forge/venv/lib/python3.11/site-packages/gradio/queueing.py", line 536, in process_events response = await route_utils.call_process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/route_utils.py", line 285, in call_process_api output = await app.get_blocks().process_api( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1923, in process_api result = await self.call_function( ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/blocks.py", line 1508, in call_function prediction = await anyio.to_thread.run_sync( # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread return await future ^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 807, in run result = context.run(func, args) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/venv/lib/python3.11/site-packages/gradio/utils.py", line 818, in wrapper response = f(args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 177, in edit_expression self.psi = self.prepare_source(src_image, crop_factor) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait_modules/live_portrait/live_portrait_inferencer.py", line 606, in prepare_source mask_ori = cv2.warpAffine(self.get_mask_img(), crop_trans_m, get_rgb_size(img_rgb), cv2.INTER_LINEAR) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cv2.error: OpenCV(4.10.0) /io/opencv/modules/imgproc/src/imgwarp.cpp:2825: error: (-215:Assertion failed) src.cols > 0 && src.rows > 0 in function 'warpAffine'

jhj0517 commented 2 hours ago

Hi @epictetito! Thanks for reporting.

I've moved issue to https://github.com/jhj0517/sd-webui-AdvancedLivePortrait/issues/1 since it's related with sd webui's, please continue there!