MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / __init__

Method __init__

sat/vae_modules/autoencoder.py:527–539  ·  view source on GitHub ↗
(
        self,
        ckpt_path: Union[None, str] = None,
        ignore_keys: Union[Tuple, list] = (),
        image_video_weights=[1, 1],
        only_train_decoder=False,
        context_parallel_size=0,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

525
526class VideoAutoencodingEngine(AutoencodingEngine):
527 def __init__(
528 self,
529 ckpt_path: Union[None, str] = None,
530 ignore_keys: Union[Tuple, list] = (),
531 image_video_weights=[1, 1],
532 only_train_decoder=False,
533 context_parallel_size=0,
534 **kwargs,
535 ):
536 super().__init__(**kwargs)
537 self.context_parallel_size = context_parallel_size
538 if ckpt_path is not None:
539 self.init_from_ckpt(ckpt_path, ignore_keys=ignore_keys)
540
541 def log_videos(self, batch: dict, additional_log_kwargs: Optional[Dict] = None, **kwargs) -> dict:
542 return self.log_images(batch, additional_log_kwargs, **kwargs)

Callers

nothing calls this directly

Calls 2

init_from_ckptMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected