Skip to content
Snippets Groups Projects
Commit aa516d92 authored by Stephane Chavin's avatar Stephane Chavin
Browse files

Update get_train_val_YOLO.py

parent 94294c51
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ for i in tqdm(os.listdir(path)):
df.reset_index(inplace = True)
tab = df.groupby('espece').count()
tab = tab.sort_values(tab.columns[0],ascending = False).sample(NB_CLASS)
tab.index = tab.index.astype(str)
compte = pd.DataFrame(np.zeros((len(tab)+1,1)),columns = ['nombre'])
nb_val = int(tab.file.min()*(1-args.ratio))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment