Text-to-Image
Diffusers
Safetensors
English
StableDiffusionPipeline
common-canvas
stable-diffusion
Inference Endpoints
multimodalart HF staff commited on
Commit
0c2552d
1 Parent(s): b75c29e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -1
README.md CHANGED
@@ -52,7 +52,30 @@ Note: The non-commercial variants of this model are explicitly not intended to b
52
  * Research on generative models.
53
 
54
  ## Usage
55
- We recommend using the [MosaicML Diffusion repository](https://github.com/mosaicml/diffusion) to finetune / train the model. Example finetuning code coming soon. See the Gradio Demo [Here](https://github.com/mosaicml/diffusion/blob/main/scripts/gradio_demo.py)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
 
57
  ## Evaluation/Validation
58
  We validated the model against Stability AI’s SD2 model and compared human user study
 
52
  * Research on generative models.
53
 
54
  ## Usage
55
+ We recommend using the MosaicML Diffusion Repo to finetune / train the model: https://github.com/mosaicml/diffusion.
56
+ Example finetuning code coming soon.
57
+
58
+ ### Spaces demo
59
+ Try the model demo on [Hugging Face Spaces](https://huggingface.co/spaces/common-canvas/CommonCanvas)
60
+
61
+ ### Inference with 🧨 diffusers
62
+
63
+ ```py
64
+ from diffusers import StableDiffusionPipeline
65
+ pipe = StableDiffusionXLPipeline.from_pretrained(
66
+ "common-canvas/CommonCanvas-S-C",
67
+ custom_pipeline="hyoungwoncho/sd_perturbed_attention_guidance", #read more at https://huggingface.co/hyoungwoncho/sd_perturbed_attention_guidance
68
+ torch_dtype=torch.float16
69
+ ).to(device)
70
+
71
+ prompt = "a cat sitting in a car seat"
72
+ image = pipe(prompt, num_inference_steps=25).images[0]
73
+ ```
74
+
75
+ ### Inference with ComfyUI / AUTOMATIC1111
76
+
77
+ [Download safetensors ⬇️](https://huggingface.co/common-canvas/CommonCanvas-S-C/resolve/main/commoncanvas_s_c.safetensors?download=true)
78
+
79
 
80
  ## Evaluation/Validation
81
  We validated the model against Stability AI’s SD2 model and compared human user study