ziqima commited on
Commit
4f8a215
·
1 Parent(s): 2146e37

add examples

Browse files
app.py CHANGED
@@ -26,7 +26,10 @@ parts_dict = {
26
  "corgi": "head,leg,body,ear",
27
  "pushcar": "wheel,body,handle",
28
  "plant": "pot,plant",
29
- "chair": "back of chair,leg,seat"
 
 
 
30
  }
31
 
32
  source_dict = {
@@ -40,7 +43,10 @@ source_dict = {
40
  "corgi": "wild",
41
  "pushcar": "wild",
42
  "plant": "wild",
43
- "chair": "wild"
 
 
 
44
  }
45
 
46
  @spaces.GPU(duration=120)
@@ -118,7 +124,7 @@ with gr.Blocks(theme=gr.themes.Default(text_size="lg", radius_size="none")) as d
118
  output_point_cloud = gr.Plot(label="Output Result")
119
 
120
  with gr.Row(variant="panel"):
121
- with gr.Row(scale=6):
122
  title = gr.HTML('''<h1 text-align="center">Objaverse</h1>
123
  <p style='font-size: 16px;'>Online 3D assets from Objaverse!</p>
124
  ''')
@@ -128,18 +134,21 @@ with gr.Blocks(theme=gr.themes.Default(text_size="lg", radius_size="none")) as d
128
  ("examples/objaverse/motorvehicle.jpg", "motor vehicle"),
129
  ("examples/objaverse/teddy.jpg", "teddy bear"),
130
  ("examples/objaverse/shirt.jpg", "shirt")],
131
- columns=6,
132
  allow_preview=False)
133
  gallery_objaverse.select(fn=on_select,
134
  inputs=None,
135
  outputs=[file_upload, part_queries])
136
- with gr.Row(scale=6):
137
  title = gr.HTML("""<h1 text-align="center">In the Wild</h1>
138
- <p style='font-size: 16px;'>Challenging in-the-wild reconstructions from iPhone photos!</p>
139
  """)
140
  gallery_wild = gr.Gallery([("examples/wild/pushcar.jpg", "iPhone-pushcar"),
141
- ("examples/wild/plant.jpg", "iPhone-plant")],
142
- columns=6,
 
 
 
143
  allow_preview=False)
144
  gallery_wild.select(fn=on_select,
145
  inputs=None,
 
26
  "corgi": "head,leg,body,ear",
27
  "pushcar": "wheel,body,handle",
28
  "plant": "pot,plant",
29
+ "chair": "back of chair,leg,seat",
30
+ "objpart_redblack": "head,arm,foot,body,leg,hand,knapsack,neck",
31
+ "objpart_dragon": "body,head,leg,wing,tail,foot",
32
+ "objpart_catgirl": "Body,Leg,Head,Hair,Foot,Hand,Ear,Shorts,Tail,Arm"
33
  }
34
 
35
  source_dict = {
 
43
  "corgi": "wild",
44
  "pushcar": "wild",
45
  "plant": "wild",
46
+ "chair": "wild",
47
+ "objpart_redblack": "wild",
48
+ "objpart_catgirl": "wild",
49
+ "objpart_dragon": "wild"
50
  }
51
 
52
  @spaces.GPU(duration=120)
 
124
  output_point_cloud = gr.Plot(label="Output Result")
125
 
126
  with gr.Row(variant="panel"):
127
+ with gr.Column(scale=6):
128
  title = gr.HTML('''<h1 text-align="center">Objaverse</h1>
129
  <p style='font-size: 16px;'>Online 3D assets from Objaverse!</p>
130
  ''')
 
134
  ("examples/objaverse/motorvehicle.jpg", "motor vehicle"),
135
  ("examples/objaverse/teddy.jpg", "teddy bear"),
136
  ("examples/objaverse/shirt.jpg", "shirt")],
137
+ columns=3,
138
  allow_preview=False)
139
  gallery_objaverse.select(fn=on_select,
140
  inputs=None,
141
  outputs=[file_upload, part_queries])
142
+ with gr.Column(scale=6):
143
  title = gr.HTML("""<h1 text-align="center">In the Wild</h1>
144
+ <p style='font-size: 16px;'>Challenging examples in-the-wild reconstructions from iPhone photos and PartObjaverseTiny!</p>
145
  """)
146
  gallery_wild = gr.Gallery([("examples/wild/pushcar.jpg", "iPhone-pushcar"),
147
+ ("examples/wild/plant.jpg", "iPhone-plant"),
148
+ ("examples/wild/objpart_catgirl.jpg", "objpart_catgirl"),
149
+ ("examples/wild/objpart_dragon.jpg", "objpart_dragon"),
150
+ ("examples/wild/objpart_redblack.jpg", "objpart_redblack"),],
151
+ columns=3,
152
  allow_preview=False)
153
  gallery_wild.select(fn=on_select,
154
  inputs=None,
examples/wild/objpart_catgirl.jpg ADDED
examples/wild/objpart_catgirl.pcd ADDED
Binary file (240 kB). View file
 
examples/wild/objpart_dragon.jpg ADDED
examples/wild/objpart_dragon.pcd ADDED
Binary file (240 kB). View file
 
examples/wild/objpart_redblack.jpg ADDED
examples/wild/objpart_redblack.pcd ADDED
Binary file (240 kB). View file
 
examples/wild/pushcar_old.pcd ADDED
Binary file (140 kB). View file