jhj0517 / sd-webui-AdvancedLivePortrait

sd webui (forge) extension for AdvancedLivePortrait
Apache License 2.0
8 stars 0 forks source link

AttributeError: 'NoneType' object has no attribute 'output_dir' #4

Closed ali0une closed 2 weeks ago

ali0une commented 2 weeks ago

Which OS are you using?

i do have an Ad folder in /whatever/stable-diffusion-webui-forge/outputs/ i can see generated images and exp_data and temp folders in it.

But if i click the blue folder at bottom of the AdvancedLivePortrait tab :

Traceback (most recent call last):
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/queueing.py", line 536, in process_events
    response = await route_utils.call_process_api(
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/route_utils.py", line 285, in call_process_api
    output = await app.get_blocks().process_api(
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1923, in process_api
    result = await self.call_function(
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/blocks.py", line 1508, in call_function
    prediction = await anyio.to_thread.run_sync(  # type: ignore
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "/whatever/stable-diffusion-webui-forge/venv/lib/python3.10/site-packages/gradio/utils.py", line 818, in wrapper
    response = f(*args, **kwargs)
  File "/whatever/stable-diffusion-webui-forge/extensions/sd-webui-AdvancedLivePortrait/scripts/advanced_live_portrait.py", line 84, in <lambda>
    fn=lambda: self.open_folder(self.args.output_dir), inputs=None, outputs=None
AttributeError: 'NoneType' object has no attribute 'output_dir'

P.S : wonderful extension, keep up the good work ...

jhj0517 commented 2 weeks ago

Hi, thanks for reporting. This is fixed in #5 and should work fine now.

Feel free to re open!