liuyuan-pal commited on
Commit
9ec359c
·
1 Parent(s): 2ff1869

update guide

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,13 +24,13 @@ Given a single-view image, SyncDreamer is able to generate multiview-consistent
24
 
25
  Procedure: </br>
26
  **Step 1**. Upload an image or select an example. ==> The foreground is masked out by SAM and we crop it as inputs. </br>
27
- **Step 2**. Select "Elevation angle "and click "Run generation". ==> Generate multiview images. The **Elevation angle** is the elevation of input image. (This costs about 30s.) </br>
28
  You may adjust the **Crop size** and **Elevation angle** to get a better result! <br>
29
  To reconstruct a NeRF or a 3D mesh from the generated images, please refer to our [github repository](https://github.com/liuyuan-pal/SyncDreamer).
30
  '''
31
  _USER_GUIDE0 = "Step1: Please upload an image in the block above (or choose an example shown in the left)."
32
  # _USER_GUIDE1 = "Step1: Please select a **Crop size** and click **Crop it**."
33
- _USER_GUIDE2 = "Step2: Please choose a **Elevation angle** and click **Run Generate**. The **Elevation angle** is the elevation of input image. This costs about 30s."
34
  _USER_GUIDE3 = "Generated multiview images are shown below! (You may adjust the **Crop size** and **Elevation angle** to get a better result!)"
35
 
36
  others = '''**Step 1**. Select "Crop size" and click "Crop it". ==> The foreground object is centered and resized. </br>'''
@@ -185,7 +185,7 @@ def run_demo():
185
  ]
186
 
187
  image_block = gr.Image(type='pil', image_mode='RGBA', height=256, label='Input image', tool=None, interactive=True)
188
- elevation = gr.Slider(-10, 40, 30, step=5, label='Elevation angle', interactive=True)
189
  crop_size = gr.Slider(120, 240, 200, step=10, label='Crop size', interactive=True)
190
 
191
  # Compose demo layout & data flow.
 
24
 
25
  Procedure: </br>
26
  **Step 1**. Upload an image or select an example. ==> The foreground is masked out by SAM and we crop it as inputs. </br>
27
+ **Step 2**. Select "Elevation angle "and click "Run generation". ==> Generate multiview images. The **Elevation angle** is the elevation of the input image. (This costs about 30s.) </br>
28
  You may adjust the **Crop size** and **Elevation angle** to get a better result! <br>
29
  To reconstruct a NeRF or a 3D mesh from the generated images, please refer to our [github repository](https://github.com/liuyuan-pal/SyncDreamer).
30
  '''
31
  _USER_GUIDE0 = "Step1: Please upload an image in the block above (or choose an example shown in the left)."
32
  # _USER_GUIDE1 = "Step1: Please select a **Crop size** and click **Crop it**."
33
+ _USER_GUIDE2 = "Step2: Please choose a **Elevation angle** and click **Run Generate**. The **Elevation angle** is the elevation of the input image. This costs about 30s."
34
  _USER_GUIDE3 = "Generated multiview images are shown below! (You may adjust the **Crop size** and **Elevation angle** to get a better result!)"
35
 
36
  others = '''**Step 1**. Select "Crop size" and click "Crop it". ==> The foreground object is centered and resized. </br>'''
 
185
  ]
186
 
187
  image_block = gr.Image(type='pil', image_mode='RGBA', height=256, label='Input image', tool=None, interactive=True)
188
+ elevation = gr.Slider(-10, 40, 30, step=5, label='Elevation angle of the input image', interactive=True)
189
  crop_size = gr.Slider(120, 240, 200, step=10, label='Crop size', interactive=True)
190
 
191
  # Compose demo layout & data flow.