sdxl-0.9-usage / README.md
NathMath's picture
Update README.md
45b629a
|
raw
history blame
5.32 kB
metadata
license: apache-2.0
language:
  - en
library_name: diffusers
pipeline_tag: text-to-image
tags:
  - stable-diffusion-xl
  - sdxl
  - SD-XL 0.9
  - NathMath

sdxl-0.9-usage

  • This repo is a tutoral intended to help beginners to use the new released model, stable-diffusion-xl-0.9 in ComfyUI, with both the base and refiner models together to achieve a magnificent quality of image generation.

  • With usable demo interfaces for ComfyUI to use the models (see below)!

Usage

  • Here is a full tutorial to use stable-diffusion-xl-0.9 FROM ZERO!

      • Go to Github and find the latest version of ComfyUI, which is a cutting-edge GUI platform for you to use all kinds of diffusion models.
      • Note that in the link below, it provides both a standalone version (do not need an extra python environment), and a source version.
      • We recommend the first approach because we are all lazy buddies.
      • Link: https://github.com/comfyanonymous/ComfyUI step1.png
      • 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.
      • Note that files extracted may not necessarilty be like the image shown below. sdxl-step2.png
      • Get into the folder or the environment you have just created, when you have finished the last step.
      • Next, what you can find includes those two ".bat" files named "run_cpu.bat" and "run_nvidia_gpu.bat" respectively.
      • Then, choose the suitable version and click it, which means, to use CUDA or not, and double click to run the script.
      • 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. sdxl-step3.png
      • Move your "base" and "refiner" models into the ComfyUI's subfolder, like "...\ComfyUI\models\checkpoints", where "..." means your root folder of your ComfyUI environment.
      • Click into the file folder of THIS REPO, and find some files named "sdxl-0.9-...-.json", which is a demo environment I have created for testing and using the stable-diffusion-xl-0.9 in ComfyUI.
      • Note that the 3-digit number in the file name represents the version of my demo, and always, you should download the latest one owning the biggest number.
      • Link: https://huggingface.co/NathMath/sdxl-0.9-usage/tree/main sdxl-step50.png
      • When you have loaded into the ComfyUI, it will display this default interface shown below: sdxl-step51.png

      • Then, find out the "load" button on a floating panel, click, and choose the ".json" file download from THIS REPO, it will quickly load a friendly interface to use the stable-diffusion-xl-0.9 series. sdxl-step52.png

      • Things will become easy soon.

      • As labels of all components are shown explicitly in interface, you can find enterpoints and panels by their names.

      • Then, load the "base" and "refiner" model, set relevant parameters, and type your favorite prompts to start your exciting journey.

      • Note that it will automatically save TWO images of EACH queue, respectively before applying with the refiner, and after.

      • Congratulations, you have sucessfully learned how to use sdxl with FULL MODELS.

Tips

  • Positive prompts and Negative prompts in both input box are ought to be identical, but you can freely try whatever you want.

  • The output quality of the stable-diffusion-xl-0.9 models depends on your prompts and parameter settings, so try to adjust them to achieve a better quality.

  • This is not the final version of this repo. I will update the demos for further applications and advanced functions, so if you are interested, please like it.

  • Need to be updated...

Q&A

  • Please feel free to leave all of your questions in the community of this repo, and I will soon answer them if I am able to solve.