Spaces:
Runtime error
Runtime error
Description
Browse filesFiles changed (2)
- app_pix2pix_video.py+1-2
- model.py+1-1
17 unmodified lines181920212122232423 unmodified lines4849505151525317 unmodified lines """ <div style="text-align: left; auto;"> <h2 style="font-weight: 450; font-size: 1rem; margin: 0rem"> Description: For performance purposes, our current preview release supports any input videos but caps output videos to no longer than 15 seconds and the input video is scaled down before processing. For faster inference you can choose lower output frames per seconds from Advanced Options. Description: For performance purposes, our current preview release supports any input videos but caps output videos to no longer than 15 seconds and the input videos are scaled down before processing. For faster inference you can choose lower output frames per seconds from Advanced Options. </h3> </div> """)23 unmodified lines end_t = gr.Slider(label='End time in seconds (-1 corresponds to uploaded video duration)', minimum=0, maximum=15, value=-1, step=1) out_fps = gr.Slider(label='Output video fps (-1 corresponds to uploaded video fps)', minimum=1,238 unmodified lines239240241242242243244245238 unmodified lines return utils.create_gif(result, fps)
def process_pix2pix(self, video, prompt, resolution=512, seed=0, start_t=0, end_t=-1, out_fps=-1): end_t = 15 end_t = start_t+15 if self.model_type != ModelType.Pix2Pix_Video: self.set_model(ModelType.Pix2Pix_Video, model_id="timbrooks/instruct-pix2pix") self.pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(self.pipe.scheduler.config)app_pix2pix_video.py+1-2
model.py+1-1