From efa0a6483c9dfbdde6717bec202942c6036e72ff Mon Sep 17 00:00:00 2001 From: AUTOMATIC <16777216c@gmail.com> Date: Fri, 2 Sep 2022 19:26:18 +0300 Subject: change webui.bat to use venv --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index f2973a80..2c4d3c5b 100644 --- a/README.md +++ b/README.md @@ -27,12 +27,15 @@ You optionally can use GPFGAN to improve faces, then you'll need to download the - install [CUDA 11.3](https://developer.nvidia.com/cuda-11.3.0-download-archive?target_os=Windows&target_arch=x86_64) - place `model.ckpt` into webui directory, next to `webui.bat`. - _*(optional)*_ place `GFPGANv1.3.pth` into webui directory, next to `webui.bat`. -- run `webui.bat` from Windows explorer. +- run `webui.bat` from Windows Explorer. #### Troublehooting: - if you get out of memory errors and your videocard has low amount of VRAM (4GB), edit `webui.bat`, change line 5 to from `set COMMANDLINE_ARGS=` to `set COMMANDLINE_ARGS=--medvram` (see below for other possible options) - +- installer creates python virtual environment, so none of installed modules will affect your system installation of python if you had one prior to installing this. +- to prevent the creation of virtual environment and use your system python, edit `webui.bat` replacing `set VENV_DIR=venv` with `set VENV_DIR=`. +- webui.bat installs requirements from files `requirements_versions.txt`, which lists versions for modules specifically compatible with Python 3.10.6. If you choose to install for a different version of python, editing `webui.bat` to have `set REQS_FILE=requirements.txt` instead of `set REQS_FILE=requirements_versions.txt` may help (but I still reccomend you to just use the recommended version of python). +- if your version of Python is not in PATH, edit the line `set PYTHON=python` to say the full path to your python executable: `B:\soft\Python310\python.exe`. You can do this for python, but not for git. ### Manual instructions Alternatively, if you don't want to run webui.bat, here are instructions for installing -- cgit v1.2.1