Instructions to use sweetcocoa/pop2piano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sweetcocoa/pop2piano with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("automatic-speech-recognition", model="sweetcocoa/pop2piano")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSpeechSeq2Seq model = AutoModelForSpeechSeq2Seq.from_pretrained("sweetcocoa/pop2piano", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from sweetcocoa/pop2piano: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/sweetcocoa/pop2piano/resolve/main/generation_config.json
- Command line
-
hf download hf://sweetcocoa/pop2piano/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/sweetcocoa/pop2piano/resolve/main/generation_config.json
663 Bytes
| { | |
| "decoder_start_token_id": 0, | |
| "eos_token_id": 1, | |
| "pad_token_id": 0, | |
| "return_dict_in_generate": false, | |
| "max_length": 256, | |
| "composer_to_feature_token":{ | |
| "composer1": 2052, | |
| "composer2": 2053, | |
| "composer3": 2054, | |
| "composer4": 2055, | |
| "composer5": 2056, | |
| "composer6": 2057, | |
| "composer7": 2058, | |
| "composer8": 2059, | |
| "composer9": 2060, | |
| "composer10": 2061, | |
| "composer11": 2062, | |
| "composer12": 2063, | |
| "composer13": 2064, | |
| "composer14": 2065, | |
| "composer15": 2066, | |
| "composer16": 2067, | |
| "composer17": 2068, | |
| "composer18": 2069, | |
| "composer19": 2070, | |
| "composer20": 2071, | |
| "composer21": 2072 | |
| } | |
| } |