ShixuanAn commited on
Commit
cd0832f
·
verified ·
1 Parent(s): 4953151

Update RDD_2020.py

Browse files
Files changed (1) hide show
  1. RDD_2020.py +1 -1
RDD_2020.py CHANGED
@@ -140,7 +140,7 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
140
  image_id = f"{image_file.split('.')[0]}"
141
 
142
  image_path = os.path.join(images_dir, image_file)
143
- img = Image.open(image_path)
144
 
145
  if annotations_dir:
146
  annotation_file = image_id + '.xml'
 
140
  image_id = f"{image_file.split('.')[0]}"
141
 
142
  image_path = os.path.join(images_dir, image_file)
143
+ img = Image.open(image_path)
144
 
145
  if annotations_dir:
146
  annotation_file = image_id + '.xml'