QuintW commited on
Commit
e32a21b
1 Parent(s): d3c027d

start controlnet in app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -29,6 +29,12 @@ if not os.path.exists(controlnet_repo_path):
29
  os.chdir(initial_repo_path)
30
 
31
  os.system(f"git lfs install")
 
 
 
 
 
 
32
  # os.system(f"git reset --hard")
33
  # os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' modules/ui.py")
34
  # os.system(f"sed -i -e '253,258d' modules/ui_settings.py")
 
29
  os.chdir(initial_repo_path)
30
 
31
  os.system(f"git lfs install")
32
+
33
+ # Add the Controlnet setup
34
+ controlnet_script_path = os.path.join(controlnet_repo_path, "webui-user.bat")
35
+ os.system(f"call {controlnet_script_path} --opt-sdp-no-mem-attention --no-half-vae --opt-channelslast")
36
+
37
+
38
  # os.system(f"git reset --hard")
39
  # os.system(f"sed -i -e '/demo:/r /home/user/app/header_patch_v2.py' modules/ui.py")
40
  # os.system(f"sed -i -e '253,258d' modules/ui_settings.py")