aigc-apps / sd-webui-EasyPhoto

📷 EasyPhoto | Your Smart AI Photo Generator.
Apache License 2.0
4.98k stars 399 forks source link

[Bug]: Error reporting when using virtual fitting #407

Closed hjj-lmx closed 8 months ago

hjj-lmx commented 8 months ago

Is there an existing issue for this?

Is EasyPhoto the latest version?

What happened?

Traceback (most recent call last): File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, kwargs) File "C:\Users\lhcx\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 79, in inner return func(*args, *kwds) File "C:\Users\lhcx\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 79, in inner return func(args, kwds) File "D:\stable-diffusion-webui-1.8\extensions\sd-webui-EasyPhoto\scripts\easyphoto_tryon_infer.py", line 509, in easyphoto_tryon_infer_forward result_img = result_img[0] IndexError: list index out of range

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ... Traceback (most recent call last): File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict output = await app.get_blocks().process_api( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api result = await self.call_function( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function prediction = await anyio.to_thread.run_sync( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "D:\stable-diffusion-webui-1.8\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper response = f(args, kwargs) File "C:\Users\lhcx\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 79, in inner return func(*args, *kwds) File "C:\Users\lhcx\AppData\Local\Programs\Python\Python310\lib\contextlib.py", line 79, in inner return func(args, kwds) File "D:\stable-diffusion-webui-1.8\extensions\sd-webui-EasyPhoto\scripts\easyphoto_tryon_infer.py", line 509, in easyphoto_tryon_infer_forward result_img = result_img[0] IndexError: list index out of range

What should have happened?

1

Commit where the problem happens

webui: EastPhoto: ![Uploading image.png…]()

What browsers do you use to access the UI ?

No response

Command Line Arguments

1

List of enabled extensions

1

Console logs

1

Additional information

No response