insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Cannot download model : runtime error

Open quantumcore opened this issue 1 year ago • 13 comments

app = FaceAnalysis(name="antelope")
    raise RuntimeError("Failed downloading url %s" % url)
RuntimeError: Failed downloading url http://insightface.cn-sh2.ufileos.com/models/antelopev2.zip

Insightface version : insightface==0.6.2 Python Version : 3.10.4 Help please.

quantumcore avatar Aug 06 '22 18:08 quantumcore

hello, please use the default package: buffalo_l

nttstar avatar Aug 07 '22 01:08 nttstar

Hello @nttstar, Thanks for your reply. Can you elaborate? I don't understand. Python package buffalo_l? Sorry, I don't understand.

quantumcore avatar Aug 07 '22 11:08 quantumcore

@quantumcore Please use app = FaceAnalysis(name="buffalo_l") or simply app = FaceAnalysis()

nttstar avatar Aug 07 '22 15:08 nttstar

Hello @nttstar Running app = FaceAnalysis() gives me

assert 'detection' in self.models
AssertionError

after the model downloaded. Can you help me out?

quantumcore avatar Aug 09 '22 17:08 quantumcore

Is downloading finished? Can you check ~/.insightface/models/buffalo_l/?

nttstar avatar Aug 10 '22 04:08 nttstar

Yes, the file exists.

File: /home/quantumcore/.insightface/models/buffalo_l/
  Size: 4096      	Blocks: 8          IO Block: 4096   directory

quantumcore avatar Aug 10 '22 05:08 quantumcore

BUMP: The error still exists, Need help on this.

quantumcore avatar Sep 15 '22 16:09 quantumcore

ls /home/quantumcore/.insightface/models/buffalo_l/ any output?

nttstar avatar Sep 16 '22 00:09 nttstar

No output. @nttstar

quantumcore avatar Sep 18 '22 10:09 quantumcore

remove that directory then re-run your script.

nttstar avatar Sep 18 '22 11:09 nttstar

Removed everything under ~/.insightface, Re runned the script.

raise RuntimeError("Failed downloading url %s" % url)
RuntimeError: Failed downloading url http://insightface.cn-sh2.ufileos.com/models/antelope.zip

:'(

quantumcore avatar Sep 18 '22 16:09 quantumcore

Managed to finally get the model to install. But got this.

 raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

quantumcore avatar Sep 21 '22 14:09 quantumcore

For the latest version, the default model-pack should be 'buffalo_l', not 'antelope'. Check if anything goes wrong in your develop environment.

nttstar avatar Sep 21 '22 16:09 nttstar