dinov2
dinov2 copied to clipboard
Train model with data of no labels?
Hi, I have a question about how to handle the dataset and label.txt when I want to train the model. I am a bit confused when I see the settings for labels since the training is of unsupervised learning, then how I handle the data structure of the dataset and contexts of label.txt for training give that I have only data with no label?
I guess the labels should not do anything for the unsupervised training and now I just put the inputs, which are images with no label, into separated folders and recognize the name of the folders as the name of class in order to fit the format of dinov2 inputs. In this way, the name of class and the images in the folders are definitely not matching. Will this work for training?
Thank you in advance!
dataset
- ROOT
|-- train
| |-- folder0
| | |-- folder0_01.jpeg
| | `-- ...
| |-- folder1
| | |-- folder1_01.jpeg
| | `-- ...
| `-- ...
|-- val
|-- test
`-- label.txt
label.txt
folder0, folder0
folder1, folder1
...