Problems with duplication
Do I also need to edit the gradio_app.py file and match the changes I made in run_diffueraser.py?
Inside gradio_app.py is this:
Helper function to trim videos
def trim_video(input_path, output_path, max_duration=5): clip = VideoFileClip(input_path) trimmed_clip = clip.subclip(0, min(max_duration, clip.duration)) trimmed_clip.write_videofile(output_path, codec=“libx264”, audio_codec=“aac”) clip.close() trimmed_clip.close()
There you can see the value 5, which seems to me to be the duration of the output video.
And below you can see this:
@spaces.GPU(duration=100) def infer(input_video, input_mask):
Setup paths and parameters
save_path = “results” mask_dilation_iter = 8 max_img_size = 960 ref_stride = 10 neighbor_length = 10
subvideo_length = 50
These values are also in run_diffueraser.py.
Perhaps both files need to be edited and set to the same.
I don’t know, it’s just something that occurred to me.
THANKS
Discussion in the ATmosphere