Text-to-Image
Diffusers
English
stable-diffusion
stable-diffusion-xl
sdxl
SD-XL 0.9
tutorial
NathMath
Instructions to use NathMath/sdxl-0.9-usage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use NathMath/sdxl-0.9-usage with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("NathMath/sdxl-0.9-usage", 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
|
@@ -31,12 +31,13 @@ tags:
|
|
| 31 |
|
| 32 |
|
| 33 |
- 2. - Extract all files into your disk if you have chosen the standalone version of this ComfyUI, or install all the dependences to create a essential python environment.
|
|
|
|
| 34 |

|
| 35 |
|
| 36 |
|
| 37 |
- 3. - Get into the folder or the environment you have just created, when you have finished the last step.
|
| 38 |
- Next, what you can find includes those two ".bat" files named "run_cpu.bat" and "run_nvidia_gpu.bat" respectively.
|
| 39 |
-
-
|
| 40 |
- Note that with the application of xformers, you do not need to load all of your models simultaneously, but it is going to be stored in RAM and move back and force when interfereing.
|
| 41 |

|
| 42 |
|
|
@@ -44,8 +45,8 @@ tags:
|
|
| 44 |
- 4. - Download the latest version of stable-diffusion-xl-base-0.9 and stable-diffusion-xl-refiner-0.9 from the official repo on huggingaface.
|
| 45 |
- It is appreciated that your availability of the model has become unprecedentedly effortless now, so hurry up to try and get on.
|
| 46 |
- Note that for generation use, you do not need to download all model components, but only the two "safetensors" fron the repo, which are respectively "sd_xl_base_0.9.safetensors" and "sd_xl_refiner_0.9.safetensors".
|
| 47 |
-
Link: https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9
|
| 48 |
-
Link: https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-0.9
|
| 49 |
|
| 50 |
|
| 51 |
- 5. - Move your "base" and "refiner" models into the ComfyUI's subfolder, like "...\ComfyUI\models\checkpoints\", where "..." means your root folder of your ComfyUI environment.
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
- 2. - Extract all files into your disk if you have chosen the standalone version of this ComfyUI, or install all the dependences to create a essential python environment.
|
| 34 |
+
- We recommend the first approach because we are all lazy men.
|
| 35 |

|
| 36 |
|
| 37 |
|
| 38 |
- 3. - Get into the folder or the environment you have just created, when you have finished the last step.
|
| 39 |
- Next, what you can find includes those two ".bat" files named "run_cpu.bat" and "run_nvidia_gpu.bat" respectively.
|
| 40 |
+
- Then, choose the suitable version and click it, which means, to use CUDA or not, and double click to run the script.
|
| 41 |
- Note that with the application of xformers, you do not need to load all of your models simultaneously, but it is going to be stored in RAM and move back and force when interfereing.
|
| 42 |

|
| 43 |
|
|
|
|
| 45 |
- 4. - Download the latest version of stable-diffusion-xl-base-0.9 and stable-diffusion-xl-refiner-0.9 from the official repo on huggingaface.
|
| 46 |
- It is appreciated that your availability of the model has become unprecedentedly effortless now, so hurry up to try and get on.
|
| 47 |
- Note that for generation use, you do not need to download all model components, but only the two "safetensors" fron the repo, which are respectively "sd_xl_base_0.9.safetensors" and "sd_xl_refiner_0.9.safetensors".
|
| 48 |
+
- Link: https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9
|
| 49 |
+
- Link: https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-0.9
|
| 50 |
|
| 51 |
|
| 52 |
- 5. - Move your "base" and "refiner" models into the ComfyUI's subfolder, like "...\ComfyUI\models\checkpoints\", where "..." means your root folder of your ComfyUI environment.
|