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

Function main

diffusers/scripts/convert_blipdiffusion_to_diffusers.py:333–335  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

331
332
333def main(args):
334 model, _, _ = load_model_and_preprocess("blip_diffusion", "base", device="cpu", is_eval=True)
335 save_blip_diffusion_model(model.state_dict(), args)
336
337
338if __name__ == "__main__":

Calls 2

state_dictMethod · 0.45

Tested by

no test coverage detected