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
Hi, Just wondering if anyone else is having this same error. I only started to pop up after I installed the FaceSwapLab extension but even with the extension disabled I still get this error. Any help is much appreciated!
2024-02-21 16:16:47 *** API error: POST: http://127.0.0.1:7860/physton_prompt/token_counter {'error': 'AttributeError', 'detail': '', 'body': '', 'errors': "'Identity' object has no attribute 'process_texts'"}
2024-02-21 16:16:47 Traceback (most recent call last):
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/anyio/streams/memory.py", line 98, in receive
2024-02-21 16:16:47 return self.receive_nowait()
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/anyio/streams/memory.py", line 93, in receive_nowait
2024-02-21 16:16:47 raise WouldBlock
2024-02-21 16:16:47 anyio.WouldBlock
2024-02-21 16:16:47
2024-02-21 16:16:47 During handling of the above exception, another exception occurred:
2024-02-21 16:16:47
2024-02-21 16:16:47 Traceback (most recent call last):
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 78, in call_next
2024-02-21 16:16:47 message = await recv_stream.receive()
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/anyio/streams/memory.py", line 118, in receive
2024-02-21 16:16:47 raise EndOfStream
2024-02-21 16:16:47 anyio.EndOfStream
2024-02-21 16:16:47
2024-02-21 16:16:47 During handling of the above exception, another exception occurred:
2024-02-21 16:16:47
2024-02-21 16:16:47 Traceback (most recent call last):
2024-02-21 16:16:47 File "/stable-diffusion-webui/modules/api/api.py", line 186, in exception_handling
2024-02-21 16:16:47 return await call_next(request)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
2024-02-21 16:16:47 raise app_exc
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
2024-02-21 16:16:47 await self.app(scope, receive_or_disconnect, send_no_error)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 108, in call
2024-02-21 16:16:47 response = await self.dispatch_func(request, call_next)
2024-02-21 16:16:47 File "/stable-diffusion-webui/modules/api/api.py", line 150, in log_and_time
2024-02-21 16:16:47 res: Response = await call_next(req)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 84, in call_next
2024-02-21 16:16:47 raise app_exc
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/base.py", line 70, in coro
2024-02-21 16:16:47 await self.app(scope, receive_or_disconnect, send_no_error)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/cors.py", line 92, in call
2024-02-21 16:16:47 await self.simple_response(scope, receive, send, request_headers=headers)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/cors.py", line 147, in simple_response
2024-02-21 16:16:47 await self.app(scope, receive, send)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 24, in call
2024-02-21 16:16:47 await responder(scope, receive, send)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/gzip.py", line 44, in call
2024-02-21 16:16:47 await self.app(scope, receive, self.send_with_gzip)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 79, in call
2024-02-21 16:16:47 raise exc
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/middleware/exceptions.py", line 68, in call
2024-02-21 16:16:47 await self.app(scope, receive, sender)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in call
2024-02-21 16:16:47 raise e
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in call
2024-02-21 16:16:47 await self.app(scope, receive, send)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 718, in call
2024-02-21 16:16:47 await route.handle(scope, receive, send)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 276, in handle
2024-02-21 16:16:47 await self.app(scope, receive, send)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/starlette/routing.py", line 66, in app
2024-02-21 16:16:47 response = await func(request)
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/fastapi/routing.py", line 237, in app
2024-02-21 16:16:47 raw_response = await run_endpoint_function(
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/fastapi/routing.py", line 163, in run_endpoint_function
2024-02-21 16:16:47 return await dependant.call(**values)
2024-02-21 16:16:47 File "/stable-diffusion-webui/extensions/sd-webui-prompt-all-in-one/scripts/on_app_started.py", line 108, in _token_counter
2024-02-21 16:16:47 return get_token_counter(data['text'], data['steps'])
2024-02-21 16:16:47 File "/stable-diffusion-webui/extensions/sd-webui-prompt-all-in-one/scripts/physton_prompt/get_token_counter.py", line 34, in get_token_counter
2024-02-21 16:16:47 token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts],
2024-02-21 16:16:47 File "/stable-diffusion-webui/extensions/sd-webui-prompt-all-in-one/scripts/physton_prompt/get_token_counter.py", line 34, in
2024-02-21 16:16:47 token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts],
2024-02-21 16:16:47 File "/stable-diffusion-webui/modules/sd_hijack.py", line 328, in get_prompt_lengths
2024-02-21 16:16:47 _, token_count = self.clip.process_texts([text])
2024-02-21 16:16:47 File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr
2024-02-21 16:16:47 raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
2024-02-21 16:16:47 AttributeError: 'Identity' object has no attribute 'process_texts'
2024-02-21 16:16:47
2024-02-21 16:16:47 ---
Total progress: 100% 60/60 [02:07<00:00, 2.12s/it]
2024-02-21 16:17:13 Traceback (most recent call last):
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/gradio/routes.py", line 488, in run_predict
2024-02-21 16:17:13 output = await app.get_blocks().process_api(
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/gradio/blocks.py", line 1431, in process_api
2024-02-21 16:17:13 result = await self.call_function(
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/gradio/blocks.py", line 1103, in call_function
2024-02-21 16:17:13 prediction = await anyio.to_thread.run_sync(
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/anyio/to_thread.py", line 33, in run_sync
2024-02-21 16:17:13 return await get_asynclib().run_sync_in_worker_thread(
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 877, in run_sync_in_worker_thread
2024-02-21 16:17:13 return await future
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 807, in run
2024-02-21 16:17:13 result = context.run(func, *args)
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/gradio/utils.py", line 707, in wrapper
2024-02-21 16:17:13 response = f(*args, **kwargs)
2024-02-21 16:17:13 File "/stable-diffusion-webui/modules/call_queue.py", line 13, in f
2024-02-21 16:17:13 res = func(*args, **kwargs)
2024-02-21 16:17:13 File "/stable-diffusion-webui/modules/ui.py", line 172, in update_token_counter
2024-02-21 16:17:13 token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts], key=lambda args: args[0])
2024-02-21 16:17:13 File "/stable-diffusion-webui/modules/ui.py", line 172, in
2024-02-21 16:17:13 token_count, max_length = max([model_hijack.get_prompt_lengths(prompt) for prompt in prompts], key=lambda args: args[0])
2024-02-21 16:17:13 File "/stable-diffusion-webui/modules/sd_hijack.py", line 328, in get_prompt_lengths
2024-02-21 16:17:13 _, token_count = self.clip.process_texts([text])
2024-02-21 16:17:13 File "/opt/conda/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1695, in getattr
2024-02-21 16:17:13 raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")
2024-02-21 16:17:13 AttributeError: 'Identity' object has no attribute 'process_texts'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, Just wondering if anyone else is having this same error. I only started to pop up after I installed the FaceSwapLab extension but even with the extension disabled I still get this error. Any help is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions