BBrother commited on
Commit
042f24d
1 Parent(s): 1bc07a6

Update BuShu.py

Browse files
Files changed (1) hide show
  1. BuShu.py +0 -12
BuShu.py CHANGED
@@ -114,10 +114,6 @@ cleaned_code = '\n'.join(line.strip() for line in code.splitlines() if line.stri
114
  # 执行干净的代码
115
  exec(cleaned_code)
116
 
117
-
118
- # 安装插件
119
- print ("开始安装插件...")
120
-
121
  # 使用subprocess运行git clone命令
122
  def run_git_clone(repo_url, destination):
123
  subprocess.run(["git", "clone", repo_url, destination])
@@ -173,10 +169,6 @@ def create_directory(directory):
173
  subprocess.run(mkdir_command, check=True)
174
 
175
 
176
- # 安装可选模块
177
- print ("安装可选模块...")
178
-
179
-
180
  # CN
181
  if CONTROLNET:
182
  os.makedirs('/etc/main/extensions/control/models', exist_ok=True)
@@ -230,7 +222,6 @@ if T2I:
230
 
231
  """# 模型下载"""
232
 
233
- print ("开始下载Checkpoints/safetensors等大模型")
234
  # Checkpoints/safetensors等大模型下载
235
  # 下载任务1
236
  CS_destination_folder1 = f"/etc/main/models/Stable-diffusion"
@@ -365,7 +356,6 @@ if CS_download13:
365
 
366
  #Lora模型下载
367
 
368
- print("开始下载Lora模型")
369
  # Lora任务1
370
  Lora_destination_folder1 = "/etc/main/models/Lora"
371
  Lora_target1 = os.path.join(Lora_destination_folder1, Lora_filename1)
@@ -423,7 +413,6 @@ if Lora_download6:
423
 
424
  # VAE下载
425
 
426
- print ("开始下载VAE模型")
427
  # VAE任务1
428
  VAE_destination_folder1 = "/etc/main/models/VAE"
429
  VAE_target1 = f"{VAE_destination_folder1}/{VAE_filename1}"
@@ -544,7 +533,6 @@ if VAE_download13:
544
 
545
  # embeddings模型下载
546
 
547
- print ("开始下载embeddings模型")
548
  # 下载任务1
549
  embeddings_destination_folder1 = "/etc/main/embeddings"
550
  embeddings_target1 = f'{embeddings_destination_folder1}/{embeddings_filename1}'
 
114
  # 执行干净的代码
115
  exec(cleaned_code)
116
 
 
 
 
 
117
  # 使用subprocess运行git clone命令
118
  def run_git_clone(repo_url, destination):
119
  subprocess.run(["git", "clone", repo_url, destination])
 
169
  subprocess.run(mkdir_command, check=True)
170
 
171
 
 
 
 
 
172
  # CN
173
  if CONTROLNET:
174
  os.makedirs('/etc/main/extensions/control/models', exist_ok=True)
 
222
 
223
  """# 模型下载"""
224
 
 
225
  # Checkpoints/safetensors等大模型下载
226
  # 下载任务1
227
  CS_destination_folder1 = f"/etc/main/models/Stable-diffusion"
 
356
 
357
  #Lora模型下载
358
 
 
359
  # Lora任务1
360
  Lora_destination_folder1 = "/etc/main/models/Lora"
361
  Lora_target1 = os.path.join(Lora_destination_folder1, Lora_filename1)
 
413
 
414
  # VAE下载
415
 
 
416
  # VAE任务1
417
  VAE_destination_folder1 = "/etc/main/models/VAE"
418
  VAE_target1 = f"{VAE_destination_folder1}/{VAE_filename1}"
 
533
 
534
  # embeddings模型下载
535
 
 
536
  # 下载任务1
537
  embeddings_destination_folder1 = "/etc/main/embeddings"
538
  embeddings_target1 = f'{embeddings_destination_folder1}/{embeddings_filename1}'