Auto-Photoshop-StableDiffusion-Plugin icon indicating copy to clipboard operation
Auto-Photoshop-StableDiffusion-Plugin copied to clipboard

API Error with SD.Next

Open ktee95 opened this issue 1 year ago • 0 comments

I have problems with the new updated version of Vlad SD.Next (Stability Matrix manager) when using img2img in Photoshop 2023. The plugin version is currently 1.4.1 Image dimension: 1080x1440 Below is the log:

- with 768x1024 resolution:

13:37:09-253356 INFO LoRA apply: ['add_detail', 'all_eyes_hands_skin_fin', 'forehead_slider_v2'] patch=0.00 load=2.33
100%|██████████| 13/13 [00:23<00:00, 1.78s/it] 13:37:45-038339 INFO Processed: images=1 time=42.76 its=0.70 memory={'ram': {'used': 8.93, 'total': 63.9}, 'gpu': {'used': 2.63,
'total': 12.0}, 'retries': 0, 'oom': 0}
13:37:46-893005 ERROR API error: POST:
http://127.0.0.1:7860/sdapi/v1/png-info {'error':
'KeyError', 'detail': '', 'body': '', 'errors':
"'parameters'"}
13:37:46-896408 ERROR HTTP API: KeyError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:97 in receive │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:92 in receive_nowait │ └─────────────────────────────────────────────────────────────────────────────┘ WouldBlock

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:159 in call_next │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:112 in receive │ └─────────────────────────────────────────────────────────────────────────────┘ EndOfStream

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\modules\middleware.py:41 in │ │ log_and_time │ │ │ │ 40 │ │ │ ts = time.time() │ │ > 41 │ │ │ res: Response = await call_next(req) │ │ 42 │ │ │ duration = str(round(time.time() - ts, 4)) │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:165 in call_next │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:151 in coro │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\gzip.py:26 in call │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\exceptions.py:62 in call │ │ │ │ ... 11 frames hidden ... │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \concurrency.py:35 in run_in_threadpool │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\to_ │ │ thread.py:56 in run_sync │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio_ba │ │ ckends_asyncio.py:2134 in run_sync_in_worker_thread │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio_ba │ │ ckends_asyncio.py:851 in run │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\modules\api\api.py:381 in │ │ pnginfoapi │ │ │ │ 380 │ │ │ │ > 381 │ │ if items and items['parameters']: │ │ 382 │ │ │ del items['parameters'] │ └─────────────────────────────────────────────────────────────────────────────┘ KeyError: 'parameters'

`

- with original resolution

100%|██████████| 11/11 [00:21<00:00, 2.00s/it] 13:41:24-843554 INFO Processed: images=1 time=41.91 its=0.72 memory={'ram': {'used': 10.71, 'total': 63.9}, 'gpu': {'used': 2.73, 'total': 12.0}, 'retries': 0, 'oom': 0}
13:43:32-301826 INFO Applying token merging: ratio=0.1
Loading model: E:\Material\models\Lora\add_detail.safetensors ----- 0.0… -:--:… Loading model: E:\Material\models\Lora\add_detail.safetensors ----- 0.0… -:--:… MB
Loading model: E:\Material\models\Lora\polyhdron_all_in_one_eyes_hands_skin_f… Loading model: E:\Material\models\Lora\forehead_slider_v2.safetensors -- 0… -:… Loading model: E:\Material\models\Lora\forehead_slider_v2.safetensors -- 0… -:… MB
13:43:38-586923 INFO LoRA apply: ['add_detail', 'all_eyes_hands_skin_fin', 'forehead_slider_v2'] patch=0.00 load=2.45
13:43:40-025902 ERROR API error: POST:
http://127.0.0.1:7860/sdapi/v1/img2img {'error':
'RuntimeError', 'detail': '', 'body': '', 'errors':
'The size of tensor a (128) must match the size of
tensor b (135) at non-singleton dimension 3'}
13:43:40-029331 ERROR HTTP API: RuntimeError
┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:97 in receive │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:92 in receive_nowait │ └─────────────────────────────────────────────────────────────────────────────┘ WouldBlock

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:159 in call_next │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\anyio\str │ │ eams\memory.py:112 in receive │ └─────────────────────────────────────────────────────────────────────────────┘ EndOfStream

During handling of the above exception, another exception occurred:

┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ O:\StabilityMatrix\Data\Packages\automatic\modules\middleware.py:41 in │ │ log_and_time │ │ │ │ 40 │ │ │ ts = time.time() │ │ > 41 │ │ │ res: Response = await call_next(req) │ │ 42 │ │ │ duration = str(round(time.time() - ts, 4)) │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:165 in call_next │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\base.py:151 in coro │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\gzip.py:26 in call │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\venv\lib\site-packages\starlette │ │ \middleware\exceptions.py:62 in call │ │ │ │ ... 16 frames hidden ... │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\modules\processing.py:760 in │ │ process_images │ │ │ │ 759 │ │ │ with context_hypertile_vae(p), context_hypertile_unet(p) │ │ > 760 │ │ │ │ res = process_images_inner(p) │ │ 761 │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\extensions-builtin\sd-webui-cont │ │ rolnet\scripts\batch_hijack.py:42 in processing_process_images_hijack │ │ │ │ 41 │ │ │ # we are not in batch mode, fallback to original function │ │ > 42 │ │ │ return getattr(processing, '__controlnet_original_process │ │ 43 │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\modules\processing.py:900 in │ │ process_images_inner │ │ │ │ 899 │ │ │ │ with devices.without_autocast() if devices.unet_need │ │ > 900 │ │ │ │ │ samples_ddim = p.sample(conditioning=c, uncondit │ │ 901 │ │ │ │ x_samples_ddim = [decode_first_stage(p.sd_model, sam │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\modules\processing.py:1403 in │ │ sample │ │ │ │ 1402 │ │ x *= self.initial_noise_multiplier │ │ > 1403 │ │ samples = self.sampler.sample_img2img(self, self.init_latent │ │ 1404 │ │ if self.mask is not None: │ │ │ │ O:\StabilityMatrix\Data\Packages\automatic\modules\sd_samplers_kdiffusion.p │ │ y:331 in sample_img2img │ │ │ │ 330 │ │ sigma_sched = sigmas[steps - t_enc - 1:] │ │ > 331 │ │ xi = x + noise * sigma_sched[0] │ │ 332 │ │ extra_params_kwargs = self.initialize(p) │ └─────────────────────────────────────────────────────────────────────────────┘ RuntimeError: The size of tensor a (128) must match the size of tensor b (135) at non-singleton dimension 3

`

Specs: app: SD.next updated: 2023-12-30 hash: ab7b78cc url: https://github.com/vladmandic/automatic/tree/master torch: 2.1.2+cu121 Autocast nohalf GPU: device: NVIDIA GeForce RTX 3060 (1) (sm_90) (8, 6) cuda: 12.1 cudnn: 8801 driver: 546.33

ktee95 avatar Dec 31 '23 06:12 ktee95