Commit Graph

37 Commits

Author SHA1 Message Date
Zhang Hua
d006108d75
webui.sh: remove all cd related code
This may be helpful for
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7028,
because we won't change working directory to the repo now, instead,
we will use any working directory. If we set working directory to
a path contains repo and the custom --data-dir, the problem in this
issue should be solved.

Howewer, this may be treated as an incompatible change if some code
assume the working directory is always the repo.

Also, there may be another solution that always let --data-dir be the
subdirectory of the repo, but personally I think this may not be what
we actually need.

As this issue mainly influent on Docker and I am not familiar with
.bat files, updating webui.bat is skipped.

webui.sh: source env from repo instead $PWD
2023-03-11 20:00:11 +08:00
DaniAndTheWeb
e0b6092bc9
Update webui.sh 2023-01-20 15:31:27 +01:00
DaniAndTheWeb
fd651bd0bc
Update webui.sh 2023-01-20 00:21:51 +01:00
DaniAndTheWeb
0684a6819d
Usage explanation for Renoir users 2023-01-20 00:21:05 +01:00
DaniAndTheWeb
912285ae64
Experimental support for Renoir
This adds the GFX version 9.0.0 in order to use Renoir GPUs with at least 4 GB of VRAM (it's possible to increase the virtual VRAM from the BIOS settings of some vendors). This will only work if the remaining ram is at least 12 GB to avoid the system to become unresponsive on launch.).
This change also changes the GPU check to a case statement to be able to add more GPUs efficiently.
2023-01-19 23:42:12 +01:00
DaniAndTheWeb
36364bd76c
GFX env just for RDNA 1 and 2
This commit specifies which GPUs should use the GFX variable, RDNA 3 is excluded since it uses a newer GFX version
2023-01-19 20:05:49 +01:00
DaniAndTheWeb
48045545d9
Small reformat of the GPU check 2023-01-19 19:23:40 +01:00
DaniAndTheWeb
c09fb3d8f1
Simplify GPU check 2023-01-19 19:21:02 +01:00
DaniAndTheWeb
4599e8ad0a
Environment variable on launch just for Navi cards
Setting HSA_OVERRIDE_GFX_VERSION=10.3.0 for all AMD cards seems to break compatibility for polaris and vega cards so it should just be enabled on Navi
2023-01-19 17:00:51 +01:00
facu
956263b8a4 fixing error using lspci on macOsX 2023-01-18 19:15:53 -03:00
DaniAndTheWeb
ba077e2110
Fix TORCH_COMMAND check 2023-01-14 23:19:52 +01:00
DaniAndTheWeb
2e172cf831
Only set TORCH_COMMAND if wasn't set webui-user 2023-01-14 22:25:32 +01:00
DaniAndTheWeb
c4ba34928e
Quick format fix 2023-01-14 15:58:50 +01:00
DaniAndTheWeb
6192a222bf
Export TORCH_COMMAND for AMD from the webui 2023-01-14 15:46:23 +01:00
DaniAndTheWeb
cbf4b3472b
Automatic launch argument for AMD GPUs
This commit adds a few lines to detect if the system has an AMD gpu and adds an environment variable needed for torch to recognize the gpu.
2023-01-13 19:18:56 +01:00
Wes Roberts
066390eb56 Fixes webui.sh to exec LAUNCH_SCRIPT 2023-01-04 17:58:16 -05:00
Fionn Langhans
cb64439f41
Bugfix: Use /usr/bin/env bash instead of just /bin/bash
The problem: Some Linux distrubutions, like NixOS, use a
non-standard filesystem. This causes the bash program to not
be at /bin/bash (though /usr/bin/env is always there).
2022-12-12 21:27:46 +01:00
brkirch
5ec8981df4 Revert most launch.py changes, add mac user script
Adds an addition file to read environment variables from when the webui.sh is run from macOS.
2022-12-03 06:44:59 -05:00
brkirch
bef36597cc Fix run as root flag
Even though -f enables running webui.sh as root, the -f flag will also be passed to launch.py, causing it to exit with a usage message. This adds a line to launch.py to remove the -f flag if present.

In addition to the above, all the letters in the command line arguments after each '-' were being processed for 'f' and "illegal option" was displayed for each letter that didn't match. Instead, this commit silences those errors and stops processing if the first flag doesn't start with '-f'.
2022-12-01 04:49:49 -05:00
AUTOMATIC1111
88a01f94a8
Merge pull request #1904 from EternalNooblet/dev
Added a flag to run as root if needed
2022-11-27 14:17:44 +03:00
d8ahazard
0a54bd3395 Optional Accelerate Launch 2022-11-09 11:15:17 -06:00
Mackerel
6515dedf57 webui.sh: no automatic git pull 2022-10-29 11:59:50 -04:00
Matthew Clark
bdf1a8903a Pass arguments from bash to python 2022-10-18 17:24:21 +03:00
AUTOMATIC
bd4f0fb9d9 revert changes to two bat files I asked to revert but the author couldn't in 863e9efc19. 2022-10-16 10:14:27 +03:00
Zeithrold
863e9efc19
Pull out some of URL to Env Variable (#2578)
* moved repository url to changeable environment variable

* move stable diffusion repo itself to env

* added missing env

* Remove default URL

Co-authored-by: AUTOMATIC1111 <16777216c@gmail.com>
2022-10-16 10:13:18 +03:00
Daniel M
6a4e846710 Fix prerequisites check in webui.sh
- Check the actually used `$python_cmd` and `$GIT` executables instead
  of the hardcoded ones
- Fix typo in comment
2022-10-15 10:29:41 +03:00
EternalNooblet
065364445d added a flag to run as root if needed 2022-10-07 15:25:01 -04:00
Andrew Savchyn
d18daafb8b Uppercase for env var LAUNCH_SCRIPT 2022-09-30 12:59:47 +03:00
Andrew Savchyn
fcfe2e9ffd Configurable launch script 2022-09-30 12:59:47 +03:00
DepFA
e61da308ba Disable sentry logging 2022-09-26 16:19:47 +03:00
benbot
d6e8d85e30 removed TORCH_COMMAND section from webui.sh and
added correct torchvision version to default torch install command
2022-09-21 16:04:13 +03:00
safentisFox
7b0f402b66 Fix bad bad torch command variable 2022-09-18 16:55:57 +03:00
AUTOMATIC
7476593014 change () to "" in .sh scripts because export AAA=(BBB CCC) sets AAA to BBB and does not export anything
whoever put that in .sh files - shame on you
2022-09-18 15:07:14 +03:00
orionaskatu
a0e819de90 remove model files check 2022-09-14 10:45:25 +03:00
orionaskatu
d62fbcc5aa fix on torch_command + tested on debian 2022-09-14 10:45:25 +03:00
orionaskatu
7bf76af40a rewrite for launch.py - untested 2022-09-14 10:45:25 +03:00
orionaskatu
efc8ed13e1 install/launch scripts for linux 2022-09-14 10:45:25 +03:00