Stable Diffusion WebUI-Forge is a user-friendly interface for text-to-image AI models, designed to work with the Stable Diffusion model. This article provides a comprehensive guide on how to install the WebUI-Forge on an CPU-based Ubuntu system without a GPU. The installation process involves setting up a Python environment, cloning the repository, and running the application with CPU-specific settings.
Pro Tip: If you’re interested in exploring the cutting-edge FLUX.1-dev model for creating stunning images, don’t miss my latest guide. Learn how to install it via WebUI Forge on Ubuntu here:
Steps to Install WebUI-Forge on Ubuntu with an Intel CPU (No GPU):
1. Ensure your system is updated:
sudo apt update
sudo apt upgrade
2. Install Miniconda or Anaconda to manage Python environments:
Download and follow the instructions from below mentioned tutorial:
3. Create a new Conda environment with Python 3.10:
conda create -n webui-forge python=3.10
4. Activate the newly created Conda environment:
conda activate webui-forge
5. Clone the Stable Diffusion WebUI-Forge repository:
git clone https://github.com/lllyasviel/stable-diffusion-webui-forge.git
6. Navigate to the cloned repository directory:
cd stable-diffusion-webui-forge
7. Run the WebUI script with CPU-only flags:
./webui.sh --always-cpu --skip-torch-cuda-test
The --always-cpu
flag tells the script to use the CPU for processing, while --skip-torch-cuda-test
skips the CUDA compatibility test, which is unnecessary for CPU-only setups.
FAQs and Troubleshooting:
Q: What if I encounter a “command not found” error when running the script?
A: Ensure you have the necessary execution permissions for the script:
chmod +x webui.sh
Q: How do I resolve dependency issues during installation?
A: Make sure to update Conda and install any missing dependencies manually:
conda update --all
conda install
Q: The script is running, but I can’t access the WebUI. What should I do?
A: Check if the server is running on the correct port and ensure your firewall settings allow traffic on that port.
Q: What if I encounter a memory error while running the model on CPU?
A: Running AI models on a CPU can be memory-intensive. Close unnecessary applications to free up RAM or consider adding more RAM to your system.
Q: How can I resolve issues with incompatible Python packages?
A: Use Conda to manage package versions and resolve conflicts:
conda install =
Q: What if I encounter a ‘missing package’ error during installation?
A: Ensure all dependencies are installed. You can install missing packages using pip
or conda
.
Q: The script fails to start, mentioning a lack of GPU. What should I do?
A: Make sure you included the --always-cpu
flag when running the script to force CPU mode.
Q: I’m experiencing slow performance. Is this normal?
A: Yes, running AI models on a CPU is significantly slower than on a GPU. Be patient with processing times.
Q: How can I update the WebUI-Forge to the latest version?
A: Pull the latest changes from the GitHub repository using git pull
and rerun the installation script
Q: What should I do if I encounter a Python or Conda environment-related issue?
A: Verify that the correct Python version is being used and that all dependencies are compatible. Re-create the Conda environment if necessary.
Q: What if I encounter a ‘ModuleNotFoundError’ after running the ./webui.sh
script?
A: Ensure all required Python packages are installed. You may need to install missing modules using pip install
.
Q: I’m getting an ‘Out of Memory’ error. How can I fix this?
A: Try increasing the swap space on your Ubuntu system or close other memory-intensive applications while running the web UI.
Q: The installation is taking a long time or hanging. What’s wrong?
A: Check your internet connection and ensure that GitHub is not experiencing downtime. Also, verify that you have sufficient disk space.
Q: The web UI doesn’t start, and I see a ‘Permission denied’ error.**
A: Make the webui.sh
script executable by running chmod +x webui.sh
and then try running it again.
Q: How can I access the web UI from a browser?
A: Once the web UI is running, open a web browser and navigate to http://localhost:7860
or the IP address and port specified in the terminal output.
Conclusion:
With these steps, you can successfully install and run Stable Diffusion WebUI-Forge on your Intel CPU-powered Ubuntu system. Enjoy exploring the world of AI-generated art without the need for a GPU.