insightface
insightface copied to clipboard
Cannot download model : runtime error
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.
hello, please use the default package: buffalo_l
Hello @nttstar, Thanks for your reply. Can you elaborate? I don't understand. Python package buffalo_l? Sorry, I don't understand.
@quantumcore
Please use
app = FaceAnalysis(name="buffalo_l")
or simply
app = FaceAnalysis()
Hello @nttstar
Running app = FaceAnalysis()
gives me
assert 'detection' in self.models
AssertionError
after the model downloaded. Can you help me out?
Is downloading finished?
Can you check ~/.insightface/models/buffalo_l/
?
Yes, the file exists.
File: /home/quantumcore/.insightface/models/buffalo_l/
Size: 4096 Blocks: 8 IO Block: 4096 directory
BUMP: The error still exists, Need help on this.
ls /home/quantumcore/.insightface/models/buffalo_l/
any output?
No output. @nttstar
remove that directory then re-run your script.
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
:'(
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
For the latest version, the default model-pack should be 'buffalo_l', not 'antelope'. Check if anything goes wrong in your develop environment.