From 99b71ec52fedc560eef8e10161c6b71d859b7024 Mon Sep 17 00:00:00 2001 From: Jaykumaran R <60032500+Jaykumaran@users.noreply.github.com> Date: Mon, 31 Mar 2025 10:23:07 +0530 Subject: [PATCH] Update instantsplat_gradio.py for n_views - Was facing issues when specifying n_views with len(images), other than [3, 6,9, 12]. - Now, its users discretion to enter the n_views of their choice. - [TODO] If required can have a default value depending on the len(input_images). --- instantsplat_gradio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instantsplat_gradio.py b/instantsplat_gradio.py index 53931b6..c86f272 100644 --- a/instantsplat_gradio.py +++ b/instantsplat_gradio.py @@ -81,7 +81,7 @@ def process_scene(input_dir, output_dir, n_views, iterations, progress=gr.Progre with gr.Column(): input_dir = gr.Textbox(label="Input Directory") output_dir = gr.Textbox(label="Output Directory") - n_views = gr.Dropdown(choices=[3, 6, 12], value=3, label="Number of Views") + n_views = gr.Textbox(label="Number of Images or Views") iterations = gr.Slider(minimum=1000, maximum=30000, value=1000, step=1000, label="Training Iterations") process_btn = gr.Button("Process Scene") with gr.Column(): @@ -90,4 +90,4 @@ def process_scene(input_dir, output_dir, n_views, iterations, progress=gr.Progre process_btn.click(fn=process_scene, inputs=[input_dir, output_dir, n_views, iterations], outputs=output_video) if __name__ == "__main__": - demo.launch() \ No newline at end of file + demo.launch()