Instructions to use vetak8/My-ComfyUI-Models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use vetak8/My-ComfyUI-Models with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("vetak8/My-ComfyUI-Models", torch_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
| .cgfloat { | |
| position: absolute; | |
| z-index: 999999; | |
| border: 1px solid black; | |
| background-color: rgba(95, 158, 160, 0.713); | |
| width: fit-content; | |
| } | |
| .cgfloat.hidden { | |
| display:none | |
| } | |
| .cgfloat_header { | |
| width: 100%; | |
| text-align: center; | |
| background-color: rgba(28, 51, 52, 0.713); | |
| color: whitesmoke; | |
| border-bottom: 1px solid black; | |
| padding:4px; | |
| font-size:larger; | |
| } | |
| .tiny .cgfloat_header { | |
| font-size: smaller; | |
| } | |
| .cgfloat_body { | |
| min-width: fit-content; | |
| display:flex; | |
| flex-direction: column; | |
| } | |
| .cgfloat_body .row { | |
| color: white; | |
| padding: 0px 4px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| border-bottom: 1px dashed rgba(0, 0, 0, 0.45); | |
| } | |
| /* Countdown */ | |
| .cgfloat_body .counter_text { | |
| min-width:50px; | |
| text-align: right; | |
| } | |
| .cgfloat_body .counter_reset { | |
| margin-left: 5px; | |
| padding: 1px; | |
| } | |
| /* Buttons */ | |
| .cgfloat_body .row.buttons { | |
| justify-content: space-evenly; | |
| } | |
| .cgfloat_body button { | |
| margin: 4px; | |
| padding: 2px; | |
| min-width: 70px; | |
| } | |
| /* Extras */ | |
| .cgfloat_body .row.extras { | |
| flex-direction: column; | |
| } | |
| .cgfloat_body .row.extras .extra { | |
| width: 100%; | |
| margin: 2px 0; | |
| } | |
| /* Tips */ | |
| .cgfloat_body .row.tip { | |
| margin: 4px; | |
| padding: 4px 0px; | |
| justify-content: flex-start; | |
| } | |
| /* Text Edit */ | |
| .cgfloat_body .row.text_edit { | |
| margin: 4px; | |
| } | |
| .cgfloat .tiny_image { | |
| padding: 1px; | |
| width: auto; | |
| max-height: 100px; | |
| object-fit: contain; | |
| pointer-events: none; | |
| } | |