![]() Generate the token and copy it, paste it back to the Command Prompt. If this is your first time logging in, you’ll need to provide an access token from Hugging Face. Inside Command Prompt, type: huggingface-cli login This hugginface-hub provides some utility programs that help facilitate downloading the Stable Diffusion models When installing the diffusers library, another library called huggingface-hub was also installed. Connect to Hugging Face (For Downloading Stable Diffusion Model Weights) We need to install a few more other libraries using pip: pip install transformers ftfy scipy 3. Then type pip install followed by the file name: pip install ort_nightly_directml-1.13.0.dev20220908001-cp39-cp39-win_amd64.whl 2.4. The easiest way is to use the Command Prompt to navigate to the same folder that stores the wheel file. Install The Onnx Nightly Build Wheel File (amd_venv) C:\Users\jay\Desktop\PythonInOffice\stable_diffusion_amd>pip install -e. This will treat the current directory as a Python library and install it. the modified diffusers library) by using the -e. Then pip install the current directory (i.e. ![]() To create a virtual environment, type the following: # create the virtual environmentĪctivate 2.2. This helps prevent messing up our current Python environments. When trying something new, we should always use a Python virtual environment. Our command prompt should be inside this folder now: 2.1. Then navigate to the folder where we store the modified diffusers library, which I saved here: C:\Users\jay\Desktop\PythonInOffice\stable_diffusion_amd\diffusers-dml Open up Command Prompt with admin privileges. And if you have Python version 3.9, you’ll download cp39, etc. For example, if you have Python 3.8, you’ll download the cp38. Wheel files are Python libraries that we can use pip to install.Ĭhoose one that matches the Python version you have on your computer. 1.2 Download Onnx Nightly Build Wheel Fileĭownload the wheel file from the below link. Once downloaded, unzip the content to a folder of your choice. Note it should be the “dml” branch, not the main branch. Download Files 1.1 Download Code – Modified Diffusers Libraryĭownload this copy of the diffusers library: Installing Git is also straightforward, the installer wizard will ask a lot of questions, just go with default for everything. Git is also required, without Git the program will not install properly. Python installation is fairly straightforward so we won’t cover that here. You can download the Python installation file from either one of the following resources: We’ll need to get Python version 3.7 ( 64-bit) to run Stable Diffusion. The built-in interpreter of the standalone version doesn't currently support installing packages beyond the common scientific libraries bundled with it, so most users will want to have an external Python environment to run their own code, like with any other IDE.Īlso, the standalone installers don't yet work with third-party plugins, so users needing them should use Spyder through a Conda-based distribution instead.įor a detailed guide to this and the other different ways to obtain Spyder, refer to our full installation instructions, and check out our release page for links to all our installers.The source code Stable Diffusion model/software is written in Python, so we’ll need to install Python first. You can also try out Spyder right in your web browser by launching it on Binder. We offer standalone installers on Windows and macOS, and as our Linux installer is are still experimental, we currently recommend the cross-platform Anaconda distribution for that operating system, which includes Spyder and many other useful packages for scientific Python. Want to join the community of scientists, engineers and analysts all around the world using Spyder?Ĭlick the button below to download the suggested installer for your platform.
0 Comments
Leave a Reply. |