Derur's picture
Upload 10 files
6f57a7b verified
|
raw
history blame
3.72 kB

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

  1. Create folder C:\SD\reforge-portable
  2. Create subfolder C:\SD\reforge-portable\system
  3. Create subfolder C:\SD\reforge-portable\system\git
  4. Create subfolder C:\SD\reforge-portable\system\python

folder-2


Install Git portable

Browse to https://git-scm.com/downloads/win and download "64-bit Git for Windows Portable"
git-download-1

Execute downloaded exe file and extract to C:\SD\reforge-portable\system\git
git-install-1


Install Python embeddable package

Browse to https://www.python.org/downloads/release/python-31011/ and download "Windows embeddable package (64-bit)" python-download-1

Extract downloaded zip file to C:\SD\reforge-portable\system\python
python-install-1

Create subfolder C:\SD\reforge-portable\system\python\DLLs and move the following files from the python directory into this folder
python-install-2

Delete the file "python310._pth" from the C:\SD\reforge-portable\system\python directory
python-install-4


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 python-install-3


Get run scripts

Copy these three files into C:\SD\reforge-portable
webui-install-1


Git clone reForge

Open cmd.exe in C:\SD\reforge-portable.

  1. Run environment.bat
  2. Run git clone https://github.com/Panchovix/stable-diffusion-webui-reForge webui

webui-install-2


First-run

Run run.bat. This should now start the normal reForge requirements installations which may take quite a while
webui-install-3

If everything goes well the webUI page will open after everything is complete.