freealise commited on
Commit
75c5633
·
verified ·
1 Parent(s): f250d98

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -712,7 +712,7 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
712
  with gr.Group():
713
  with gr.Accordion(label="Locations", open=False):
714
  output_frame.select(fn=select_frame, inputs=[output_mask], outputs=[output_mask, selected])
715
- coords = gr.File(elem_id="coords", value="example_coords.json", label="Alignment", interactive=False)
716
 
717
  model3d = gr.HTML(value="""
718
  <a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
@@ -783,6 +783,13 @@ with gr.Blocks(css=css, js=js, head=head) as demo:
783
 
784
  submit.click(on_submit, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
785
 
 
 
 
 
 
 
 
786
  example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
787
  examples = gr.Examples(examples=example_files, fn=on_submit, cache_examples=True, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
788
 
 
712
  with gr.Group():
713
  with gr.Accordion(label="Locations", open=False):
714
  output_frame.select(fn=select_frame, inputs=[output_mask], outputs=[output_mask, selected])
715
+ coords = gr.File(elem_id="coords", label="Alignment", interactive=False)
716
 
717
  model3d = gr.HTML(value="""
718
  <a style='color:white;font-weight:bold' href='https://freeali.se/freealise/transparent_video/' target='_blank'>Open renderer in new tab and upload your video there</a>
 
783
 
784
  submit.click(on_submit, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
785
 
786
+ example_coords = """[
787
+ {"lat": 50.07379596793083, "lng": 14.437146122950555, "heading": 152.70303, "pitch": 2.607833999999997},
788
+ {"lat": 50.073799567020004, "lng": 14.437146774240507, "heading": 151.12973, "pitch": 2.8672300000000064},
789
+ {"lat": 50.07377647505558, "lng": 14.437161000659017, "heading": 151.41025, "pitch": 3.4802200000000028},
790
+ {"lat": 50.07379496839027, "lng": 14.437148958238538, "heading": 151.93391, "pitch": 2.843050000000005},
791
+ {"lat": 50.073823157821664, "lng": 14.437124189538856, "heading": 152.95769, "pitch": 4.233024999999998}
792
+ ]"""
793
  example_files = [["./examples/streetview.mp4", "vits", blurin, 1, 32, example_coords]]
794
  examples = gr.Examples(examples=example_files, fn=on_submit, cache_examples=True, inputs=[input_video, model_type, blur_in, boffset, bsize, coords], outputs=[processed_video, processed_zip, output_frame, output_mask, output_depth, coords])
795