Git Product home page Git Product logo

sd-webui-depth-lib's People

Contributors

jexom avatar webdev9000 avatar wywywywy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sd-webui-depth-lib's Issues

[BUG]: After installing this this extension I get the following error on startup of A1111

Hi

This is the error I receive on startup.

To create a public link, setshare=Trueinlaunch()`.
Startup time: 27.3s (launcher: 15.9s, import torch: 3.1s, import gradio: 0.8s, setup paths: 0.7s, other imports: 1.8s, list SD models: 0.2s, load scripts: 3.2s, create ui: 1.1s, gradio launch: 0.3s).
*** API error: GET: http://127.0.0.1:7860/info {'error': 'KeyError', 'detail': '', 'body': '', 'errors': "'dataset'"}
Traceback (most recent call last):
File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 98, in receive
return self.receive_nowait()
File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 78, in call_next
    message = await recv_stream.receive()
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 118, in receive
    raise EndOfStream
anyio.EndOfStream

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\modules\api\api.py", line 152, in exception_handling
    return await call_next(request)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
    raise app_exc
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 108, in __call__
    response = await self.dispatch_func(request, call_next)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\modules\api\api.py", line 116, in log_and_time
    res: Response = await call_next(req)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
    raise app_exc
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 70, in coro
    await self.app(scope, receive_or_disconnect, send_no_error)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\cors.py", line 84, in __call__
    await self.app(scope, receive, send)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in __call__
    await responder(scope, receive, send)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 44, in __call__
    await self.app(scope, receive, self.send_with_gzip)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in __call__
    raise exc
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in __call__
    raise e
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in __call__
    await self.app(scope, receive, send)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 66, in app
    response = await func(request)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 237, in app
    raw_response = await run_endpoint_function(
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 165, in run_endpoint_function
    return await run_in_threadpool(dependant.call, **values)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\starlette\concurrency.py", line 41, in run_in_threadpool
    return await anyio.to_thread.run_sync(func, *args)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
    return await future
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 807, in run
    result = context.run(func, *args)
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 271, in api_info
    return gradio.blocks.get_api_info(config, serialize)  # type: ignore
  File "F:\Projects\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 504, in get_api_info
    serializer = serializing.COMPONENT_MAPPING[type]()
KeyError: 'dataset'

`

A1111 version is v1.5.1

Thanks!

Depth Lib Tab not showing in the UI

Describe the bug
The Depth lib tab wont show up after following the installation process.
I already have tried to:

  • reinstall
  • restart pc
  • reload UI
  • restart stable diffusion

Environment
Put x in the brackets to select

  • Local desktop
  • Colab

To Reproduce
Steps to reproduce the behavior:

  1. Open the "Extensions" tab
  2. Click on "Install from URL"
  3. In "URL for extension's git repository" enter this extension, https://github.com/wywywywy/sd-webui-depth-lib.git
  4. Click "Install"
  5. Restart WebUI

Error

Error executing callback ui_tabs_callback for C:\ai\stable-diffusion-webui\extensions\sd-webui-depth-lib\scripts\main.py
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\modules\script_callbacks.py", line 166, in ui_tabs_callback
res += c.callback() or []
File "C:\ai\stable-diffusion-webui\extensions\sd-webui-depth-lib\scripts\main.py", line 41, in on_ui_tabs
dataset = gr.Examples(examples=os.path.join(maps_path, t), inputs=[png_input_area], examples_per_page=24, label=None, elem_id="depth_lib_examples")
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 58, in create_examples
examples_obj = Examples(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 209, in init
self.processed_examples = [
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 210, in
[
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 211, in
component.postprocess(sample)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio\components\image.py", line 318, in postprocess
return client_utils.encode_url_or_file_to_base64(y)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio_client\utils.py", line 387, in encode_url_or_file_to_base64
return encode_file_to_base64(path)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\gradio_client\utils.py", line 360, in encode_file_to_base64
with open(f, "rb") as file:
PermissionError: [Errno 13] Permission denied: 'sd-webui-depth-lib'

PermissionError: [Errno 13] Permission denied: 'tmp'

I get the following error when I run it in the console. Can you please tell me how to fix it?

*** Error executing callback ui_tabs_callback for D:\stable-diffusion\extensions\sd-webui-depth-lib\scripts\main.py Traceback (most recent call last): File "D:\stable-diffusion\modules\script_callbacks.py", line 166, in ui_tabs_callback res += c.callback() or [] File "D:\stable-diffusion\extensions\sd-webui-depth-lib\scripts\main.py", line 41, in on_ui_tabs dataset = gr.Examples(examples=os.path.join(maps_path, t), inputs=[png_input_area], examples_per_page=24, label=None, elem_id="depth_lib_examples") File "D:\stable-diffusion\venv\lib\site-packages\gradio\helpers.py", line 58, in create_examples examples_obj = Examples( File "D:\stable-diffusion\venv\lib\site-packages\gradio\helpers.py", line 209, in __init__ self.processed_examples = [ File "D:\stable-diffusion\venv\lib\site-packages\gradio\helpers.py", line 210, in <listcomp> [ File "D:\stable-diffusion\venv\lib\site-packages\gradio\helpers.py", line 211, in <listcomp> component.postprocess(sample) File "D:\stable-diffusion\venv\lib\site-packages\gradio\components\image.py", line 318, in postprocess return client_utils.encode_url_or_file_to_base64(y) File "D:\stable-diffusion\venv\lib\site-packages\gradio_client\utils.py", line 387, in encode_url_or_file_to_base64 return encode_file_to_base64(path) File "D:\stable-diffusion\venv\lib\site-packages\gradio_client\utils.py", line 360, in encode_file_to_base64 with open(f, "rb") as file: PermissionError: [Errno 13] Permission denied: 'tmp'

Environment
Put x in the brackets to select

  • Local desktop
  • Colab

UI_TABS_CALLBACK Bug

*** Error executing callback ui_tabs_callback for xxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\extensions\sd-webui-depth-lib\scripts\main.py
File "xxxxxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\modules\script_callbacks.py", line 166, in ui_tabs_callback
res += c.callback() or []
File "xxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\extensions\sd-webui-depth-lib\scripts\main.py", line 47, in on_ui_tabs
dataset = gr.Examples(examples=os.path.join(maps_path, t), inputs=[png_input_area],examples_per_page=24,label="Depth Maps", elem_id="examples")
File "xxxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 58, in create_examples
examples_obj = Examples(
File "xxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 209, in init
self.processed_examples = [
File "xxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 210, in
[
File "xxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\helpers.py", line 211, in
component.postprocess(sample)
File "xxxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio\components\image.py", line 318, in postprocess
return client_utils.encode_url_or_file_to_base64(y)
File "xxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio_client\utils.py", line 387, in encode_url_or_file_to_base64
return encode_file_to_base64(path)
File "xxxxx\StabilityMatrix-win-x64\Data\Packages\stable-diffusion-webui\venv\lib\site-packages\gradio_client\utils.py", line 360, in encode_file_to_base64
with open(f, "rb") as file:
PermissionError: [Errno 13] Permission denied: 'extensions'

Unfortunately your fork doesn't fix the error for me : ( Both versions of Depth extension do this.

I was hoping to use this for hand refinement via:
https://civitai.com/models/67174/900-hands-library-for-depth-library-or-controlnet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.