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

Finish labelling fpr each image. #7

Open
shersoni610 opened this issue Nov 3, 2023 · 1 comment
Open

Finish labelling fpr each image. #7

shersoni610 opened this issue Nov 3, 2023 · 1 comment

Comments

@shersoni610
Copy link

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')

@shersoni610
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant