Spaces:
Runtime error
Runtime error
set maximum length for input videos
Browse filesFiles changed (2)
- app_pix2pix_video.py+10-1
- model.py+1
13 unmodified lines1415161718192013 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.')with gr.Row():with gr.Column():13 unmodified lines1415161718192021222324252627282913 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;"><h3 style="font-weight: 900; font-size: 3rem; margin: 0rem">Description: Our current preview release supports videos no longer than 10 second.For performance purposes the video is scaled down before processing. For faster inference you can choose lower output frames per seconds from Advanced Options.</h3></div>""")with gr.Row():with gr.Column():
238 unmodified lines239240241242243244238 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):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)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)
app_pix2pix_video.py+10-1
model.py+1