Voice-Cloning-App icon indicating copy to clipboard operation
Voice-Cloning-App copied to clipboard

Colab Dataset 'info.json' is not a folder

Open sakthivelj opened this issue 1 year ago • 1 comments

Drive already mounted at /content/drive; to attempt to forcibly remount, call drive.mount("/content/drive", force_remount=True).

NotADirectoryError Traceback (most recent call last) in () 25 dataset_path = os.path.join(dataset_directory, dataset) ---> 26 files = os.listdir(dataset_path) 27 assert "metadata.csv" in files, f"Dataset '{dataset}' is missing metadata.csv"

NotADirectoryError: [Errno 20] Not a directory: '/content/drive/MyDrive/Voice-Cloning/datasets/info.json'

During handling of the above exception, another exception occurred:

Exception Traceback (most recent call last) in () 28 assert "wavs" in files, f"Dataset '{dataset}' is missing wavs folder" 29 except NotADirectoryError: ---> 30 raise Exception(f"Dataset '{dataset}' is not a folder. Please ensure all datasets are folders containing your metadata.csv & wavs") 31 32 checkpoints = {dataset: os.listdir(os.path.join(checkpoint_directory, dataset)) for dataset in datasets if os.path.isdir(os.path.join(checkpoint_directory, dataset))}

Exception: Dataset 'info.json' is not a folder. Please ensure all datasets are folders containing your metadata.csv & wavs info JSON file not found in the Dataset folder

sq

sakthivelj avatar Jul 17 '22 16:07 sakthivelj

Hi @sakthivelj,

You've made a slight mistake in the setup for the notebook. As explained in the introduction you need to create a folder for your dataset rather than placing the files in the root of the datasets folder (because you can have many datasets).

For example, if your dataset was called "Ben" the structure would be:

├─ drive
│   └── Voice-Cloning
│       └── datasets
│           └── Ben
│               ├── wavs
│               ├── info.json
│               └── metadata.csv

BenAAndrew avatar Jul 20 '22 16:07 BenAAndrew