(checkpoint)
| 501 | |
| 502 | # <original>.input_blocks.0 -> <diffusers>.conv_in |
| 503 | def unet_conv_in(checkpoint): |
| 504 | diffusers_checkpoint = {} |
| 505 | |
| 506 | diffusers_checkpoint.update( |
| 507 | { |
| 508 | "conv_in.weight": checkpoint["input_blocks.0.0.weight"], |
| 509 | "conv_in.bias": checkpoint["input_blocks.0.0.bias"], |
| 510 | } |
| 511 | ) |
| 512 | |
| 513 | return diffusers_checkpoint |
| 514 | |
| 515 | |
| 516 | def unet_add_embedding(checkpoint): |
no test coverage detected