insightface icon indicating copy to clipboard operation
insightface copied to clipboard

inference_simple.py list index out of range

Open divastar opened this issue 3 years ago • 1 comments

Hi , thank you for sharing your work I am trying to run the inference but getting this error File "insightface\reconstruction\jmlr\inference_simple.py", line 75, in init backbone_pth = sorted(ckpts)[-1] IndexError: list index out of range

divastar avatar Sep 02 '22 13:09 divastar

The default code doesn't have config.ckpt, you should manually add it for quick inference.

  1. Download the pretrained model (backbone_ep9999.pth, check the Resource section in the README)
  2. Add config.ckpt = "backbone_ep9999.pth" to the configs/base.py

tungedng2710 avatar Sep 08 '22 10:09 tungedng2710

Amaizing Thank you!

divastar avatar Sep 24 '22 02:09 divastar