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