Jiayi-Pan commited on
Commit
a891579
·
1 Parent(s): 48ee03e

Update Action-Effect.py

Browse files
Files changed (1) hide show
  1. Action-Effect.py +3 -5
Action-Effect.py CHANGED
@@ -59,11 +59,9 @@ class Action_Effect(datasets.GeneratorBasedBuilder):
59
 
60
  def _split_generators(self, dl_manager: datasets.DownloadManager):
61
  dl_dir = dl_manager.download_and_extract([JSON_URL, IMGS_URL])
62
- for d in dl_dir:
63
- print(d)
64
- print(os.listdir(d))
65
- action_effect_info_path = dl_dir + "/action_effect_info.json"
66
- img_zip_path = dl_dir + "/action_effect_image_rs.tar.gz"
67
  return [
68
  datasets.SplitGenerator(
69
  name= "ActionEffect",
 
59
 
60
  def _split_generators(self, dl_manager: datasets.DownloadManager):
61
  dl_dir = dl_manager.download_and_extract([JSON_URL, IMGS_URL])
62
+ print(dl_dir)
63
+ action_effect_info_path = dl_dir[0] + "/action_effect_info.json"
64
+ img_zip_path = dl_dir[1] + "/action_effect_image_rs.tar.gz"
 
 
65
  return [
66
  datasets.SplitGenerator(
67
  name= "ActionEffect",