import ssl ssl._create_default_https_context = ssl._create_unverified_context
https://stackoverflow.com/questions/47231408/downloading-resnet50-in-keras-generates-ssl-certificate-verify-failed
2、OSError: Unable to open file (Truncated file: eof = 221184, sblock->base_addr = 0, stored_eoa = 58889256)
上次下载的预训练模型不完整,find到删除重新下载即可
本站文章如无特殊说明,均为本站原创,如若转载,请注明出处:keras 下载预训练模型报错SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:852) - Python技术站