#PTH to ONNX problem on RVC V2 Google Colab (solved)

10 messages · Page 1 of 1 (latest)

chilly ore
#

Whenever i try to do ckpt to ONNX, it always has an error. I think its because there is something missing. This is what it shows on Colab: Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 437, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1346, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1074, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/content/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 1284, in export_onnx
torch.onnx.export(
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 506, in export
_export(
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 1620, in _export
proto = onnx_proto_utils._add_onnxscript_fn(
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/_internal/onnx_proto_utils.py", line 221, in _add_onnxscript_fn
raise errors.OnnxExporterError("Module onnx is not installed!") from e
torch.onnx.errors.OnnxExporterError: Module onnx is not installed!

#

PTH to ONNX problem on RVC V2 Google Colab

red narwhal
chilly ore
#

lemme try that

#

i still have a error about the directory : Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/gradio/routes.py", line 437, in run_predict
output = await app.get_blocks().process_api(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1346, in process_api
result = await self.call_function(
File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 1074, in call_function
prediction = await anyio.to_thread.run_sync(
File "/usr/local/lib/python3.10/dist-packages/anyio/to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "/usr/local/lib/python3.10/dist-packages/anyio/_backends/_asyncio.py", line 867, in run
result = context.run(func, *args)
File "/content/Retrieval-based-Voice-Conversion-WebUI/infer-web.py", line 1284, in export_onnx
torch.onnx.export(
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 506, in export
_export(
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/utils.py", line 1626, in _export
onnx_proto_utils._export_file(proto, f, export_type, export_map)
File "/usr/local/lib/python3.10/dist-packages/torch/onnx/_internal/onnx_proto_utils.py", line 174, in _export_file
with torch.serialization._open_file_like(f, "wb") as opened_file:
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 271, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 252, in init
super().init(open(name, mode))
IsADirectoryError: [Errno 21] Is a directory: '/content/Retrieval-based-Voice-Conversion-WebUI'

red narwhal
chilly ore
#

that worked

#

thx

red narwhal
#

Sure thing!