SleepyJesse/ai_music_large
Viewer โข Updated โข 13.6k โข 504 โข 6
How to use AI-Music-Detection/ai_music_detection_large_60s with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("audio-classification", model="AI-Music-Detection/ai_music_detection_large_60s") # Load model directly
from transformers import AutoFeatureExtractor, AutoModelForAudioClassification
extractor = AutoFeatureExtractor.from_pretrained("AI-Music-Detection/ai_music_detection_large_60s")
model = AutoModelForAudioClassification.from_pretrained("AI-Music-Detection/ai_music_detection_large_60s")This model was trained from mit/ast-finetuned-audioset-10-10-0.4593 on the SleepyJesse/ai_music_large dataset.
Please see the code in the Jupyter Notebook in files.
The model was trained with max_length = 6000, which is 60 seconds.
This model is used to classify a given music piece is AI-generated or human-composed.
The SleepyJesse/ai_music_large dataset was used, with 80% train/test split, and 0.8 probability for audio data augmentation.
See ai_music_detection_new_large_60.ipynb and training metrics.
The following hyperparameters were used during training:
Base model
MIT/ast-finetuned-audioset-10-10-0.4593