-
-
Notifications
You must be signed in to change notification settings - Fork 16.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
为什么mac会抛出这个问题 #13459
Comments
👋 Hello @sj746, thank you for your interest in YOLOv5 🚀! It seems like you are encountering a certificate verification issue. If this is a 🐛 Bug Report, could you please provide a minimum reproducible example (MRE)? This would greatly help us diagnose the issue. Be sure to include all relevant details such as scripts, configurations, and any necessary context. If you're asking a ❓ Question, please share any additional information that could help us assist you better. For instance, the Python version, operating system details, and how you installed dependencies would be valuable. RequirementsEnsure your Python version is 3.8.0 or newer and all required dependencies are installed. Make sure PyTorch version is 1.8 or above as well. EnvironmentsYOLOv5 supports many tested environments such as Notebooks with GPU, cloud platforms, or Docker. Double-check that your environment meets the expected setup. Status ⬆️Lastly, you can check our continuous integration (CI) badge on the repository page to see if the latest tests have passed. Our CI tests regularly verify YOLOv5 operations on a variety of platforms. 😄 This is an automated reply to get you started. An Ultralytics engineer will review your question and assist you further soon! |
我的是python3.10 |
(.venv) dengbiao@dengbiaodeMacBook-Air yolov5-master % python train.py --data new.yaml --weights yolov5s.pt --img 640 hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0 During handling of the above exception, another exception occurred: Traceback (most recent call last): hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0 During handling of the above exception, another exception occurred: Traceback (most recent call last): hyperparameters: lr0=0.01, lrf=0.01, momentum=0.937, weight_decay=0.0005, warmup_epochs=3.0, warmup_momentum=0.8, warmup_bias_lr=0.1, box=0.05, cls=0.5, cls_pw=1.0, obj=1.0, obj_pw=1.0, iou_t=0.2, anchor_t=4.0, fl_gamma=0.0, hsv_h=0.015, hsv_s=0.7, hsv_v=0.4, degrees=0.0, translate=0.1, scale=0.5, shear=0.0, perspective=0.0, flipud=0.0, fliplr=0.5, mosaic=1.0, mixup=0.0, copy_paste=0.0 During handling of the above exception, another exception occurred: Traceback (most recent call last): |
@sj746 the error indicates an SSL certificate verification failure when attempting to download a font file. This is a common issue on macOS where the system's certificate store is not correctly configured for Python. To resolve this, run the following command to install or update the certificates for Python: /Applications/Python\ 3.10/Install\ Certificates.command If you are using a virtual environment, ensure it inherits the certificates from the system installation. After running the command, retry the training script. Let me know if additional issues arise! |
OK
邓彪
***@***.***
广东理工职业学院
学生
…---原始邮件---
发件人: "Paula ***@***.***>
发送时间: 2024年12月14日(周六) 上午7:10
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [ultralytics/yolov5] 为什么mac会抛出这个问题 (Issue #13459)
@sj746 the error indicates an SSL certificate verification failure when attempting to download a font file. This is a common issue on macOS where the system's certificate store is not correctly configured for Python.
To resolve this, run the following command to install or update the certificates for Python:
/Applications/Python\ 3.10/Install\ Certificates.command
If you are using a virtual environment, ensure it inherits the certificates from the system installation. After running the command, retry the training script. Let me know if additional issues arise!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thank you for the details. As mentioned earlier, the issue is due to SSL certificate verification failure on macOS. Please run |
好的
邓彪
***@***.***
广东理工职业学院
学生
…---原始邮件---
发件人: "Paula ***@***.***>
发送时间: 2024年12月18日(周三) 凌晨0:51
收件人: ***@***.***>;
抄送: ***@***.******@***.***>;
主题: Re: [ultralytics/yolov5] 为什么mac会抛出这个问题 (Issue #13459)
Thank you for the details. As mentioned earlier, the issue is due to SSL certificate verification failure on macOS. Please run /Applications/Python\ 3.10/Install\ Certificates.command to install or update your Python certificates. If you're using a virtual environment, ensure it inherits the updated certificates. After this, retry your training script. Let me know if the problem persists!
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thank you for confirming. If running |
Search before asking
Question
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
Additional
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1007)
The text was updated successfully, but these errors were encountered: