Spaces:
Running
on
Zero
Running
on
Zero
kxhit
commited on
Commit
•
ba76f8a
1
Parent(s):
6cc584b
cuda reinit?
Browse files
app.py
CHANGED
@@ -114,13 +114,13 @@ pipeline = pipeline.to(device)
|
|
114 |
pipeline.enable_vae_slicing()
|
115 |
# pipeline.enable_xformers_memory_efficient_attention()
|
116 |
|
117 |
-
|
118 |
|
119 |
|
120 |
@spaces.GPU(duration=120)
|
121 |
def run_eschernet(eschernet_input_dict, sample_steps, sample_seed, nvs_num, nvs_mode):
|
122 |
# set the random seed
|
123 |
-
generator
|
124 |
T_out = nvs_num
|
125 |
T_in = len(eschernet_input_dict['imgs'])
|
126 |
####### output pose
|
@@ -577,7 +577,7 @@ _CITE_ = r"""
|
|
577 |
|
578 |
with gr.Blocks() as demo:
|
579 |
gr.Markdown(_HEADER_)
|
580 |
-
mv_images = gr.State()
|
581 |
scene = gr.State(None)
|
582 |
eschernet_input = gr.State(None)
|
583 |
with gr.Row(variant="panel"):
|
@@ -585,9 +585,6 @@ with gr.Blocks() as demo:
|
|
585 |
with gr.Column():
|
586 |
with gr.Row():
|
587 |
input_image = gr.File(file_count="multiple")
|
588 |
-
# with gr.Row():
|
589 |
-
# # set the size of the window
|
590 |
-
# preview_image = gr.Gallery(label='Input Views', rows=1,
|
591 |
with gr.Row():
|
592 |
run_dust3r = gr.Button("Get Pose!", elem_id="dust3r")
|
593 |
with gr.Row():
|
@@ -746,7 +743,7 @@ with gr.Blocks() as demo:
|
|
746 |
submit.click(fn=run_eschernet,
|
747 |
inputs=[eschernet_input, sample_steps, sample_seed,
|
748 |
nvs_num, nvs_mode],
|
749 |
-
outputs=[
|
750 |
|
751 |
|
752 |
|
|
|
114 |
pipeline.enable_vae_slicing()
|
115 |
# pipeline.enable_xformers_memory_efficient_attention()
|
116 |
|
117 |
+
generator = torch.Generator(device=device).manual_seed(0)
|
118 |
|
119 |
|
120 |
@spaces.GPU(duration=120)
|
121 |
def run_eschernet(eschernet_input_dict, sample_steps, sample_seed, nvs_num, nvs_mode):
|
122 |
# set the random seed
|
123 |
+
generator.manual_seed(sample_seed)
|
124 |
T_out = nvs_num
|
125 |
T_in = len(eschernet_input_dict['imgs'])
|
126 |
####### output pose
|
|
|
577 |
|
578 |
with gr.Blocks() as demo:
|
579 |
gr.Markdown(_HEADER_)
|
580 |
+
# mv_images = gr.State()
|
581 |
scene = gr.State(None)
|
582 |
eschernet_input = gr.State(None)
|
583 |
with gr.Row(variant="panel"):
|
|
|
585 |
with gr.Column():
|
586 |
with gr.Row():
|
587 |
input_image = gr.File(file_count="multiple")
|
|
|
|
|
|
|
588 |
with gr.Row():
|
589 |
run_dust3r = gr.Button("Get Pose!", elem_id="dust3r")
|
590 |
with gr.Row():
|
|
|
743 |
submit.click(fn=run_eschernet,
|
744 |
inputs=[eschernet_input, sample_steps, sample_seed,
|
745 |
nvs_num, nvs_mode],
|
746 |
+
outputs=[output_video])
|
747 |
|
748 |
|
749 |
|