Update RDD_2020.py
Browse files- RDD_2020.py +2 -0
RDD_2020.py
CHANGED
@@ -123,6 +123,8 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
|
|
123 |
# Iterate over each country directory
|
124 |
for country_dir in ['Czech', 'India', 'Japan']:
|
125 |
images_dir = f"{filepath}/{country_dir}/images"
|
|
|
|
|
126 |
annotations_dir = f"{filepath}/{country_dir}/annotations/xmls" if split == "train" else None
|
127 |
|
128 |
# Iterate over each image in the country's image directory
|
|
|
123 |
# Iterate over each country directory
|
124 |
for country_dir in ['Czech', 'India', 'Japan']:
|
125 |
images_dir = f"{filepath}/{country_dir}/images"
|
126 |
+
print(os.listdir(images_dir))
|
127 |
+
|
128 |
annotations_dir = f"{filepath}/{country_dir}/annotations/xmls" if split == "train" else None
|
129 |
|
130 |
# Iterate over each image in the country's image directory
|