sheikh commited on
Commit
7fdf947
·
1 Parent(s): 2e1c132

Update SLR.py

Browse files
Files changed (1) hide show
  1. SLR.py +1 -1
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", "jpg")
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']: