diff-svc icon indicating copy to clipboard operation
diff-svc copied to clipboard

IndexError: list index out of range (when uploading my model in the Inference Notebook)

Open RiccardoRuggiero opened this issue 3 years ago • 4 comments


IndexError Traceback (most recent call last) in 50 config_path="/content/drive/MyDrive/diff-svc/data/My_Model/config.yaml" #@param {type: "string"} 51 hubert_gpu=True ---> 52 svc_model = Svc(project_name,config_path,hubert_gpu, model_path) 53 print('model loaded')

/content/diff-svc/preprocessing/hubertinfer.py in init(self, pt_path) 20 self.hbt_model = load_model(pt_path) 21 else: ---> 22 pt_path = list(Path(pt_path).parent.rglob('*.pt'))[0] 23 if 'hubert_gpu' in hparams.keys(): 24 self.use_gpu = hparams['hubert_gpu']

IndexError: list index out of range

RiccardoRuggiero avatar Jan 24 '23 17:01 RiccardoRuggiero

if you don't have hubert model ckpt, the problem occur. you have to download model ckpt.

JinEui-Kim avatar Jan 27 '23 03:01 JinEui-Kim

How can i download it?

RiccardoRuggiero avatar Jan 31 '23 10:01 RiccardoRuggiero

join the discord server you can see the pre-trained-model channel model ckpt is there

JinEui-Kim avatar Jan 31 '23 11:01 JinEui-Kim