NOTE: Pytorch3d no longer has to be compiled i have stripped out the function we use to make this a lot easier and also so we do not have to use WSL2 with linux and can now run directly on your windows system.
Comments section is not checked often for issues please join the disco diffusion discord for assistance
You may now use the official disco diffusion notebook with this tutorial as it has been uodated to reflect the changes here for better cross platform support
This will walk you through getting your environment setup to run most of the GANs with Anaconda as a Virtual Python Environment.
System Requirements:
OS: Windows (11/10/8/7), Ubuntu(19,20)
GPU: Nvidia (AMD hasnt been tested)
VRAM: 12gb+
- A) Cuda enabled GPU
- Latest Nvidia Drivers
- CUDA Toolkit for your version
- B) Python (Anaconda)
- https://www.anaconda.com/products/individual#Downloads
- We use anaconda to make it easier to manage different projects
- Virtual python evironment and versioning
- Anaconda also includes Jupyter Notebook pre-installed
- C) Git
- https://git-scm.com/downloads
- version control manager for code
- we just use it to download repos from GitHub
- Must be on system PATH, When installing select the option add to system PATH
- D) FFmpeg
- https://ffmpeg.org/download.html
- Video encoding tool library
- we use this mainly to turn image sequences into videos
- Must be on system PATH
- E) ImageMagick
- https://imagemagick.org/script/download.php
- software suite for displaying, creating, converting, modifying, and editing raster images.
- used in some projects but handy to have already installed
- F) Wget
- used to download models for projects
- Windows users need this verison
- Linux users can just use the package in their distributions
- G) cURL
- used to download models, some projects use this instead of wget
- Latest versions of windows have cURL pre installed
- Older versions that dont include cURL use this one
- Linux users can just use the package in their distributions
- A) Setup and activate conda env
conda create --name disco-diffusion python=3.9conda activate disco-diffusion
- B) Install a few more pip dependencies
pip install ipykernel opencv-python pandas regex matplotlib ipywidgets
- C) Install Pytorch with CUDA support!
- https://pytorch.org/get-started/locally/
- be sure to install a version with GPU support!
- example of what worked for me
conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch
- D) Run disco diffusion
python -m disco.py
- E) optionally connect to colab front end
pip install --upgrade jupyter_http_over_ws>=0.0.7- Enable the extension for jupyter
jupyter serverextension enable --py jupyter_http_over_ws- Start the jupyter server
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888 --NotebookApp.port_retries=0 --no-browser


Thanks you very much for this. works like a charm
I ran into errors on #7 running: jupyter serverextension enable --py jupyter_http_over_ws
fixed hours later by