先说解决方法,模型不要选择XL的模型
Traceback (most recent call last):
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\gradio\routes.py", line 488, in run_predict
output = await app.get_blocks().process_api(
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1431, in process_api
result = await self.call_function(
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\gradio\blocks.py", line 1103, in call_function
prediction = await anyio.to_thread.run_sync(
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
result = context.run(func, *args)
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\gradio\utils.py", line 707, in wrapper
response = f(*args, **kwargs)
File "I:\AI\stable-diffusion-webui-master\modules\textual_inversion\ui.py", line 10, in create_embedding
filename = modules.textual_inversion.textual_inversion.create_embedding(name, nvpt, overwrite_old, init_text=initialization_text)
File "I:\AI\stable-diffusion-webui-master\modules\textual_inversion\textual_inversion.py", line 259, in create_embedding
cond_model([""]) # will send cond model to GPU if lowvram/medvram is active
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "I:\AI\stable-diffusion-webui-master\venv\lib\site-packages\torch\nn\modules\module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "I:\AI\stable-diffusion-webui-master\repositories\generative-models\sgm\modules\encoders\modules.py", line 141, in forward
emb_out = embedder(batch[embedder.input_key])
TypeError: list indices must be integers or slices, not str
发表评论