Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ extensions = [
|
|
29 |
'https://gitcode.com/zanllp/sd-webui-infinite-image-browsing',
|
30 |
'https://gitcode.com/dtlnor/stable-diffusion-webui-localization-zh_CN', # 汉化
|
31 |
'https://gitcode.com/DominikDoom/a1111-sd-webui-tagcomplete', # 提示词提示器
|
32 |
-
'https://
|
33 |
"https://gitcode.net/overbill1683/stable-diffusion-webui-localization-zh_Hans",
|
34 |
"https://gitcode.net/ranting8323/sd-webui-inpaint-anything",
|
35 |
"https://openi.pcl.ac.cn/2575044704/sd-extension-system-info",
|
@@ -84,15 +84,17 @@ embedding_models = [
|
|
84 |
|
85 |
hypernetwork_models = []
|
86 |
|
87 |
-
esrgan_models = [
|
|
|
|
|
|
|
88 |
|
89 |
custom_commands = [
|
90 |
-
f'rm -rf {install_path}/{rename_repo}/config.json',
|
91 |
-
f'rm -rf {install_path}/{rename_repo}/
|
92 |
-
f
|
93 |
-
f"{download_tool} https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-
|
94 |
-
f"{download_tool} https://hf-mirror.com/datasets/
|
95 |
-
f"{download_tool} https://hf-mirror.com/datasets/Mira-LeafTown/sd-webui-openxlab/raw/main/ui_settings.py -d {install_path}/{rename_repo}/modules -o ui_settings.py --allow-overwrite=true",
|
96 |
]
|
97 |
|
98 |
def redirect_github(url):
|
@@ -117,24 +119,23 @@ def monitor_gpu():
|
|
117 |
nvidia_smi.nvmlInit()
|
118 |
|
119 |
# 初始化WandB项目
|
120 |
-
wandb.init(project="gpu-temperature-monitor")
|
121 |
-
while True:
|
122 |
-
try:
|
123 |
|
124 |
# 获取 GPU 温度
|
125 |
-
gpu_temperature = nvidia_smi.nvmlDevice #获取Temperature(handle, nvidia_smi.NVML_TEMPERATURE_GPU)
|
126 |
|
127 |
# 获取 GPU 使用率
|
128 |
-
|
129 |
-
gpu_usage = utilization.gpu
|
130 |
|
131 |
# 使用 WandB 记录 GPU 温度和使用率
|
132 |
-
wandb.log({"GPU 温度": gpu_temperature, "GPU 使用率": gpu_usage})
|
133 |
|
134 |
-
except Exception as e:
|
135 |
-
print(f"Error: {e}")
|
136 |
|
137 |
-
time.sleep(60)
|
138 |
|
139 |
|
140 |
def download_extensions(extensions):
|
|
|
29 |
'https://gitcode.com/zanllp/sd-webui-infinite-image-browsing',
|
30 |
'https://gitcode.com/dtlnor/stable-diffusion-webui-localization-zh_CN', # 汉化
|
31 |
'https://gitcode.com/DominikDoom/a1111-sd-webui-tagcomplete', # 提示词提示器
|
32 |
+
'https://kkgithub.com/Mikubill/sd-webui-controlnet', # ControlNet
|
33 |
"https://gitcode.net/overbill1683/stable-diffusion-webui-localization-zh_Hans",
|
34 |
"https://gitcode.net/ranting8323/sd-webui-inpaint-anything",
|
35 |
"https://openi.pcl.ac.cn/2575044704/sd-extension-system-info",
|
|
|
84 |
|
85 |
hypernetwork_models = []
|
86 |
|
87 |
+
esrgan_models = [
|
88 |
+
'https://hf-mirror.com/schwgHao/RealESRGAN_x4plus/blob/main/RealESRGAN_x4plus.pth',
|
89 |
+
'https://hf-mirror.com/ximso/RealESRGAN_x4plus_anime_6B/resolve/main/RealESRGAN_x4plus_anime_6B.pth',
|
90 |
+
]
|
91 |
|
92 |
custom_commands = [
|
93 |
+
#f'rm -rf {install_path}/{rename_repo}/ui-config.json',
|
94 |
+
#f'rm -rf {install_path}/{rename_repo}/modules/ui_settings.py',
|
95 |
+
#f"{download_tool} https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/config-pub.json -d {install_path}/{rename_repo} -o config.json --allow-overwrite=true",
|
96 |
+
#f"{download_tool} https://hf-mirror.com/datasets/ACCA225/openxlab/resolve/main/ui-config-pub3.json -d {install_path}/{rename_repo} -o ui-config.json --allow-overwrite=true",
|
97 |
+
#f"{download_tool} https://hf-mirror.com/datasets/Mira-LeafTown/sd-webui-openxlab/raw/main/ui_settings.py -d {install_path}/{rename_repo}/modules -o ui_settings.py --allow-overwrite=true",
|
|
|
98 |
]
|
99 |
|
100 |
def redirect_github(url):
|
|
|
119 |
nvidia_smi.nvmlInit()
|
120 |
|
121 |
# 初始化WandB项目
|
122 |
+
#wandb.init(project="gpu-temperature-monitor")
|
123 |
+
#while True:
|
124 |
+
#try:
|
125 |
|
126 |
# 获取 GPU 温度
|
127 |
+
#gpu_temperature = nvidia_smi.nvmlDevice #获取Temperature(handle, nvidia_smi.NVML_TEMPERATURE_GPU)
|
128 |
|
129 |
# 获取 GPU 使用率
|
130 |
+
#gpu_usage = utilization.gpu
|
|
|
131 |
|
132 |
# 使用 WandB 记录 GPU 温度和使用率
|
133 |
+
#wandb.log({"GPU 温度": gpu_temperature, "GPU 使用率": gpu_usage})
|
134 |
|
135 |
+
#except Exception as e:
|
136 |
+
#print(f"Error: {e}")
|
137 |
|
138 |
+
#time.sleep(60)
|
139 |
|
140 |
|
141 |
def download_extensions(extensions):
|