Diffusers
Safetensors
English
StableAudioPipeline
audio
music-generation
sample-generation
Music Production
Audio-to-Audio
fine-tuning
stable-audio
Run this model with HF Jobs
Run tintwotin/Foundation-1-Diffusers on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/tintwotin/Foundation-1-Diffusers. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/tintwotin/Foundation-1-Diffusers on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use tintwotin/Foundation-1-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use tintwotin/Foundation-1-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("tintwotin/Foundation-1-Diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files654 unmodified lines655656657658654 unmodified lines- how it feels sonically- how it fits into a production workflowThat combination of **musical structure**, **instrument identity**, **timbral control**, and **loop fidelity** is what defines the model.654 unmodified lines655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691654 unmodified lines- how it feels sonically- how it fits into a production workflowThat combination of **musical structure**, **instrument identity**, **timbral control**, and **loop fidelity** is what defines the model.Code for running the weight in Diffusers```import scipyimport torchimport soundfile as sffrom diffusers import StableAudioPipelinerepo_id = "tintwotin/Foundation-1-Diffusers"pipe = StableAudioPipeline.from_pretrained(repo_id, torch_dtype=torch.float16)pipe = pipe.to("cuda")# define the promptsprompt = "Bass, FM Bass, Medium Delay, Medium Reverb, Low Distortion, Phaser, Sub Bass, Bass, Upper Mids, Acid, Gritty, Wide, Dubstep, Thick, Silky, Warm, Rich, Overdriven, Crisp, Deep, Clean, Pitch Bend, 303, 8 Bars, 140 BPM, E minor"negative_prompt = "Low quality."# set the seed for generatorgenerator = torch.Generator("cuda").manual_seed(0)# run the generationaudio = pipe(prompt,negative_prompt=negative_prompt,num_inference_steps=200,audio_end_in_s=10.0,num_waveforms_per_prompt=1,generator=generator,).audiosoutput = audio[0].T.float().cpu().numpy()sf.write("./foundation_loop.wav", output, pipe.vae.sampling_rate)```
README.md+34-1