Text-to-Image
Diffusers
TensorBoard
Safetensors
StableDiffusionPipeline
dreambooth
diffusers-training
stable-diffusion
stable-diffusion-diffusers
Instructions to use gchen019/dog5_weights with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use gchen019/dog5_weights with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("gchen019/dog5_weights", dtype=torch.bfloat16, device_map="cuda") prompt = "a photo of sks dog" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download safety_checker/config.json from gchen019/dog5_weights: direct link, hf CLI and curl.
- Browser
- Download file 830 Bytes
-
https://huggingface.co/gchen019/dog5_weights/resolve/main/safety_checker/config.json
- Command line
-
hf download hf://gchen019/dog5_weights/safety_checker/config.json
-
curl -L -o config.json https://huggingface.co/gchen019/dog5_weights/resolve/main/safety_checker/config.json
830 Bytes
| { | |
| "_name_or_path": "/root/.cache/huggingface/hub/models--sd-legacy--stable-diffusion-v1-5/snapshots/451f4fe16113bff5a5d2269ed5ad43b0592e9a14/safety_checker", | |
| "architectures": [ | |
| "StableDiffusionSafetyChecker" | |
| ], | |
| "initializer_factor": 1.0, | |
| "logit_scale_init_value": 2.6592, | |
| "model_type": "clip", | |
| "projection_dim": 768, | |
| "text_config": { | |
| "dropout": 0.0, | |
| "hidden_size": 768, | |
| "intermediate_size": 3072, | |
| "model_type": "clip_text_model", | |
| "num_attention_heads": 12 | |
| }, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.47.1", | |
| "vision_config": { | |
| "_attn_implementation_autoset": true, | |
| "dropout": 0.0, | |
| "hidden_size": 1024, | |
| "intermediate_size": 4096, | |
| "model_type": "clip_vision_model", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "patch_size": 14 | |
| } | |
| } | |