How do i solve this daaset problem, so it helps others, will post it on huggingface with any help appreciated

one_xen: <h1><a name="was-experimenting-with-stability-ai-audio-and-while-documentation-is-short-i-cannot-determine-what-this-problem-could-be-1" class="anchor" href="#was-experimenting-with-stability-ai-audio-and-while-documentation-is-short-i-cannot-determine-what-this-problem-could-be-1"></a>Was experimenting with stability ai audio, and while documentation is short, i cannot determine what this problem could be?</h1>
<h1><a name="zaistudio_pipelinestable-audio-toolspython-trainpy-dataset-config-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtoaudiodatasetdataset_configjson-model-config-zaistudio_pipelinestable-audio-toolsckptmodel_configjson-name-harmonai_train-traceback-most-recent-call-last-file-zaistudio_pipelinestable-audio-toolstrainpy-line-128-in-module-main-file-zaistudio_pipelinestable-audio-toolstrainpy-line-45-in-main-train_dl-create_dataloader_from_config-file-zaistudio_pipelinestable-audio-toolsstable_audio_toolsdatadatasetpy-line-560-in-create_dataloader_from_config-assert-dataset_type-is-not-none-dataset-type-must-be-specified-in-dataset-config-assertionerror-dataset-type-must-be-specified-in-dataset-config-2" class="anchor" href="#zaistudio_pipelinestable-audio-toolspython-trainpy-dataset-config-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtoaudiodatasetdataset_configjson-model-config-zaistudio_pipelinestable-audio-toolsckptmodel_configjson-name-harmonai_train-traceback-most-recent-call-last-file-zaistudio_pipelinestable-audio-toolstrainpy-line-128-in-module-main-file-zaistudio_pipelinestable-audio-toolstrainpy-line-45-in-main-train_dl-create_dataloader_from_config-file-zaistudio_pipelinestable-audio-toolsstable_audio_toolsdatadatasetpy-line-560-in-create_dataloader_from_config-assert-dataset_type-is-not-none-dataset-type-must-be-specified-in-dataset-config-assertionerror-dataset-type-must-be-specified-in-dataset-config-2"></a>Z:\Aistudio_pipeline\stable-audio-tools&gt;python ./train.py --dataset-config Z:/Aistudio_pipeline/stable-audio-tools/stable_audio_tools/configs/dataset_configs/path/to/audio/dataset/dataset_config.json --model-config Z:\Aistudio_pipeline\stable-audio-tools\ckpt\model_config.json --name harmonai_train<br>
Traceback (most recent call last):<br>
File “Z:\Aistudio_pipeline\stable-audio-tools\train.py”, line 128, in <br>
main()<br>
File “Z:\Aistudio_pipeline\stable-audio-tools\train.py”, line 45, in main<br>
train_dl = create_dataloader_from_config(<br>
File “Z:\Aistudio_pipeline\stable-audio-tools\stable_audio_tools\data\dataset.py”, line 560, in create_dataloader_from_config<br>
assert dataset_type is not None, “Dataset type must be specified in dataset config”<br>
AssertionError: Dataset type must be specified in dataset config</h1>
<h1><a name="dataset_type-audio_dir-datasets-id-1-path-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtoaudiodatasetdataset_configjson-custom_metadata_module-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtocustom_metadatacustom_md_examplepy-random_crop-true-3" class="anchor" href="#dataset_type-audio_dir-datasets-id-1-path-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtoaudiodatasetdataset_configjson-custom_metadata_module-zaistudio_pipelinestable-audio-toolsstable_audio_toolsconfigsdataset_configspathtocustom_metadatacustom_md_examplepy-random_crop-true-3"></a>{<br>
“dataset_type”: “audio_dir”,<br>
“datasets”: [<br>
{<br>
“id”: “1”,<br>
“path”: “Z:/Aistudio_pipeline/stable-audio-tools/stable_audio_tools/configs/dataset_configs/path/to/audio/dataset/dataset_config.json”,<br>
“custom_metadata_module”: “Z:/Aistudio_pipeline/stable-audio-tools/stable_audio_tools/configs/dataset_configs/path/to/custom_metadata/custom_md_example.py”<br>
}<br>
],<br>
“random_crop”: true</h1>
<h1><a name="combine-args-and-config-dicts-args_dict-varsargs-args_dictupdatemodel_config-model_config-args_dictupdatedataset_config-dataset_config-push_wandb_configwandb_logger-args_dict-here-is-states-to-label-the-trainning-set-4" class="anchor" href="#combine-args-and-config-dicts-args_dict-varsargs-args_dictupdatemodel_config-model_config-args_dictupdatedataset_config-dataset_config-push_wandb_configwandb_logger-args_dict-here-is-states-to-label-the-trainning-set-4"></a><span class="hashtag-raw">#Combine</span> args and config dicts<br>
args_dict = vars(args)<br>
args_dict.update({“model_config”: model_config})<br>
args_dict.update({“dataset_config”: dataset_config})<br>
push_wandb_config(wandb_logger, args_dict)<br>
here is states to label the trainning set^^^^^^^^^^^^^^^^^^^^</h1>
<p>def create_dataloader_from_config(dataset_config, batch_size, sample_size, sample_rate, audio_channels=2, num_workers=4):</p>
<pre><code>dataset_type = dataset_config.get("audio_dir", None)

assert dataset_type is not None, "Dataset type must be specified in dataset config"

if audio_channels == 1:
    force_channels = "mono"
else:
    force_channels = "stereo"

if dataset_type == "audio_dir":

    audio_dir_configs = dataset_config.get("datasets", None)

    assert audio_dir_configs is not None, "Directory configuration must be specified in datasets[\"dataset\"]" 
</code></pre>
<p>==============================================<br>
the location where the asert violation is requesting the dataset to be fixed, buut from my understanding the file structure from stability ai doesnt state where it goes: Z:\Aistudio_pipeline\stable-audio-tools\stable_audio_tools\configs\dataset_configs\path\to</p>
<hr>
<pre><code>sampler = RandomSampler(dataset, generator=generator)  # type: ignore[arg-type]
</code></pre>
<p>File “C:\Python310\lib\site-packages\torch\utils\data\sampler.py”, line 143, in <strong>init</strong><br>
raise ValueError(f"num_samples should be a positive integer value, but got num_samples={self.num_samples}")<br>
ValueError: num_samples should be a positive integer value, but got num_samples=0</p>