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

The issue in the PascalVoc.py #7

Open
xiaoachen98 opened this issue Oct 9, 2020 · 1 comment
Open

The issue in the PascalVoc.py #7

xiaoachen98 opened this issue Oct 9, 2020 · 1 comment

Comments

@xiaoachen98
Copy link

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?

@chqwer2
Copy link

chqwer2 commented Jul 31, 2022

Hi, same problem here.

Did you find the answer?

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

2 participants