def GAN_inference(target_name, run_name, target_runname, already_recorded): record_and_makevideo(target_name, run_name, target_runname, already_recorded) video = Video.from_file(os.path.join(dir_name, '../../results/', run_name, "output.mp4"), play=True) return video
def from_file(cls, filename, **kwargs): """Create a `VideoStream` from a local file. Parameters ---------- filename: str The location of a file to read into the value from disk. **kwargs Extra keyword arguments for `VideoStream` """ video = Video.from_file(filename, autoplay=False, controls=False) return cls(video=video, **kwargs)