(checkpoint)
| 561 | |
| 562 | # <original>.out.2 -> <diffusers>.conv_out |
| 563 | def unet_conv_out(checkpoint): |
| 564 | diffusers_checkpoint = {} |
| 565 | |
| 566 | diffusers_checkpoint.update( |
| 567 | { |
| 568 | "conv_out.weight": checkpoint["out.2.weight"], |
| 569 | "conv_out.bias": checkpoint["out.2.bias"], |
| 570 | } |
| 571 | ) |
| 572 | |
| 573 | return diffusers_checkpoint |
| 574 | |
| 575 | |
| 576 | # <original>.input_blocks -> <diffusers>.down_blocks |
no test coverage detected