Instructions to use FrozenScar/cartoon_face with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use FrozenScar/cartoon_face with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("FrozenScar/cartoon_face", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,6 +17,9 @@ Generates faces resembling Metart Dataset.
|
|
| 17 |
USAGE:
|
| 18 |
|
| 19 |
from diffusers import DiffusionPipeline, DDPMPipeline, DDPMScheduler
|
|
|
|
| 20 |
noise_scheduler = DDPMScheduler()
|
|
|
|
| 21 |
pipe = DDPMPipeline.from_pretrained("FrozenScar/cartoon_face", scheduler=noise_scheduler, use_safetensors=True)
|
|
|
|
| 22 |
image = pipe(num_inference_steps=6).images[0]
|
|
|
|
| 17 |
USAGE:
|
| 18 |
|
| 19 |
from diffusers import DiffusionPipeline, DDPMPipeline, DDPMScheduler
|
| 20 |
+
|
| 21 |
noise_scheduler = DDPMScheduler()
|
| 22 |
+
|
| 23 |
pipe = DDPMPipeline.from_pretrained("FrozenScar/cartoon_face", scheduler=noise_scheduler, use_safetensors=True)
|
| 24 |
+
|
| 25 |
image = pipe(num_inference_steps=6).images[0]
|