Drexubery commited on
Commit
30b2c1f
1 Parent(s): d1813ed
Files changed (2) hide show
  1. __pycache__/viewcrafter.cpython-39.pyc +0 -0
  2. app.py +5 -6
__pycache__/viewcrafter.cpython-39.pyc CHANGED
Binary files a/__pycache__/viewcrafter.cpython-39.pyc and b/__pycache__/viewcrafter.cpython-39.pyc differ
 
app.py CHANGED
@@ -81,7 +81,7 @@ def show_traj(mode):
81
  elif mode == 'Customize':
82
  return gr.update(value='0 0; 0 0; 0 0',visible=True), gr.update(visible=True)
83
  elif mode == 'Reset':
84
- return gr.update(value='0 0; 0 0; 0 0',visible=False), gr.update(visible=False), gr.update(visible=False)
85
 
86
  def viewcrafter_demo(opts):
87
  css = """#input_img {max-width: 1024px !important} #output_vid {max-width: 1024px; max-height:576px} #random_button {max-width: 100px !important}"""
@@ -120,20 +120,19 @@ def viewcrafter_demo(opts):
120
  with gr.Row():
121
  left = gr.Button(value = "Left")
122
  right = gr.Button(value = "Right")
123
- with gr.Row():
124
  up = gr.Button(value = "Up")
125
- down = gr.Button(value = "Down")
126
- with gr.Row():
127
  zin = gr.Button(value = "Zoom in")
128
  zout = gr.Button(value = "Zoom out")
129
- with gr.Row():
130
  custom = gr.Button(value = "Customize")
131
  reset = gr.Button(value = "Reset")
132
 
133
  with gr.Column():
134
  with gr.Row():
135
  with gr.Column():
136
- i2v_pose = gr.Text(value = '0 0; 0 0; 0 0', label='poses(d_phi sequence; d_theta sequence; d_r sequence)',visible=False)
137
  with gr.Column(visible=False) as i2v_egs:
138
  gr.Markdown("<div align='left' style='font-size:18px;color: #000000'>Please refer to the <a href='https://github.com/Drexubery/ViewCrafter/blob/main/docs/gradio_tutorial.md' target='_blank'>tutorial</a> for customizing camera trajectory.</div>")
139
  gr.Examples(examples=traj_examples,
 
81
  elif mode == 'Customize':
82
  return gr.update(value='0 0; 0 0; 0 0',visible=True), gr.update(visible=True)
83
  elif mode == 'Reset':
84
+ return gr.update(value='0 0; 0 0; 0 0',visible=False), gr.update(visible=False)
85
 
86
  def viewcrafter_demo(opts):
87
  css = """#input_img {max-width: 1024px !important} #output_vid {max-width: 1024px; max-height:576px} #random_button {max-width: 100px !important}"""
 
120
  with gr.Row():
121
  left = gr.Button(value = "Left")
122
  right = gr.Button(value = "Right")
 
123
  up = gr.Button(value = "Up")
124
+ with gr.Row():
125
+ down = gr.Button(value = "Down")
126
  zin = gr.Button(value = "Zoom in")
127
  zout = gr.Button(value = "Zoom out")
128
+ with gr.Row():
129
  custom = gr.Button(value = "Customize")
130
  reset = gr.Button(value = "Reset")
131
 
132
  with gr.Column():
133
  with gr.Row():
134
  with gr.Column():
135
+ i2v_pose = gr.Text(value = '0 0; 0 0; 0 0', label="Camera trajectory (d_phi sequence; d_theta sequence; d_r sequence)",visible=False)
136
  with gr.Column(visible=False) as i2v_egs:
137
  gr.Markdown("<div align='left' style='font-size:18px;color: #000000'>Please refer to the <a href='https://github.com/Drexubery/ViewCrafter/blob/main/docs/gradio_tutorial.md' target='_blank'>tutorial</a> for customizing camera trajectory.</div>")
138
  gr.Examples(examples=traj_examples,