MCPcopy
hub / github.com/fudan-generative-vision/champ / get_motion_module

Function get_motion_module

models/motion_module.py:34–41  ·  view source on GitHub ↗
(in_channels, motion_module_type: str, motion_module_kwargs: dict)

Source from the content-addressed store, hash-verified

32
33
34def get_motion_module(in_channels, motion_module_type: str, motion_module_kwargs: dict):
35 if motion_module_type == "Vanilla":
36 return VanillaTemporalModule(
37 in_channels=in_channels,
38 **motion_module_kwargs,
39 )
40 else:
41 raise ValueError
42
43
44class VanillaTemporalModule(nn.Module):

Callers 5

__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85
__init__Method · 0.85

Calls 1

Tested by

no test coverage detected