You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Hello @serbbda, thank you for your interest in YOLOv5 🚀! It looks like you're encountering an ImportError.
If this is a 🐛 Bug Report, could you please provide a minimum reproducible example to help us debug it? This includes code snippets, the exact steps you're taking, and any additional details about the error you're experiencing.
If this is a custom training ❓ Question, please include more information such as dataset examples, training logs, and ensure you're following recommended practices for training YOLOv5 models.
Requirements
Ensure you are using Python>=3.8.0 with all required dependencies installed. You can verify this by setting up your environment from the repository and running the commands:
YOLOv5 can be run in numerous environments, including local machines, cloud platforms, and Docker containers. It’s important to have all dependencies up-to-date, including Python, PyTorch, CUDA, and CUDNN.
Status
If all repository tests are passing, the issue might be related to your specific setup or configuration. Please include more detailed logs or context for further assistance.
This is an automated response to guide you, but an Ultralytics engineer will review your issue and provide additional support soon 🙂
Thanks a lot。
How can I solve this problem?
ImportError: cannot import name 'secure filename' from 'utils’ (E:(haut_ codelyoL0v5-flask-masterlutils__init__.py)
Thanks very much for your reply
@serbbda the error suggests that the import of secure_filename is failing because it's not part of YOLOv5's utils module. This function is typically part of Flask (from werkzeug.utils import secure_filename). Verify and replace the import with from werkzeug.utils import secure_filename in your code. Let me know if you face further issues!
Search before asking
YOLOv5 Component
No response
Bug
ImportError: cannot import name 'secure filename' from 'utils’ (E:(haut_ codelyoL0v5-flask-masterlutils__init__.py
Environment
OS:pycharm,windows
Minimal Reproducible Example
No response
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: