Data directory path

#1
by scfrank - opened

Not sure if this is because I was specifying a cache location, but I had to add the final directory name to get things to work:

in AwA2.py

210         print("downloaded_files: ", downloaded_files)
211         if downloaded_files["data"].split('/')[-1] != "Animals_with_Attributes2":
212             downloaded_files["data"] += "/Animals_with_Attributes2"  # should use Path really
213             print("adjusted downloaded_files: ", downloaded_files)

I get the data like so:

 from datasets import load_dataset
 dataset = load_dataset("mikewang/AwA2", 
                          cache_dir="/users/frankste/scratch/hf-cache/"
                         )
  dataset.save_to_disk("/users/frankste/scratch/AwA2/")

Thanks for creating this dataset loader! Just pointing this out in case it helps someone else.

Sign up or log in to comment