rvc-webui icon indicating copy to clipboard operation
rvc-webui copied to clipboard

how to download models?

Open lioriky6 opened this issue 1 year ago • 2 comments

I have downloaded the webui and I downloaded a zip file that contains 2 .pth files and 1 json and I don't understand how do I add the model to the webui, I tried to put the file in the checkpoints folder but nothing happens, even after I reload page or press on the recycle button. What am I missing?

lioriky6 avatar May 01 '23 18:05 lioriky6

I was not able to reproduce the problem in my environment. If a file ending in .pth exists in models/checkpoints it should be recognized. Could you please provide more information?

ddPn08 avatar May 02 '23 09:05 ddPn08

Apart from the 4 built-in files (guanguan, keruan, kiki, youzhan), a lot of the files i've tried putting into the "weights" folder causes a python error when selecting the file in the drop-down. Example:

Traceback (most recent call last):
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\gradio\routes.py", line 321, in run_predict
    output = await app.blocks.process_api(
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\gradio\blocks.py", line 1006, in process_api
    result = await self.call_function(fn_index, inputs, iterator, request)
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\gradio\blocks.py", line 847, in call_function
    prediction = await anyio.to_thread.run_sync(
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 937, in run_sync_in_worker_thread
    return await future
  File "D:\Programs\RVC1006Nvidia\runtime\lib\site-packages\anyio\_backends\_asyncio.py", line 867, in run
    result = context.run(func, *args)
  File "D:\Programs\RVC1006Nvidia\infer\modules\vc\modules.py", line 102, in get_vc
    self.tgt_sr = self.cpt["config"][-1]
KeyError: 'config'

Edit: I've found out that .pth files can be many different things. They are not necessarily compatible with this. Maybe some sort of naming convention is needed to help people who are new to all this.

JoaCHIP avatar Jan 09 '24 18:01 JoaCHIP