整合包在ubuntu下无法推理 #358
-
我下载了整合包,按照requirement.txt建了venv,尝试生成音频时报错。 Traceback (most recent call last):
File "./venv/lib/python3.10/site-packages/gradio/routes.py", line 534, in predict
output = await route_utils.call_process_api(
File "./venv/lib/python3.10/site-packages/gradio/route_utils.py", line 226, in call_process_api
output = await app.get_blocks().process_api(
File "./venv/lib/python3.10/site-packages/gradio/blocks.py", line 1550, in process_api
result = await self.call_function(
File "./venv/lib/python3.10/site-packages/gradio/blocks.py", line 1185, in call_function
prediction = await anyio.to_thread.run_sync(
File "./venv/lib/python3.10/site-packages/anyio/to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "./venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
return await future
File "/usr/lib/python3.10/asyncio/futures.py", line 285, in __await__
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup
future.result()
File "/usr/lib/python3.10/asyncio/futures.py", line 201, in result
raise self._exception.with_traceback(self._exception_tb)
File "./venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 851, in run
result = context.run(func, *args)
File "./venv/lib/python3.10/site-packages/gradio/utils.py", line 661, in wrapper
response = f(*args, **kwargs)
File "./webui.py", line 326, in tts_fn
audio_list = process_text(
File "./webui.py", line 285, in process_text
generate_audio(
File "./webui.py", line 56, in generate_audio
audio = infer(
File "./infer.py", line 191, in infer
return inferMap_V3[version](
File "./oldVersion/V210/__init__.py", line 112, in infer
net_g.infer(
File "./oldVersion/V210/models.py", line 1016, in infer
x, m_p, logs_p, x_mask, _ = self.enc_p(
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "./oldVersion/V210/models.py", line 411, in forward
x = self.encoder(x * x_mask, x_mask, g=g)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "./attentions.py", line 112, in forward
y = self.attn_layers[i](x, x, attn_mask)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "./attentions.py", line 264, in forward
q = self.conv_q(x)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File ".venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl
return forward_call(*args, **kwargs)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 310, in forward
return self._conv_forward(input, self.weight, self.bias)
File "./venv/lib/python3.10/site-packages/torch/nn/modules/conv.py", line 306, in _conv_forward
return F.conv1d(input, weight, bias, self.stride,
RuntimeError: Expected 2D (unbatched) or 3D (batched) input to conv1d, but got input of size: [1, 192, 13, 13] |
Beta Was this translation helpful? Give feedback.
Answered by
Stardust-minus
Apr 26, 2024
Replies: 1 comment
-
不负责对整合包做技术支持 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Stardust-minus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不负责对整合包做技术支持