Unsupervised-Image-Classification icon indicating copy to clipboard operation
Unsupervised-Image-Classification copied to clipboard

Custom Dataset

Open nomaad42 opened this issue 4 years ago • 2 comments

Hi! Thanks a lot for your great work!

Can you, please, share how I can train on my custom dataset?

nomaad42 avatar Aug 22 '21 15:08 nomaad42

Want to ask the same thing, thanks!

OscarWei61 avatar May 18 '22 08:05 OscarWei61

@Cwei61 Use the same data format as datasets.ImageFolder :

|-Training Dataset ($DIR in main.sh)
	|-Class#1
		|-ImageFile#1 (suffix is defined as $SUFFIX in main.sh)
		|-ImageFile#2
		...
		|-ImageFile#m
	|-Class#2
	...
	|-Class#n

Sub-folder name is treated as ground-truth label, which is used to evaluate NMI metric with ground-truth.

If you do not have ground-truth label and just want to apply image clustering w/o performance evaluation, you can simply set only one sub-folder and put your image data into the sub-folder.

luan-g avatar May 20 '22 06:05 luan-g