.gitigore update, add *.npy

This commit is contained in:
memoryunreal
2023-04-15 18:26:22 +00:00
parent f66712932a
commit 321b0a43dd
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@@ -6,3 +6,4 @@ docs/
debug_images/ debug_images/
*.png *.png
*.jpg *.jpg
*.npy

4
app.py
View File

@@ -116,7 +116,7 @@ def get_frames_from_video(video_input, play_state):
model.samcontroler.sam_controler.set_image(nearest_frame) model.samcontroler.sam_controler.set_image(nearest_frame)
return frames_split, nearest_frame, nearest_frame return frames_split, nearest_frame, nearest_frame
def generate_video_from_frames(frames, output_path, fps=10): def generate_video_from_frames(frames, output_path, fps=30):
""" """
Generates a video from a list of frames. Generates a video from a list of frames.
@@ -213,7 +213,7 @@ with gr.Blocks() as iface:
video_input = gr.Video().style(height=720) video_input = gr.Video().style(height=720)
# listen to the user action for play and pause input video # listen to the user action for play and pause input video
video_input.play(fn=play_video, inputs=play_state, outputs=play_state) video_input.play(fn=play_video, inputs=play_state, outputs=play_state, scroll_to_output=True, show_progress=True)
video_input.pause(fn=pause_video, inputs=play_state, outputs=play_state) video_input.pause(fn=pause_video, inputs=play_state, outputs=play_state)