reforgePortable
Experimenting to build a portable version of stable-diffusion-webui-reForge
This version uses the official Python embeddable package which seems to be pretty barebone and showed some issue with
some files not being in the directory that the UI requirements setup process expected them to be, so make sure to move
then appropriately!
Prerequisites
Microsoft Visual C++ 2015 Redistributable
https://www.microsoft.com/en-us/download/details.aspx?id=48145
Microsoft Visual C++ 2015-2022 Redistributable
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
Prepare folders
- Create folder C:\SD\reforge-portable
- Create subfolder C:\SD\reforge-portable\system
- Create subfolder C:\SD\reforge-portable\system\git
- Create subfolder C:\SD\reforge-portable\system\python
Install Git portable
Browse to https://git-scm.com/downloads/win and download "64-bit Git for Windows Portable"
Execute downloaded exe file and extract to C:\SD\reforge-portable\system\git
Install Python embeddable package
Browse to https://www.python.org/downloads/release/python-31011/ and download "Windows embeddable package (64-bit)"
Extract downloaded zip file to C:\SD\reforge-portable\system\python
Create subfolder C:\SD\reforge-portable\system\python\DLLs and move the following files from the python directory into this folder
Delete the file "python310._pth" from the C:\SD\reforge-portable\system\python directory
Install get-pip.py script
Browse to https://bootstrap.pypa.io/ (Github: https://github.com/pypa/get-pip) and download get-pip.py into C:\SD\reforge-portable\system\python
Get run scripts
- Either download the full Forge portable zip and extract only the 3 bat files from the root
- or download them from my HF space here /runscipts/
Copy these three files into C:\SD\reforge-portable
Git clone reForge
Open cmd.exe in C:\SD\reforge-portable.
- Run environment.bat
- Run
git clone https://github.com/Panchovix/stable-diffusion-webui-reForge webui
First-run
Run run.bat. This should now start the normal reForge requirements installations which may take quite a while
If everything goes well the webUI page will open after everything is complete.