make_ae_reconstruction_movie_wrapper¶
- behavenet.plotting.ae_utils.make_ae_reconstruction_movie_wrapper(hparams, save_file, trial=None, sess_idx=0, version='best', include_linear=False, max_frames=400, frame_rate=15)[source]¶
Produce movie with original video, reconstructed video, and residual.
This is a high-level function that loads the model described in the hparams dictionary and produces the necessary predicted video frames.
- Parameters:
hparams (
dict) – needs to contain enough information to specify an autoencodersave_file (
str) – full save file (path and filename)trial (
int, optional) – ifNoneType, use first test trialsess_idx (
int, optional) – session index into data generatorversion (
strorint, optional) – test tube model versioninclude_linear (
bool, optional) – include reconstruction from corresponding linear ae (i.e. ame number of latents)max_frames (
int, optional) – maximum number of frames to animate from a trialframe_rate (
float, optional) – frame rate of saved movie