barreloflube commited on
Commit
a5ebb54
·
1 Parent(s): 12289cb

Refactor model loading in load_models.py to use ControlNetModel instead of FluxControlNetModel

Browse files
Files changed (1) hide show
  1. tabs/images/load_models.py +1 -1
tabs/images/load_models.py CHANGED
@@ -44,7 +44,7 @@ def init_sys():
44
  torch_dtype=controlnet['compute_type']
45
  ).to(device)])
46
  elif controlnet['loader'] == 'sdxl':
47
- controlnet['controlnet'] = FluxControlNetModel.from_pretrained(
48
  controlnet['repo_id'],
49
  torch_dtype=controlnet['compute_type']
50
  ).to(device)
 
44
  torch_dtype=controlnet['compute_type']
45
  ).to(device)])
46
  elif controlnet['loader'] == 'sdxl':
47
+ controlnet['controlnet'] = ControlNetModel.from_pretrained(
48
  controlnet['repo_id'],
49
  torch_dtype=controlnet['compute_type']
50
  ).to(device)