Stavros Niafas commited on
Commit
4739028
1 Parent(s): b72f6cb

update data builder

Browse files
Files changed (1) hide show
  1. dof.py +1 -1
dof.py CHANGED
@@ -76,6 +76,6 @@ class DoF(datasets.GeneratorBasedBuilder):
76
  for file_path in images:
77
  label = file_path.split("/")[-2:][0]
78
  yield file_path, {
79
- "image": {"path": file_path, "image": Image.open(file_path)},
80
  "label": label,
81
  }
 
76
  for file_path in images:
77
  label = file_path.split("/")[-2:][0]
78
  yield file_path, {
79
+ "image": file_path,
80
  "label": label,
81
  }