mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 12:22:26 -08:00
Merge e285037e29 into fd68e0c384
This commit is contained in:
commit
716907ef70
1 changed files with 8 additions and 1 deletions
|
|
@ -431,7 +431,14 @@ def prepare_environment():
|
|||
startup_timer.record("install open_clip")
|
||||
|
||||
if (not is_installed("xformers") or args.reinstall_xformers) and args.xformers:
|
||||
run_pip(f"install -U -I --no-deps {xformers_package}", "xformers")
|
||||
try:
|
||||
rocm_check = subprocess.run(['rocminfo'], stdout=subprocess.PIPE, stderr=subprocess.PIPE).returncode
|
||||
except FileNotFoundError:
|
||||
rocm_check = 1
|
||||
if rocm_check == 0:
|
||||
run_pip(f"install -U -I --no-deps xformers --index-url https://download.pytorch.org/whl/rocm6.1", "xformers")
|
||||
else:
|
||||
run_pip(f"install -U -I --no-deps {xformers_package}", "xformers")
|
||||
startup_timer.record("install xformers")
|
||||
|
||||
if not is_installed("ngrok") and args.ngrok:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue