jihuayang3 commited on
Commit
42fe155
·
verified ·
1 Parent(s): c4f3eea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -27,6 +27,8 @@ model_file = hf_hub_download(
27
  filename="diffusion_pytorch_model_promax.safetensors",
28
  )
29
  state_dict = load_state_dict(model_file)
 
 
30
  model = ControlNetModel_Union._load_pretrained_model(
31
  controlnet_model,
32
  state_dict,
 
27
  filename="diffusion_pytorch_model_promax.safetensors",
28
  )
29
  state_dict = load_state_dict(model_file)
30
+ # 获取 state_dict 中的所有键作为 loaded_keys
31
+ loaded_keys = list(state_dict.keys())
32
  model = ControlNetModel_Union._load_pretrained_model(
33
  controlnet_model,
34
  state_dict,