pranjali-pathre
commited on
Commit
·
1b79b34
1
Parent(s):
30b7091
Removed xml
Browse files
i2i.py
CHANGED
@@ -58,7 +58,7 @@ class i2iDataset(datasets.GeneratorBasedBuilder):
|
|
58 |
return dt
|
59 |
|
60 |
def _generate_examples(self, data):
|
61 |
-
tree =
|
62 |
root = tree.getroot()
|
63 |
|
64 |
for idx, file in enumerate(sorted(os.listdir(os.path.join(data, "initial_images")))):
|
|
|
58 |
return dt
|
59 |
|
60 |
def _generate_examples(self, data):
|
61 |
+
tree = ET.parse(os.path.join(data, "annotations.xml"))
|
62 |
root = tree.getroot()
|
63 |
|
64 |
for idx, file in enumerate(sorted(os.listdir(os.path.join(data, "initial_images")))):
|