Open gerrat opened 7 months ago
Having the exact same issues, only it fails to work with either Python script or directly from bash. The created dataset folder has the correct structure but all its sub-folders are empty. Copying the original images to the dataset/images folder doesn't work either.
After doing a bit more testing, it looks like autodistill will not read and/or copy PNG files. I had to go through the process of converting PNG to JPG and it appears to be working now. This is actually a significant issue, as JPG suffer from data distortions due to file compression.
Search before asking
Bug
In my
data
directory, I have three subdirectories:test
,train
, andvalidation
.In each of these subdirectories, there are 20 .jpeg files. Trying to run autodistill on the
data/train
directory produces this:autodistill
didn't create any files in the directory it is looking in with this traceback (/project/labels/results/train/images
).It did however copy all the .jpeg files from my(I must have manually did this, trying to get things to work) It did createdata/test
directory into aresults/images
directory.results/train
, andresults/valid
directories, andimages
, andlabels
subdirectories within both of these, but they're empty.Environment
Minimal Reproducible Example
autodistill data/train --base="grounded_sam" --target="yolov8" --ontology '{"box": "case", "label": "label"}' --output="./results"
Additional
Running this through Python, I get a similar error, in that it ends up looking for images inresults/train/images
, but that folder is emptyUpdate: Not sure what happened before, but running directly via a python script worked this time. Running
autodistill
from bash prompt still fails.Are you willing to submit a PR?