Diffusion-ui-backend
Warning
This backend is now obsolete and you should instead use the Automatic1111 backend.
Installation
Install conda if it is not already installed
Create an environment named dui:
conda create -n dui python=3.10
Activate that environment (You will need to do that every time before running the backend):
conda activate dui
You now should have a (dui) text in front of your prompt indicating that you are inside that environment.
Inside this environment, install pytorch with cuda support:
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
Install the diffusionui backend and its dependencies:
pip install diffusionui
Download Miniconda
Install Miniconda. Install for all users. Uncheck “Register Miniconda as the system Python 3.9” unless you want to
Open Anaconda Prompt (miniconda3)
Create an environment named dui:
conda create -n dui python=3.10
Activate that environment (You will need to do that every time before running the backend):
conda activate dui
You now should have a (dui) text in front of your prompt indicating that you are inside that environment.
Install pytorch with cuda support:
conda install pytorch torchvision torchaudio cudatoolkit=11.6 -c pytorch -c conda-forge
Install the diffusionui backend and its dependencies:
pip install diffusionui
First Usage
The first time, you have to download the model:
create an account on https://huggingface.co
login on your console with huggingface-cli login
then download the model with:
diffusionui --low-mem --download-model
diffusionui --download-model
Usage
Once the installation has been done, you should have a diffusionui executable in the dui environment you created.
Every time you need to run the backend, don’t forget to activate that environment:
conda activate dui
You can check the current installed version by typing:
diffusionui --version
To start the backend, run:
diffusionui --low-mem
diffusionui
It should produce an local URL for the gradio interface:
Running on local URL: http://127.0.0.1:7860/
Once you have this local URL, congratulations 🚀 ! You can now visit https://diffusionui.com to access it with the nice interface.