-
Notifications
You must be signed in to change notification settings - Fork 560
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
Fix Issue #1903 path variable #2016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks! 🚀
I'm not sure if I should open a separate issue or not. I updated to fiftyone==0.16.6 (dataset_type is fo.types.COCODetectionDataset ofc) But it's still not writing the path to the dataset.yaml file. |
@alexk-ede the changes I made are only for YOLOv5 datasets. Also, how are you using |
@victor1cea Oh, sry for the confusion, I copy pasted the wrong dataset_type. So in my custom converter function it's currently set as a default argument dataset_type=fo.types.YOLOv5Dataset. |
So here is a minimal example (based on the yolov5 export example),
This yields
and a
So 1. this still doesn't export the path, so this dataset just doesn't work with yolov5 unless it's placed in the correct folder where yolov5 expects it to be. |
@alexk-ede Oh, I see now. The
|
What changes are proposed in this pull request?
Adds support for
path
variable indataset.yaml
for YOLOv5 datasets, as mentioned in Issue #1903.The docs have been updated too.
How is this patch tested? If it is not, please explain why.
Created a dataset and tested the new possible file structures e.g.
dataset.yaml
located outside of the actual dataset directory.Release Notes
Is this a user-facing change that should be mentioned in the release notes?
notes for FiftyOne users.
(Details in 1-2 sentences. You can just refer to another PR with a description
if this PR is part of a larger change.)
What areas of FiftyOne does this PR affect?
fiftyone
Python library changes