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
I have searched the YOLOv5 issues and discussions and found no similar questions.
Question
Is this line of code redundant? If I move the project to a different path and run the script from there, wouldn't the current working directory already be correct?
Additional
No response
The text was updated successfully, but these errors were encountered:
👋 Hello @rickmoddy, thank you for your interest in YOLOv5 🚀! Your question is noted, and we appreciate your curiosity about the code implementation. An Ultralytics engineer will assist you soon to provide clarity on your inquiry 😊.
In the meantime, please explore our ⭐️ YOLOv5 Tutorials for detailed guides on code functionality, setups, and advanced features.
To ensure we can assist you effectively, if your question pertains to a possible 🐛 bug or error, please provide a minimum reproducible example. This includes:
The exact code snippets you are running.
Details about your setup, such as your operating system, Python version, PyTorch version, and runtime environment.
A description of how to reproduce the behavior, if relevant.
If this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are currently passing ✅. CI tests validate the performance and correctness of YOLOv5 scripts for training, validation, inference, export, and benchmarking across macOS, Windows, and Ubuntu daily and on every commit.
We appreciate your patience and input into improving YOLOv5! 🚀
@rickmoddy this line converts the ROOT directory path to be relative to the current working directory, which ensures consistent path handling when running scripts from different locations. It's intentional and serves to:
Maintain portable relative paths if executing from outside the project directory
Prevent absolute path dependencies in saved results
The current implementation follows Python best practices for path management across different execution contexts.
Search before asking
Question
Is this line of code redundant? If I move the project to a different path and run the script from there, wouldn't the current working directory already be correct?
Additional
No response
The text was updated successfully, but these errors were encountered: