diff --git a/get_train_val.py b/get_train_val.py
index 86028220ffc92d3734d8b4e379323d64ca25d17c..988d96e1910bdfd9866e27b179aaa48593219e41 100755
--- a/get_train_val.py
+++ b/get_train_val.py
@@ -71,7 +71,7 @@ def prepare_data(arguments):
     """
     annotations = [] 
     background = []  
-    for f in tqdm(os.path.join(arguments.path_to_data, f), desc="Processing", 
+    for f in tqdm(arguments.path_to_data, desc="Processing", 
                                                             ascii='░▒▓█'):
         file_annotation = pd.read_csv(f, sep=' ', names=['species', 'x', 'y', 'w', 'h'])
         if len(file_annotation) == 0: