Instructions to use ChuuniZ/comfyui-image-models with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ChuuniZ/comfyui-image-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("ChuuniZ/comfyui-image-models", 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: 1,055 Bytes
29b0896 | 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 40 41 42 43 44 45 46 47 | {
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "ZgkQ4kDil23W"
},
"outputs": [],
"source": [
"!git clone https://huggingface.co/John6666/joy-caption-alpha-two-cli-mod/\n",
"!pip install -r /content/joy-caption-alpha-two-cli-mod/requirements.txt\n",
"!pip install bitsandbytes triton\n",
"!pip install accelerate==0.30.1\n",
"!python /content/joy-caption-alpha-two-cli-mod/app.py"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "gPwD8BVsnU7p"
},
"outputs": [],
"source": [
"!python /content/joy-caption-alpha-two-cli-mod/app.py"
]
}
],
"metadata": {
"accelerator": "GPU",
"colab": {
"gpuType": "T4",
"provenance": []
},
"kernelspec": {
"display_name": "Python 3",
"name": "python3"
},
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|