Chengzu Li commited on
Commit
a990c51
1 Parent(s): eae6ec5

Update topviewrs.py

Browse files
Files changed (1) hide show
  1. topviewrs.py +1 -1
topviewrs.py CHANGED
@@ -108,7 +108,7 @@ class TOPVIEWRS(datasets.GeneratorBasedBuilder):
108
 
109
  def _split_generators(self, dl_manager):
110
  zip_file = dl_manager.download({"images": _URLS['images']})
111
- os.rename(zip_file, os.path.join(os.path.dirname(zip_file['images']), _URLS['images']))
112
  try:
113
  shutil.unpack_archive(os.path.join(os.path.dirname(zip_file['images']), _URLS['images']), self.config.image_save_dir)
114
  except:
 
108
 
109
  def _split_generators(self, dl_manager):
110
  zip_file = dl_manager.download({"images": _URLS['images']})
111
+ os.rename(zip_file['images'], os.path.join(os.path.dirname(zip_file['images']), _URLS['images']))
112
  try:
113
  shutil.unpack_archive(os.path.join(os.path.dirname(zip_file['images']), _URLS['images']), self.config.image_save_dir)
114
  except: