(original_state_dict)
| 239 | |
| 240 | |
| 241 | def is_vae_in_checkpoint(original_state_dict): |
| 242 | return ("first_stage_model.decoder.conv_in.weight" in original_state_dict) and ( |
| 243 | "first_stage_model.encoder.conv_in.weight" in original_state_dict |
| 244 | ) |
| 245 | |
| 246 | |
| 247 | def get_attn2_layers(state_dict): |
no outgoing calls
no test coverage detected
searching dependent graphs…