Spaces:
Runtime error
Runtime error
DreamSunny
commited on
Commit
•
0685cb0
1
Parent(s):
d01c866
Update to 1.4.0
Browse files- README.md +1 -1
- app.py +7 -4
- requirements.txt +29 -36
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🏃
|
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
python_version : 3.10.6
|
|
|
4 |
colorFrom: pink
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.32.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
python_version : 3.10.6
|
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
"""
|
2 |
-
Stable Diffusion Webui Version 1.
|
3 |
-
https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.
|
4 |
|
5 |
"""
|
6 |
-
|
7 |
import os
|
8 |
from sys import executable
|
9 |
import subprocess
|
@@ -21,7 +21,9 @@ def Gitclone(URI:str,ClonePath:pathlib.Path ) -> int :
|
|
21 |
return 0
|
22 |
else :
|
23 |
del i
|
|
|
24 |
def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
|
|
25 |
while (True):
|
26 |
i=subprocess.run([r"aria2c",r"-c",r"-x" ,r"16", r"-s",r"16", r"-k" ,r"1M" ,r"-m",r"0",r"--enable-mmap=false",r"--console-log-level=error",r"-d",str(DownloadPath),r"-o",DownLoadFileName,URI]);
|
27 |
if(i.returncode == 0 ):
|
@@ -30,13 +32,14 @@ def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
|
30 |
return 0
|
31 |
else :
|
32 |
del i
|
|
|
33 |
user_home =pathlib.Path.home().resolve()
|
34 |
os.chdir(str(user_home))
|
35 |
#clone stable-diffusion-webui repo
|
36 |
print("cloning stable-diffusion-webui repo")
|
37 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
|
38 |
os.chdir(str(user_home / r"stable-diffusion-webui"))
|
39 |
-
os.system("git reset --hard
|
40 |
#install extensions
|
41 |
print("installing extensions")
|
42 |
Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
|
|
|
1 |
"""
|
2 |
+
Stable Diffusion Webui Version 1.4.0
|
3 |
+
https://github.com/AUTOMATIC1111/stable-diffusion-webui/releases/tag/v1.4.0
|
4 |
|
5 |
"""
|
6 |
+
commit_id=r"394ffa7b0a7fff3ec484bcd084e673a8b301ccc8" #Version 1.40
|
7 |
import os
|
8 |
from sys import executable
|
9 |
import subprocess
|
|
|
21 |
return 0
|
22 |
else :
|
23 |
del i
|
24 |
+
|
25 |
def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
26 |
+
if (DownloadPath / DownLoadFileName).is_file(): return 0
|
27 |
while (True):
|
28 |
i=subprocess.run([r"aria2c",r"-c",r"-x" ,r"16", r"-s",r"16", r"-k" ,r"1M" ,r"-m",r"0",r"--enable-mmap=false",r"--console-log-level=error",r"-d",str(DownloadPath),r"-o",DownLoadFileName,URI]);
|
29 |
if(i.returncode == 0 ):
|
|
|
32 |
return 0
|
33 |
else :
|
34 |
del i
|
35 |
+
|
36 |
user_home =pathlib.Path.home().resolve()
|
37 |
os.chdir(str(user_home))
|
38 |
#clone stable-diffusion-webui repo
|
39 |
print("cloning stable-diffusion-webui repo")
|
40 |
Gitclone(r"https://github.com/AUTOMATIC1111/stable-diffusion-webui.git",user_home / r"stable-diffusion-webui")
|
41 |
os.chdir(str(user_home / r"stable-diffusion-webui"))
|
42 |
+
os.system("git reset --hard "+commit_id)
|
43 |
#install extensions
|
44 |
print("installing extensions")
|
45 |
Gitclone(r"https://huggingface.co/embed/negative",user_home / r"stable-diffusion-webui" / r"embeddings" / r"negative")
|
requirements.txt
CHANGED
@@ -1,37 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
torch
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
torchdata
|
6 |
-
astunparse
|
7 |
-
blendmodes
|
8 |
-
accelerate
|
9 |
-
basicsr
|
10 |
-
gfpgan
|
11 |
-
numpy
|
12 |
-
omegaconf
|
13 |
-
opencv-contrib-python
|
14 |
-
requests
|
15 |
-
piexif
|
16 |
-
Pillow
|
17 |
-
pytorch_lightning==1.7.7
|
18 |
-
realesrgan
|
19 |
-
scikit-image>=0.19
|
20 |
-
timm==0.4.12
|
21 |
-
transformers==4.25.1
|
22 |
-
torch
|
23 |
-
einops
|
24 |
-
jsonmerge
|
25 |
-
clean-fid
|
26 |
-
resize-right
|
27 |
-
torchdiffeq
|
28 |
-
kornia
|
29 |
-
lark
|
30 |
-
inflection
|
31 |
-
GitPython
|
32 |
-
torchsde
|
33 |
-
safetensors
|
34 |
-
psutil
|
35 |
-
rich
|
36 |
-
tomesd
|
37 |
-
|
|
|
1 |
+
GitPython==3.1.30
|
2 |
+
Pillow==9.5.0
|
3 |
+
accelerate==0.18.0
|
4 |
+
basicsr==1.4.2
|
5 |
+
blendmodes==2022
|
6 |
+
clean-fid==0.1.35
|
7 |
+
einops==0.4.1
|
8 |
+
fastapi==0.94.0
|
9 |
+
gfpgan==1.3.8
|
10 |
+
gradio==3.32.0
|
11 |
+
httpcore<=0.15
|
12 |
+
inflection==0.5.1
|
13 |
+
jsonmerge==1.8.0
|
14 |
+
kornia==0.6.7
|
15 |
+
lark==1.1.2
|
16 |
+
numpy==1.23.5
|
17 |
+
omegaconf==2.2.3
|
18 |
+
piexif==1.1.3
|
19 |
+
psutil~=5.9.5
|
20 |
+
pytorch_lightning==1.9.4
|
21 |
+
realesrgan==0.3.0
|
22 |
+
resize-right==0.0.2
|
23 |
+
safetensors==0.3.1
|
24 |
+
scikit-image==0.20.0
|
25 |
+
timm==0.6.7
|
26 |
+
tomesd==0.1.2
|
27 |
torch
|
28 |
+
torchdiffeq==0.2.3
|
29 |
+
torchsde==0.2.5
|
30 |
+
transformers==4.25.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|