Spaces:
Runtime error
Runtime error
Set a limitatin to the input video length
Browse filesFiles changed (2)
- app_pix2pix_video.py+1-2
- model.py+1-1
13 unmodified lines1415161718192028 unmodified lines4950515253545513 unmodified lineswith gr.Row():gr.Markdown('## Video Instruct Pix2Pix')with gr.Row():# gr.Markdown('### Description: Our current preview release supports arbitrary length videos, and for performance purposes the video is scaled down before processing. For faster inference you can choose lower output frames per seconds from Advanced Options.')gr.HTML("""<div style="text-align: left; max-width: 1200px; margin: 20px auto;">28 unmodified linesstep=1)end_t = gr.Slider(label='End time in seconds (-1 corresponds to uploaded video duration)',minimum=0,maximum=10,value=-1,step=1)out_fps = gr.Slider(label='Output video fps (-1 corresponds to uploaded video fps)',13 unmodified lines14151617181928 unmodified lines4849505152535413 unmodified lineswith gr.Row():gr.Markdown('## Video Instruct Pix2Pix')with gr.Row():gr.HTML("""<div style="text-align: left; max-width: 1200px; margin: 20px auto;">28 unmodified linesstep=1)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)',
238 unmodified lines239240241242243244245238 unmodified linesreturn 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 = 10if 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)238 unmodified lines239240241242243244245238 unmodified linesreturn 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 = 15if 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