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

Update file get_train_val.py

parent fb5fd6eb
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ def prepare_data(arguments):
"""
annotations = []
background = []
for f in tqdm(glob.glob(os.path.join(arguments.path_to_data)), desc="Processing",
for f in tqdm(glob.glob(os.path.join(arguments.path_to_data, '*.txt')), desc="Processing",
ascii='░▒▓█'):
file_annotation = pd.read_csv(f, sep=' ', names=['species', 'x', 'y', 'w', 'h'])
if len(file_annotation) == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment