MCPcopy Create free account
hub / github.com/UVA-Computer-Vision-Lab/FrameINO / unwrap_model

Function unwrap_model

train_code/train_wan_motion.py:810–813  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

808
809
810 def unwrap_model(model):
811 model = accelerator.unwrap_model(model)
812 model = model._orig_mod if is_compiled_module(model) else model
813 return model
814
815
816 # create custom saving & loading hooks so that `accelerator.save_state(...)` serializes in a nice format

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected