LIR-for-Unsupervised-IR icon indicating copy to clipboard operation
LIR-for-Unsupervised-IR copied to clipboard

The issue in the PascalVoc.py

Open xiaoachen98 opened this issue 4 years ago • 1 comments

As your attempt, you want to divide the pascalvoc dataset into 4, and this .py file is just for pascalvoc dataset. But in your code : def splitlist(folder, trainfolder1, trainfolder2, testfolder): if not os.path.exists(folder): raise Exception('input folder dose not exist ! please check it !!') if not os.path.exists(trainfolder1): os.makedirs(trainfolder1) if not os.path.exists(trainfolder2): os.makedirs(trainfolder2) if not os.path.exists(testfolder): os.makedirs(testfolder)

filelist = os.listdir(folder)
sublist = random.sample(filelist, **110000**)
sublist_a = random.sample(sublist, **55000**)
   .....

The number of pictures in the folder is 110000 and 55000 respectively, but there are only 12031 images in the pascalvoc data set. How did you do it? Or is it that you made a mistake?

xiaoachen98 avatar Oct 09 '20 13:10 xiaoachen98

Hi, same problem here.

Did you find the answer?

chqwer2 avatar Jul 31 '22 10:07 chqwer2