zhiweili
commited on
Commit
Β·
6c910d6
1
Parent(s):
52762cc
test CUDA_HOME
Browse files- app_onediff.py +5 -0
- requirements.txt +0 -1
app_onediff.py
CHANGED
@@ -47,6 +47,11 @@ def runcmd(cmd, verbose = False, *args, **kwargs):
|
|
47 |
# options = json.loads('{"mode": "max-optimize:max-autotune:low-precision", "memory_format": "channels_last", "dynamic": true}')
|
48 |
# return compile_pipe(torch_module, backend="nexfort", options=options, fuse_qkv_projections=True)
|
49 |
|
|
|
|
|
|
|
|
|
|
|
50 |
BASE_MODEL = "stabilityai/sdxl-turbo"
|
51 |
device = "cuda"
|
52 |
|
|
|
47 |
# options = json.loads('{"mode": "max-optimize:max-autotune:low-precision", "memory_format": "channels_last", "dynamic": true}')
|
48 |
# return compile_pipe(torch_module, backend="nexfort", options=options, fuse_qkv_projections=True)
|
49 |
|
50 |
+
print(os.environ.get('CUDA_PATH'))
|
51 |
+
print(os.environ.get('CUDA_HOME'))
|
52 |
+
|
53 |
+
os.system("CUDA_HOME=/usr/local/cuda-12.1 python3 -m pip install stable-fast")
|
54 |
+
|
55 |
BASE_MODEL = "stabilityai/sdxl-turbo"
|
56 |
device = "cuda"
|
57 |
|
requirements.txt
CHANGED
@@ -9,6 +9,5 @@ git+https://github.com/XPixelGroup/BasicSR@master
|
|
9 |
gfpgan
|
10 |
facexlib
|
11 |
realesrgan
|
12 |
-
git+https://github.com/chengzeyi/stable-fast.git@main#egg=stable-fast
|
13 |
triton
|
14 |
xformers
|
|
|
9 |
gfpgan
|
10 |
facexlib
|
11 |
realesrgan
|
|
|
12 |
triton
|
13 |
xformers
|