You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*** API error: POST: http://127.0.0.1/sdapi/v1/img2img {'error': 'NansException', 'detail': '', 'body': '', 'errors': 'A tensor with all NaNs was produced in VAE. Use --disable-nan-check commandline argument to disable this check.'}
Traceback (most recent call last):
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/streams/memory.py", line 98, in receive
return self.receive_nowait()
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/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 "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 78, in call_next
message = await recv_stream.receive()
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/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 "/home/admin/Data/code/python/stable-diffusion-webui/modules/api/api.py", line 187, in exception_handling
return await call_next(request)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 108, in __call__
response = await self.dispatch_func(request, call_next)
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/api/api.py", line 151, in log_and_time
res: Response = await call_next(req)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
raise app_exc
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/cors.py", line 84, in __call__
await self.app(scope, receive, send)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in __call__
await responder(scope, receive, send)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in __call__
await self.app(scope, receive, self.send_with_gzip)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
raise exc
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
await self.app(scope, receive, sender)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
raise e
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
await self.app(scope, receive, send)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/routing.py", line 718, in __call__
await route.handle(scope, receive, send)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
await self.app(scope, receive, send)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
response = await func(request)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
raw_response = await run_endpoint_function(
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/fastapi/routing.py", line 165, in run_endpoint_function
return await run_in_threadpool(dependant.call, **values)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/starlette/concurrency.py", line 41, in run_in_threadpool
return await anyio.to_thread.run_sync(func, *args)
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
return await future
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
result = context.run(func, *args)
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/api/api.py", line 441, in img2imgapi
processed = process_images(p)
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/processing.py", line 732, in process_images
res = process_images_inner(p)
File "/home/admin/Data/code/python/stable-diffusion-webui/extensions/sd-webui-controlnet/scripts/batch_hijack.py", line 42, in processing_process_images_hijack
return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/processing.py", line 875, in process_images_inner
x_samples_ddim = decode_latent_batch(p.sd_model, samples_ddim, target_device=devices.cpu, check_for_nans=True)
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/processing.py", line 601, in decode_latent_batch
raise e
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/processing.py", line 598, in decode_latent_batch
devices.test_for_nans(sample, "vae")
File "/home/admin/Data/code/python/stable-diffusion-webui/modules/devices.py", line 136, in test_for_nans
raise NansException(message)
modules.devices.NansException: A tensor with all NaNs was produced in VAE. Use --disable-nan-check commandline argument to disable this check.
The text was updated successfully, but these errors were encountered:
HtopH
changed the title
When I use api times error
Error when I use api
Nov 24, 2023
*** API error: POST: http://127.0.0.1/sdapi/v1/img2img {'error': 'NansException', 'detail': '', 'body': '', 'errors': 'A tensor with all NaNs was produced in VAE. Use --disable-nan-check commandline argument to disable this check.'}
Traceback (most recent call last):
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/streams/memory.py", line 98, in receive
return self.receive_nowait()
File "/home/admin/anaconda3/envs/sd-webui/lib/python3.10/site-packages/anyio/streams/memory.py", line 93, in receive_nowait
raise WouldBlock
anyio.WouldBlock
The text was updated successfully, but these errors were encountered: