Instructions to use mhnakif/comfy2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use mhnakif/comfy2 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("mhnakif/comfy2", 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
File size: 575 Bytes
7b702e3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | :root {
--rgthree-bg-color: rgba(23, 23, 23, 0.9);
--rgthree-on-bg-color: rgba(48, 48, 48, 0.9);
}
html, body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
box-sizing: border-body;
background: var(--rgthree-bg-color);
}
*, *::before, *::after {
box-sizing: inherit;
}
[if-is=false] {
display: none;
}
.models-list {
list-style: none;
margin: 0;
padding: 0;
}
.model-item {
display: block;
margin: 8px;
}
rgthree-model-info-card {
background: var(--rgthree-on-bg-color);
margin: 16px;
display: block;
border-radius: 4px;
}
|