-
Notifications
You must be signed in to change notification settings - Fork 8
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
Finish labelling fpr each image. #7
Comments
However, it writes on the screen like this: Labeling /Volumes/EasyStore1/Dataset/BingCoco/apple/Image_10.jpg: 2%|▌ | 1/44 [00:16<12:08, 16.95s/it] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
From the following code if the input is a directory then labels are written when all the files in the directory are processed.
How can I modify the code so that labels are immediately available after a file is processed ?
from autodistill_grounding_dino import GroundingDINO
from autodistill.detection import CaptionOntology
import sys
base_model = GroundingDINO(ontology=CaptionOntology({"person": "person"}))
folder_name = sys.argv[1]
base_model.label(input_folder=folder_name, output_folder='labels')
The text was updated successfully, but these errors were encountered: