MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / unet_conv_in

Function unet_conv_in

diffusers/scripts/convert_kandinsky_to_diffusers.py:503–513  ·  view source on GitHub ↗
(checkpoint)

Source from the content-addressed store, hash-verified

501
502# <original>.input_blocks.0 -> <diffusers>.conv_in
503def 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
516def unet_add_embedding(checkpoint):

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected