John6666 commited on
Commit
c9808da
1 Parent(s): 3b183e7

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -41,7 +41,7 @@ controlnet = None
41
  last_model = models[0]
42
  last_cn_on = False
43
  controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype).to(device)
44
- controlnet = FluxMultiControlNetModel([controlnet_union])#.to(device)
45
 
46
 
47
  MAX_SEED = 2**32-1
@@ -102,7 +102,7 @@ def preload_base_model(repo_id: str, cn_on: bool, progress=gr.Progress(track_tqd
102
  clear_cache()
103
  #controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype)
104
  #controlnet = FluxMultiControlNetModel([controlnet_union])
105
- pipe = FluxControlNetPipeline.from_pretrained(repo_id, controlnet=controlnet, torch_dtype=dtype)
106
  print(f"Model Chached: {repo_id} / ControlNet Cahced: {controlnet_model_union_repo}")
107
  else:
108
  print(f"Caching Model: {repo_id}")
 
41
  last_model = models[0]
42
  last_cn_on = False
43
  controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype).to(device)
44
+ controlnet = FluxMultiControlNetModel([controlnet_union]).to(device)
45
 
46
 
47
  MAX_SEED = 2**32-1
 
102
  clear_cache()
103
  #controlnet_union = FluxControlNetModel.from_pretrained(controlnet_model_union_repo, torch_dtype=dtype)
104
  #controlnet = FluxMultiControlNetModel([controlnet_union])
105
+ pipe = FluxControlNetPipeline.from_pretrained(repo_id, controlnet=None, torch_dtype=dtype)
106
  print(f"Model Chached: {repo_id} / ControlNet Cahced: {controlnet_model_union_repo}")
107
  else:
108
  print(f"Caching Model: {repo_id}")