mirror of
https://github.com/huggingface/diffusers.git
synced 2026-01-29 07:22:12 +03:00
remove prints.
This commit is contained in:
@@ -136,7 +136,6 @@ def log_validation(vae, unet, args, accelerator, weight_dtype, step):
|
||||
diffusers_state_dict = {
|
||||
f"{module_name.replace('base_model.model', pipeline.unet_name)}.{module_name}": param for module_name, param in diffusers_state_dict.items()
|
||||
}
|
||||
print(list(diffusers_state_dict.keys()))
|
||||
pipeline.load_lora_weights(diffusers_state_dict)
|
||||
pipeline.fuse_lora()
|
||||
|
||||
|
||||
@@ -137,7 +137,6 @@ def convert_state_dict(state_dict, mapping):
|
||||
k = k.replace(pattern, new_pattern)
|
||||
break
|
||||
converted_state_dict[k] = v
|
||||
print("From state_dict utils", any("lora_A" in k for k in converted_state_dict))
|
||||
return converted_state_dict
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user