Initial version
Browse files- stepbystep-pythonportable.md +72 -0
stepbystep-pythonportable.md
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# reforgePortable
|
| 2 |
+
Experimenting to build a portable version of stable-diffusion-webui-reForge
|
| 3 |
+
This version uses the official Python embeddable package which seems to be pretty barebone and showed some issue with
|
| 4 |
+
some files not being in the directory that the UI requirements setup process expected them to be, so make sure to move
|
| 5 |
+
then appropriately!
|
| 6 |
+
|
| 7 |
+
***
|
| 8 |
+
## Prerequisites
|
| 9 |
+
Microsoft Visual C++ 2015 Redistributable
|
| 10 |
+
https://www.microsoft.com/en-us/download/details.aspx?id=48145
|
| 11 |
+
Microsoft Visual C++ 2015-2022 Redistributable
|
| 12 |
+
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022
|
| 13 |
+
|
| 14 |
+
***
|
| 15 |
+
## Prepare folders
|
| 16 |
+
1) Create folder C:\SD\reforge-portable
|
| 17 |
+
2) Create subfolder C:\SD\reforge-portable\system
|
| 18 |
+
3) Create subfolder C:\SD\reforge-portable\system\git
|
| 19 |
+
4) Create subfolder C:\SD\reforge-portable\system\python
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
|
| 23 |
+
***
|
| 24 |
+
## Install Git portable
|
| 25 |
+
Browse to https://git-scm.com/downloads/win and download "64-bit Git for Windows Portable"
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+
Execute downloaded exe file and extract to C:\SD\reforge-portable\system\git
|
| 29 |
+

|
| 30 |
+
|
| 31 |
+
***
|
| 32 |
+
## Install Python embeddable package
|
| 33 |
+
Browse to https://www.python.org/downloads/release/python-31011/ and download "Windows embeddable package (64-bit)"
|
| 34 |
+

|
| 35 |
+
|
| 36 |
+
Extract downloaded zip file to C:\SD\reforge-portable\system\python
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
Create subfolder C:\SD\reforge-portable\system\python\DLLs and move the following files from the python directory into this folder
|
| 40 |
+

|
| 41 |
+
|
| 42 |
+
Delete the file "python310._pth" from the C:\SD\reforge-portable\system\python directory
|
| 43 |
+

|
| 44 |
+
|
| 45 |
+
***
|
| 46 |
+
## Install get-pip.py script
|
| 47 |
+
Browse to https://bootstrap.pypa.io/ (Github: https://github.com/pypa/get-pip) and download [get-pip.py](https://bootstrap.pypa.io/get-pip.py) into C:\SD\reforge-portable\system\python
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
***
|
| 51 |
+
## Get run scripts
|
| 52 |
+
- Either download the full [Forge portable zip](https://github.com/lllyasviel/stable-diffusion-webui-forge?tab=readme-ov-file#installing-forge)
|
| 53 |
+
and extract only the 3 bat files from the root
|
| 54 |
+
- or download them from my github here [/runscipts/](runscripts/)
|
| 55 |
+
|
| 56 |
+
Copy these three files into C:\SD\reforge-portable
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+
***
|
| 60 |
+
## Git clone reForge
|
| 61 |
+
Open cmd.exe in C:\SD\reforge-portable.
|
| 62 |
+
1) Run environment.bat
|
| 63 |
+
2) Run `git clone https://github.com/Panchovix/stable-diffusion-webui-reForge webui`
|
| 64 |
+
|
| 65 |
+

|
| 66 |
+
|
| 67 |
+
***
|
| 68 |
+
## First-run
|
| 69 |
+
Run `run.bat`. This should now start the normal reForge requirements installations which may take quite a while
|
| 70 |
+

|
| 71 |
+
|
| 72 |
+
If everything goes well the webUI page will open after everything is complete.
|