Commit
•
5694b26
1
Parent(s):
51864e3
Update README.md
Browse files
README.md
CHANGED
@@ -50,7 +50,28 @@ Note: The non-commercial variants of this model are explicitly not intended to b
|
|
50 |
* Research on generative models.
|
51 |
|
52 |
## Usage
|
53 |
-
We recommend using the MosaicML Diffusion Repo to finetune / train the model: https://github.com/mosaicml/diffusion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
|
55 |
## Evaluation/Validation
|
56 |
We validated the model against Stability AI’s SD2 model and compared human user study
|
|
|
50 |
* Research on generative models.
|
51 |
|
52 |
## Usage
|
53 |
+
We recommend using the MosaicML Diffusion Repo to finetune / train the model: https://github.com/mosaicml/diffusion.
|
54 |
+
Example finetuning code coming soon.
|
55 |
+
|
56 |
+
### Spaces demo
|
57 |
+
Try the model demo on [Hugging Face Spaces](https://huggingface.co/spaces/common-canvas/CommonCanvas)
|
58 |
+
|
59 |
+
### Inference with 🧨 diffusers
|
60 |
+
|
61 |
+
```py
|
62 |
+
from diffusers import StableDiffusionXLPipeline
|
63 |
+
pipe = StableDiffusionXLPipeline.from_pretrained(
|
64 |
+
"common-canvas/CommonCanvas-XLC",
|
65 |
+
custom_pipeline="multimodalart/sdxl_perturbed_attention_guidance", #read more at https://huggingface.co/multimodalart/sdxl_perturbed_attention_guidance
|
66 |
+
torch_dtype=torch.float16
|
67 |
+
).to(device)
|
68 |
+
|
69 |
+
prompt = "a cat sitting in a car seat"
|
70 |
+
image = pipe(prompt, num_inference_steps=25).images[0]
|
71 |
+
```
|
72 |
+
### Inference with ComfyUI / AUTOMATIC1111
|
73 |
+
|
74 |
+
[Download safetensors ⬇️](https://huggingface.co/common-canvas/CommonCanvas-XLC/resolve/main/commoncanvas_xl_c.safetensors?download=true)
|
75 |
|
76 |
## Evaluation/Validation
|
77 |
We validated the model against Stability AI’s SD2 model and compared human user study
|