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