Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@glenn-jocher
Added setup.py to convert this into into a package. Can be imported in yolov5 to convert datasets on the fly while training.
Usage
Potential improvement:
The function creates a
new_dir
by default. Instead we can just create the labels/ folder in the coco dataset dir along with the yaml file needed for subsequent loading of data.🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
📊 Key Changes
json2yolo
directory.requirements.txt
and added asetup.py
script to manage package installation.json2yolo/utils.py
.🎯 Purpose & Impact
setup.py
🛠, installation becomes more conventional and manageable using Python's packaging tools.🌟 Summary
Converted JSON2YOLO tools into a maintainable and easily installable Python package 🎁.