This repository was archived by the owner on Apr 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 149
Migrating the COCO dataset to Epochs #606
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
124d1dc
Initial conversion of COCO to Epochs.
BradLarson 86b7b59
Fixing tests, adding convenience initializers.
BradLarson f275055
Forgot an assertion.
BradLarson 5c941a0
Remove Batcher from Dataset CMakeLists.
BradLarson 4c258c3
Adding a settable transform function for custom data manipulation in …
BradLarson 4c68e31
Allow more than one example to be generated during preprocessing from…
BradLarson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
Previously the dataset exposed access to the underlying array of
[ObjectDetectionExample]
and it was useful to do custom preprocessing before it's converted to the batcher/epochs. I wonder if this PR can preserve this functionality.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.
For custom preprocessing before delivery to anything downstream,
makeBatch()
is the intended customization point. In fact, I think we'll eventually want to shift from using the LazyImage type to just providing a URL and having themakeBatch()
perform all necessary processing at time of use. This is done in the Imagenette dataset, for example, with lazy loading of images coming from input URLs at the point of makeBatch().What if I added a settable mapping function of
ObjectDetectionExample
->ObjectDetectionExample
that was called withinmakeBatch()
, where any custom preprocessing could be specified for a given instance of the dataset? OrmakeBatch()
itself could be a user-provided function.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.
I added a new
transform
parameter to the dataset creation that allows for the insertion of a custom ObjectDetectionExample -> ObjectDetectionExample mapping to be performed on each example. This will occur within makeBatch(), and by default we'll have an identity mapping. Again, This provides a starting point for working with the dataset, but I think we'll want to do a more thorough reorganization later to take full advantage of the Epochs design. That will be motivated by the examples you're working on.For now, I'd like to make sure we've preserved functionality while cleaning up the last deprecation warnings before another stable branch cut.