Created
April 7, 2020 06:11
-
-
Save alankbi/12cec24d2cd7a510c23f652e7f1f8249 to your computer and use it in GitHub Desktop.
Create datasets with Detecto
This file contains 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
from detecto import core | |
# All images and XML files in the same folder | |
dataset = core.Dataset('images/') | |
# Images and XML files in separate folders | |
dataset = core.Dataset('labels/', 'images/') | |
image, target = dataset[0] | |
print(image, target) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment