Update SLR.py
Browse files
SLR.py
CHANGED
|
@@ -110,7 +110,7 @@ class SLR(datasets.GeneratorBasedBuilder):
|
|
| 110 |
with open(file_path, "r", encoding="utf8") as f:
|
| 111 |
data = json.load(f)
|
| 112 |
image_path = os.path.join(img_dir, file)
|
| 113 |
-
image_path = image_path.replace("json", "
|
| 114 |
image, size = load_image(image_path)
|
| 115 |
for state in data:
|
| 116 |
for item in state['form']:
|
|
|
|
| 110 |
with open(file_path, "r", encoding="utf8") as f:
|
| 111 |
data = json.load(f)
|
| 112 |
image_path = os.path.join(img_dir, file)
|
| 113 |
+
image_path = image_path.replace("json", "png")
|
| 114 |
image, size = load_image(image_path)
|
| 115 |
for state in data:
|
| 116 |
for item in state['form']:
|