Giter Site home page Giter Site logo

sdpaint's People

Contributors

alexberryman avatar danamir avatar demitriux avatar houseofsecrets avatar jasminsehic avatar mirkan1 avatar nopetrides avatar phailhaus avatar pythongor avatar sdbds avatar svenneve 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

sdpaint's Issues

detect users gpu and/or cpu and set the model accorningly to it

for example, my VRAM is 4GB so I can't use some of the high-end models, we should find a find to detect it and let the user know
we can even give links to users so can download from those links

at that phase even a list after getting 500 error is enough

You have not selected any ControlNet Model.

After opening Start.bat for the first time and drawing I'm getting the following error:

Error running process: C:\Users\username\OneDrive\Desktop\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py
Traceback (most recent call last):
  File "C:\Users\username\OneDrive\Desktop\stable-diffusion-webui\modules\scripts.py", line 418, in process
    script.process(p, *script_args)
  File "C:\Users\username\OneDrive\Desktop\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 1022, in process
    model_net = self.load_control_model(p, unet, unit.model, unit.low_vram)
  File "C:\Users\username\OneDrive\Desktop\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 685, in load_control_model
    model_net = self.build_control_model(p, unet, model, lowvram)
  File "C:\Users\username\OneDrive\Desktop\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 694, in build_control_model
    raise RuntimeError(f"You have not selected any ControlNet Model.")
RuntimeError: You have not selected any ControlNet Model.

I didn't change any settings in the webui - only checked the 'allow other script to control this extension' checkbox during installation:
image

I also haven't changed anything in SDPaint/config.json - it's all default.

everytime i use SDpaint, i get error

Exception in thread Thread-1 (send_request):
Traceback (most recent call last):
File "G:\stable-diffusion-webui\00etc\SdPaint-main\venv\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\xxx\miniconda3\envs\qwe\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Users\xxx\miniconda3\envs\qwe\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\xxx\miniconda3\envs\qwe\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\xxx\miniconda3\envs\qwe\lib\threading.py", line 1016, in _bootstrap_inner
self.run()
File "C:\Users\xxx\miniconda3\envs\qwe\lib\threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "G:\stable-diffusion-webui\00etc\SdPaint-main\Scripts\SdPaint.py", line 91, in send_request
r = response.json()
File "G:\stable-diffusion-webui\00etc\SdPaint-main\venv\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

i got same error when control_v11p_sd15_scribble.pth(yaml too) is in stable-diffusion-webui\extensions\sd-webui-controlnet\models and also stable-diffusion-webui\models\ControlNet

Use with LORAs?

I'm able to change the txt2img model (i.e. sd-whatever) on the Automatic111 end and see that reflected when I use generate. However, I enabling a LORA as an additional network in Automatic111 isn't reflected in SdPaint's generate.

Am I missing something? I don't see any way to turn on a LORA in an SdPaint settings file.

Any plans on adding a UI or A1111 integration?

As much as I love this app, all the shortcuts you have to remember is making it pretty cumbersome to use. It really needs a proper interface. Any plans about that?

Ideally this should be an extension in A1111.

Thanks for your work!

"TypeError: NetworkError when attempting to fetch resource." when using web interface.

First of all, this thing is amazing. But for me it only works when I run the start.bat.
When I try the web interface I get

"TypeError: NetworkError when attempting to fetch resource."

and then the terminal window:

INFO: Will watch for changes in these directories: ['I:\SdPaint-main']
INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO: Started reloader process [2296] using WatchFiles
INFO: Started server process [27292]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: 127.0.0.1:56625 - "GET /modules HTTP/1.1" 200 OK
INFO: 127.0.0.1:56626 - "GET /models HTTP/1.1" 200 OK
INFO: 127.0.0.1:56627 - "GET /config HTTP/1.1" 200 OK
INFO: 127.0.0.1:56637 - "POST /paint_image HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "I:\SdPaint-main\venv\lib\site-packages\uvicorn\protocols\http\httptools_impl.py", line 426, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "I:\SdPaint-main\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\fastapi\applications.py", line 1106, in call
await super().call(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\cors.py", line 91, in call
await self.simple_response(scope, receive, send, request_headers=headers)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\cors.py", line 146, in simple_response
await self.app(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "I:\SdPaint-main\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "I:\SdPaint-main\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "I:\SdPaint-main\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "I:\SdPaint-main\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "I:\SdPaint-main\venv\lib\site-packages\fastapi\routing.py", line 274, in app
raw_response = await run_endpoint_function(
File "I:\SdPaint-main\venv\lib\site-packages\fastapi\routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "I:\SdPaint-main\scripts\views\WebView\app.py", line 108, in root
state["main_json_data"]["tiling"] = data["config"]["tiling"]
KeyError: 'tiling'

After that it keeps repeating
INFO: 127.0.0.1:56638 - "GET /server_status HTTP/1.1" 200 OK

over and over.

At first I thought I had installed something wrong, but the non web interface version seems to work just fine.

Any idea what this could be?

Canvas visibility problem

Hello,

after succesful installation, when I paint someting in the right part of canvas, I see computing on the top of canvas, but dont see any image results on the left side of canvas. Just white.

Getting

When I check, http://127.0.0.1:7860/controlnet/txt2img it returns with "{"detail":"Method Not Allowed"}" altough it is allowed in the settings. Then trying to draw and getting error like this:

ControlNet model control_sd15_scribble [fef5e48e] loaded.
Loading preprocessor: none
0%| | 0/15 [00:01<?, ?it/s]
API error: POST: http://127.0.0.1:7860/controlnet/txt2img {'error': 'RuntimeError', 'detail': '', 'body': '', 'errors': 'mat1 and mat2 shapes cannot be multiplied (154x1024 and 768x320)'}
╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\Yapay Zeka\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:94 in receive │
│ │
│ C:\Yapay Zeka\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:89 in receive_nowait │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
WouldBlock

During handling of the above exception, another exception occurred:

╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮
│ C:\Yapay Zeka\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py:78 in call_next │
│ │
│ C:\Yapay Zeka\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py:114 in receive │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
EndOfStream

KeyError: 'Images'

Got the following error after starting painting:

File "C:\Users\ikben\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\ikben\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "C:\StableDiffusion\stable-diffusion-webui\extensions\SdPaint-main\Scripts\SdPaint.py", line 92, in send_request return_img = r['images'][0] KeyError: 'images'

I enabled API mode and allowed controlnet.

KeyError: 'controlnet_models'

微信图片_20230429115608
微信截图_20230429115807
The model was downloaded and placed in the corresponding folder, but an error occurred. I hope to receive guidance
Error loading script: SdPaint.py
Traceback (most recent call last):
File "E:\JCZY\004sd-webui-aki-v4\modules\scripts.py", line 256, in load_scripts
script_module = script_loading.load_module(scriptfile.path)
File "E:\JCZY\004sd-webui-aki-v4\modules\script_loading.py", line 11, in load_module
module_spec.loader.exec_module(module)
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "E:\JCZY\004sd-webui-aki-v4\extensions\SdPaint\scripts\SdPaint.py", line 174, in
if not config['controlnet_models']:
KeyError: 'controlnet_models'

Instructions not clear.

Where do the files have to be downloaded and where is Start.bat supposed to be launched from?

I created a separate folder and when run it downloads all the necessary files but then cmd window closes and nothing is happening. I'm running A1111 with all requirements (--api and "Allow other script to control this extension" enabled). Where is the scribble canvas supposed to appear?

Added a key for eraser, read settings from json, and hr fix support

Great project ! I did some tests on my fork, mainly I added :

  • While 'e' is pressed, paint white (as I have a stylus without a middle button)
  • Read width & height from payload.json , supports sizes other than 512x512
  • Added guidance_start and guidance_end controlnet settings, and altered the values to give more leeway to the model
  • If hr is enabled in settings, automatically enlarges the canvas to support the rendered picture, the hr second pass steps are calculated dynamically a as steps * denoising
  • I added a .gitignore

My payload.json is adapted for those settings : 640x512, hr scale 1.25, hr upscaler Latent (bicubic) 0.6, DDIM 12 steps, guidance end 0.33, weight 0.6. Some of the new lines are needed by the altered code.

My modifications were not done carefully, so I'm not submitting a PR. But feel free to take inspiration from the modifications.

Updated content :

Cheers,

Would it be possible to make the front-end code available

I really like SDpaint, and I find it versatile in many ways. However, as I've been using it, I've noticed some inconveniences and areas I'd like to modify. For example, I'd like to implement features like zooming the canvas or expanding the prompt box.

I have the knowledge and readiness to make these modifications, so I'm wondering if it's possible to access the front-end code for contribution. Would it be possible to make the front-end code available?

KeyError: 'sd_model_checkpoint'

Traceback (most recent call last):
File "d:\StableDiffusion\SdPaint\SdPaint.py", line 16, in
view = PygameView(img2img)
File "d:\StableDiffusion\SdPaint\scripts\views\PygameView.py", line 76, in init
self.state = State(img2img)
File "d:\StableDiffusion\SdPaint\scripts\common\state.py", line 86, in init
self.update_webui_config()
File "d:\StableDiffusion\SdPaint\scripts\common\state.py", line 212, in update_webui_config
self.render['checkpoint'] = self.configuration["webui_config"]['sd_model_checkpoint']
KeyError: 'sd_model_checkpoint'

can't find what the problem is, and there was no such error last week, I tried this all over again but the error still exists

Error Code Returned: Http 500

After launching the canvas and having automatic1111 webui running in the background with control net installed I'm getting the following error when initially drawing on the canvas.

TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Full Traceback:
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 429, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 270, in call
await super().call(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 124, in call
await self.middleware_stack(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 43, in call
await self.app(scope, receive, self.send_with_gzip)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 706, in call
await route.handle(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 235, in app
raw_response = await run_endpoint_function(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 163, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "C:\ai\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 "C:\ai\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\ai\stable-diffusion-webui\modules\progress.py", line 80, in progressapi
elapsed_since_start = time.time() - shared.state.time_start
TypeError: unsupported operand type(s) for -: 'float' and 'NoneType'

Add segmentation painting and MLSD support.

Would love to see segmentation painting as an added feature. It seems that most of the brush painting groundwork is already done, so it's a matter of figuring out how to use the color presets: https://www.reddit.com/r/StableDiffusion/comments/11e4vxl/paint_by_color_numbers_with_controlnet/

Since this wonderful app can already draw straight lines how about adding MLSD model support?

Good job on the app! Amazing how fast it's developing.

EDIT: Ok, so MLSD model apparently works when you add it to the model list in config.json but MLSD detector doesn't seem to be doing its job. I get a blank canvas when switching to it with an image already generated on the left side. The other detectors show proper results.

[Feature Request] Prompt input box

Text input box for the prompt.
Rather than having to edit the payload.json file.
A text input box could appear if you press t. Write it to the payload on next cycle.

Script ‘controlnet’ not

1 2 when I paint someting,I get ErrorCode return;HTTP 422. Then I curl the requestbody ,the error detail is Script ‘controlnet’ not.

requestbody(I just empty the value of input_image,it's too long):
{"prompt": "a castle", "negative_prompt": "(worst quality,low quality,bad quality,normal quality:1.2)", "enable_hr": "false", "seed": 42, "batch_size": 1, "steps": 16, "quick_steps": 12, "cfg_scale": 7, "width": 512, "height": 512, "override_settings": {"CLIP_stop_at_last_layers": 1}, "override_settings_restore_afterwards": "true", "hr_second_pass_steps": 9, "hr_scale": 1.0, "hr_upscaler": "Latent (bicubic)", "denoising_strength": 0.6, "sampler_name": "DPM++ 2M Karras", "alwayson_scripts": {"controlnet": {"args": [{"weight": 0.6, "guidance_start": 0.0, "guidance_end": 1.0, "module": "invert", "pixel_perfect": false, "model": ["control_v11e_sd15_ip2p", "control_v11e_sd15_shuffle", "control_v11p_sd15_canny", "control_v11f1e_sd15_tile", "control_v11f1p_sd15_depth", "control_v11p_sd15_canny", "control_v11p_sd15_inpaint", "control_v11p_sd15_lineart", "control_v11p_sd15_mlsd", "control_v11p_sd15_normalbae", "control_v11p_sd15_openpose", "control_v11p_sd15_scribble"], "input_image": "", "processor_res": 512}]}}}

Great little app. My experiances

Thanks for writing this neat script.
I wanted to share the issue, I ran into trying to get it to work.

  • The first one was the fact that my WebUI port is different.

I saw in the errors it was pointing to local 7860 and my webUI does not use that.
Mine is also published through a reverse proxy to a URL like https://ai.domain.net

This was fixable, but not in the config file instead in the python file. I recommend having a field where users can choose the URL of their WebUI in an easier to find location, such as the json file.

  • The second issue, I ran into is it would only draw on image, this turned out to be a hardcoded scribble control net filename.

I have recently replaced all of my controlnet files with 1.1 versions and none of the names or hashes matched.

This was fixable in the Json file, but may not be an obvious fix.

It might be nice to have a first launch wizard asking what controlnet file to use and what URL. Or maybe just have those as fields at the top of the window.

Sdpaint error

im running a 3090 with this i installed it inside my automic1111 directory - enabled control net to run scripts, set it to run in api mode, updated control net, verified scribble model, running into this error "venv "C:\Super_SD\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI

automic111 terminal error -----------------------------------------------------------------------------------
Launching Web UI with arguments: --no-half --api
No module 'xformers'. Proceeding without it.
python_server_full_path: C:\Super_SD\stable-diffusion-webui\extensions\Auto-Photoshop-StableDiffusion-Plugin\server/python_server
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Loading weights [9aba26abdf] from C:\Super_SD\stable-diffusion-webui\models\Stable-diffusion\deliberate_v2.safetensors
Creating model from config: C:\Super_SD\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Textual inversion embeddings loaded(9): advntr, bad-artist-anime, bad-artist, bad-hands-5, bad-image-v2-39000, EasyNegative, emb-rrf2, eonn, ng_deepnegative_v1_75t
Textual inversion embeddings skipped(3): nartfixer, nfixer, nrealfixer
Model loaded in 2.9s (create model: 0.5s, apply weights to model: 0.6s, move model to device: 1.0s, load textual inversion embeddings: 0.8s).
Deforum ControlNet support: enabled
Running on local URL: http://127.0.0.1:7860

To create a public link, set share=True in launch().
[ControlNet] warning: using deprecated '/controlnet/txt2img' route
[ControlNet] warning: consider using the '/sdapi/v1/txt2img' route with the 'alwayson_scripts' json property instead
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 94, in receive
return self.receive_nowait()
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 89, in receive_nowait
raise WouldBlock
anyio.WouldBlock

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 77, in call_next
message = await recv_stream.receive()
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio\streams\memory.py", line 114, in receive
raise EndOfStream
anyio.EndOfStream

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 407, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 78, in call
return await self.app(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\fastapi\applications.py", line 271, in call
await super().call(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\applications.py", line 125, in call
await self.middleware_stack(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 104, in call
response = await self.dispatch_func(request, call_next)
File "C:\Super_SD\stable-diffusion-webui\modules\api\api.py", line 96, in log_and_time
res: Response = await call_next(req)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 80, in call_next
raise app_exc
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\base.py", line 69, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\gzip.py", line 24, in call
await responder(scope, receive, send)
File "C:\Super_SD\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 "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 21, in call
raise e
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 18, in call
await self.app(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 706, in call
await route.handle(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\fastapi\routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "C:\Super_SD\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 "C:\Super_SD\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 "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "C:\Super_SD\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "C:\Super_SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\api.py", line 99, in controlnet_txt2img
return self.controlnet_any2img(
File "C:\Super_SD\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\api.py", line 115, in controlnet_any2img
alwayson_scripts = dict(any2img_request.alwayson_scripts)
AttributeError: 'ControlNetStableDiffusionProcessingTxt2Img' object has no attribute 'alwayson_scripts'"

sdpaint error

WARNING: You are using pip version 22.0.4; however, version 23.1 is available.
You should consider upgrading via the 'C:\Super_SD\sd_livepaint\SdPaint\venv\Scripts\python.exe -m pip install --upgrade pip' command.
pygame 2.3.0 (SDL 2.24.2, Python 3.9.13)
Hello from the pygame community. https://www.pygame.org/contribute.html
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Super_SD\sd_livepaint\SdPaint\venv\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\andre\anaconda3_\lib\json_init_.py", line 346, in loads
return default_decoder.decode(s)
File "C:\Users\andre\anaconda3
\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=w(s, 0).end())
File "C:\Users\andre\anaconda3
\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\andre\anaconda3_\lib\threading.py", line 980, in bootstrap_inner
self.run()
File "C:\Users\andre\anaconda3
\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "C:\Super_SD\sd_livepaint\SdPaint\Scripts\SdPaint.py", line 91, in send_request
r = response.json()
File "C:\Super_SD\sd_livepaint\SdPaint\venv\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Model not found in control net

Hi! Im new to the controlNet stuff, not sure if I installed it correctly - I installed the extensions and downloaded the *.pth models into the F:\dev\stable-diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\models but back to AUTOMATIC1111 it was still giving me the error, need some help:

Traceback (most recent call last):
  File "F:\dev\stable-diffusion\stable-diffusion-webui\modules\scripts.py", line 417, in process
    script.process(p, *script_args)
  File "F:\dev\stable-diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 752, in process
    model_net = self.load_control_model(p, unet, unit.model, unit.low_vram)
  File "F:\dev\stable-diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 513, in load_control_model
    model_net = self.build_control_model(p, unet, model, lowvram)
  File "F:\dev\stable-diffusion\stable-diffusion-webui\extensions\sd-webui-controlnet\scripts\controlnet.py", line 528, in build_control_model
    raise RuntimeError(f"model not found: {model}")
RuntimeError: model not found: None```

Img2img mode not working

When launching Start_img2img.bat, CMD pops up, shows something loading and then shuts down. Nothing else happens. Can't see what the error is.

I reinstalled SdPaint completely. No change.

Is there Any Turturios with img2img mode?

Specifically, what is the difference between this mode and the image-to-image mode in WebUI?

At first, I thought it was possible to frame an area on the screen and achieve real-time image generation by modifying this area.

However, it seems that this img2img mode only generates images from the selected picture, and none of the shortcuts can be used.

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.