sd-webui-depth-lib
sd-webui-depth-lib copied to clipboard
failed to add new .png to /maps folder for more hand shapes
The error message is listed below:
Error executing callback ui_tabs_callback for /root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-depth-lib/scripts/main.py
Traceback (most recent call last):
File "/root/autodl-tmp/stable-diffusion-webui/modules/script_callbacks.py", line 119, in ui_tabs_callback
res += c.callback() or []
File "/root/autodl-tmp/stable-diffusion-webui/extensions/sd-webui-depth-lib/scripts/main.py", line 40, in on_ui_tabs
dataset = gr.Examples(examples=os.path.abspath(os.path.join(os.path.dirname(file), "../maps")), inputs=[png_input_area],examples_per_page=24,label="Depth Maps")
File "/root/miniconda3/envs/xl_env/lib/python3.10/site-packages/gradio/helpers.py", line 53, in create_examples
examples_obj = Examples(
File "/root/miniconda3/envs/xl_env/lib/python3.10/site-packages/gradio/helpers.py", line 200, in init
self.processed_examples = [
File "/root/miniconda3/envs/xl_env/lib/python3.10/site-packages/gradio/helpers.py", line 201, in
Could you upload the image in question, because I can't reproduce it. It's literally how I add the images to it myself. Also if you're using a colab I'm afraid I won't be able to help for now as I'm using only a local installation myself.
This error appears on my colab deployment, I tried to put the same image into local deployment, and the extension works fine with it, so I guess the problem is caused by the ‘os.path.abspath(os.path.join(os.path.dirname(file)’ command, which might need to be modified for colab installment.
Well going by the stacktrace doesn't seem like it. In any case you could try updating as I switched to the webui method of getting the base extension path.
Should be fixed by 1d31c07
Closing due to inactivity