yasintuncerr commited on
Commit
244c5a1
·
1 Parent(s): f0f3c89

get annotated list function bug fix

Browse files
Files changed (1) hide show
  1. utils.py +6 -2
utils.py CHANGED
@@ -34,10 +34,14 @@ def get_annotations_list():
34
 
35
  def get_annotated_files_list():
36
  annotated_files_dir = os.path.join(ANNOTATIONS_DIR, "single_frames")
 
37
 
38
- annotated_files_list = os.listdir(annotated_files_dir)
39
- return annotated_files_list
 
40
 
 
 
41
 
42
 
43
  ############################################################################################################
 
34
 
35
  def get_annotated_files_list():
36
  annotated_files_dir = os.path.join(ANNOTATIONS_DIR, "single_frames")
37
+ print("Annotated files directory:", annotated_files_dir)
38
 
39
+ if not os.path.exists(annotated_files_dir):
40
+ print("The directory does not exist.")
41
+ return []
42
 
43
+ annotated_files_list = [os.path.join(annotated_files_dir, file) for file in os.listdir(annotated_files_dir)]
44
+ return annotated_files_list
45
 
46
 
47
  ############################################################################################################