multimodalart HF staff commited on
Commit
62b089b
·
verified ·
1 Parent(s): bbe04ff

Update README.md

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