Skip to content
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

[YOLOv8] Fix support for --dataset_dir argument #1520

Merged
merged 8 commits into from
Apr 20, 2023

Conversation

dbogunowicz
Copy link
Contributor

@dbogunowicz dbogunowicz commented Apr 13, 2023

This PR: #1513 was not tested rigorously and was failing for all the pathways. This PR fixes this.

Testing:

  • tested validation pathway
  • tested export pathway (generating samples and using the data for calculating gradients at one-shot)
  • tested training pathway

@dbogunowicz dbogunowicz force-pushed the feature/damian/support_dataset_dir branch from 916d265 to 2149bb2 Compare April 13, 2023 15:15
@dbogunowicz dbogunowicz marked this pull request as ready for review April 13, 2023 15:18
@dbogunowicz dbogunowicz changed the title [YOLOv8] Fix support for dataset_dir [YOLOv8] Fix support for --dataset_dir argument Apr 13, 2023
Copy link
Member

@anmarques anmarques left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. I just recommend replacing --datasets-dir by --dataset-path where the later refers to the complete path to the dataset rather than it's parent directory

src/sparseml/yolov8/val.py Outdated Show resolved Hide resolved
bfineran
bfineran previously approved these changes Apr 13, 2023
@bfineran
Copy link
Member

LGTM pending comment

src/sparseml/yolov8/export.py Outdated Show resolved Hide resolved
src/sparseml/yolov8/train.py Outdated Show resolved Hide resolved
src/sparseml/yolov8/utils/helpers.py Outdated Show resolved Hide resolved
src/sparseml/yolov8/val.py Outdated Show resolved Hide resolved
@dbogunowicz dbogunowicz merged commit e302ec4 into main Apr 20, 2023
@dbogunowicz dbogunowicz deleted the feature/damian/support_dataset_dir branch April 20, 2023 10:55
anmarques pushed a commit that referenced this pull request Apr 26, 2023
* working

* working

* addressing comments from review

* add more verbose error message

* Apply suggestions from code review

* Update helpers.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants