Text-to-Image
Diffusers
TensorBoard
Chinese
AltDiffusionPipeline
stable-diffusion
stable-diffusion-diffusers
multilingual
English(En)
Chinese(Zh)
Spanish(Es)
French(Fr)
Russian(Ru)
Japanese(Ja)
Korean(Ko)
Arabic(Ar)
Italian(It)
Run this model with HF Jobs
Run BAAI/DreamBooth-AltDiffusion 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/BAAI/DreamBooth-AltDiffusion. 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/BAAI/DreamBooth-AltDiffusion 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 BAAI/DreamBooth-AltDiffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use BAAI/DreamBooth-AltDiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("BAAI/DreamBooth-AltDiffusion", dtype=torch.bfloat16, device_map="cuda") prompt = "一张<鸣人>男孩的照片" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download text_encoder/config.json from BAAI/DreamBooth-AltDiffusion: direct link, hf CLI and curl.
- Browser
- Download file 827 Bytes
-
https://huggingface.co/BAAI/DreamBooth-AltDiffusion/resolve/main/text_encoder/config.json
- Command line
-
hf download hf://BAAI/DreamBooth-AltDiffusion/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/BAAI/DreamBooth-AltDiffusion/resolve/main/text_encoder/config.json
827 Bytes
| { | |
| "_name_or_path": "BAAI/AltDiffusion-m9", | |
| "architectures": [ | |
| "RobertaSeriesModelWithTransformation" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "bos_token_id": 0, | |
| "classifier_dropout": null, | |
| "eos_token_id": 2, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 1024, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "layer_norm_eps": 1e-05, | |
| "learn_encoder": false, | |
| "max_position_embeddings": 514, | |
| "model_type": "xlm-roberta", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "output_past": true, | |
| "pad_token_id": 1, | |
| "pooler_fn": "cls", | |
| "position_embedding_type": "absolute", | |
| "project_dim": 768, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.24.0", | |
| "type_vocab_size": 1, | |
| "use_attention_mask": true, | |
| "use_cache": true, | |
| "vocab_size": 250002 | |
| } | |