Instructions to use dhuck/stable-diffusion-clap with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use dhuck/stable-diffusion-clap with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("dhuck/stable-diffusion-clap", 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
File size: 608 Bytes
431236f aa012a8 431236f aa012a8 431236f aa012a8 431236f aa012a8 431236f aa012a8 431236f aa012a8 431236f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | {
"_name_or_path": "laion/larger_clap_music",
"architectures": [
"ClapModel"
],
"audio_config": {
"depths": [
2,
2,
12,
2
],
"hidden_size": 1024,
"model_type": "clap_audio_model",
"patch_embeds_hidden_size": 128
},
"hidden_size": 768,
"initializer_factor": 1.0,
"logit_scale_init_value": 14.285714285714285,
"model_type": "clap",
"num_hidden_layers": 16,
"projection_dim": 512,
"projection_hidden_act": "relu",
"text_config": {
"model_type": "clap_text_model"
},
"torch_dtype": "float32",
"transformers_version": "4.37.1"
}
|