Views
No views yet
1export HUGGINGFACE_TOKEN=<your_token>
2python main.pytrain_test_split() method to split the dataset.feature_extractor can not handle resamplingdataset.map()1from datasets import Audio
2
3gtzan = gtzan.cast_column("audio", Audio(sampling_rate=feature_extractor.sampling_rate))feature_extractor do the normalization and returns input_values and attention_mask..map() support batched preprocess.AutoModelForAudioClassification.from_pretrained takes label2id and id2label?