hysts HF Staff commited on
Commit
c050724
ยท
1 Parent(s): 3db5e69
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -1,14 +1,5 @@
1
  import gradio as gr
2
 
3
-
4
- def fn1(mesh_upload, state, y2z, y2x, z2x, upside_down):
5
- return None, None, None, None, None, None, None, None, None
6
-
7
-
8
- def fn2(position_images_tensor_path, normal_images_tensor_path, mask_images_tensor_path, w2c_tensor_path, text_prompt, selected_view, img_condition_seed, model_choice, edge_refinement):
9
- return None, None
10
-
11
-
12
  with gr.Blocks(delete_cache=(600, 600)) as demo:
13
  gr.Markdown("# ๐ŸŽจ SeqTex: Generate Mesh Textures in Video Sequence")
14
 
@@ -62,12 +53,6 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
62
  position_map = gr.Image(label="๐Ÿ—บ๏ธ Position Map", type="pil", scale=1)
63
  normal_map = gr.Image(label="๐Ÿงญ Normal Map", type="pil", scale=1)
64
 
65
- step1_button.click(
66
- fn=fn1,
67
- inputs=[mesh_upload, gr.State("xAtlas"), y2z, y2x, z2x, upside_down],
68
- outputs=[position_map_tensor_path, normal_map_tensor_path, position_images_tensor_path, normal_images_tensor_path, mask_images_tensor_path, w2c_tensor_path, mesh, mvp_matrix_tensor_path, step1_progress]
69
- )
70
-
71
  # Step 2
72
  gr.Markdown("---")
73
  gr.Markdown("## ๐Ÿ‘๏ธ Step 2: Select View & Generate Image Condition")
@@ -95,12 +80,6 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
95
  with gr.Column():
96
  condition_image = gr.Image(label="๐Ÿ–ผ๏ธ Generated Image Condition", type="pil") # , interactive=False
97
 
98
- step2_button.click(
99
- fn=fn2,
100
- inputs=[position_images_tensor_path, normal_images_tensor_path, mask_images_tensor_path, w2c_tensor_path, text_prompt, selected_view, img_condition_seed, model_choice, edge_refinement],
101
- outputs=[condition_image, step2_progress],
102
- )
103
-
104
  # Step 3
105
  gr.Markdown("---")
106
  gr.Markdown("## ๐ŸŽจ Step 3: Generate Final Texture")
 
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
 
3
  with gr.Blocks(delete_cache=(600, 600)) as demo:
4
  gr.Markdown("# ๐ŸŽจ SeqTex: Generate Mesh Textures in Video Sequence")
5
 
 
53
  position_map = gr.Image(label="๐Ÿ—บ๏ธ Position Map", type="pil", scale=1)
54
  normal_map = gr.Image(label="๐Ÿงญ Normal Map", type="pil", scale=1)
55
 
 
 
 
 
 
 
56
  # Step 2
57
  gr.Markdown("---")
58
  gr.Markdown("## ๐Ÿ‘๏ธ Step 2: Select View & Generate Image Condition")
 
80
  with gr.Column():
81
  condition_image = gr.Image(label="๐Ÿ–ผ๏ธ Generated Image Condition", type="pil") # , interactive=False
82
 
 
 
 
 
 
 
83
  # Step 3
84
  gr.Markdown("---")
85
  gr.Markdown("## ๐ŸŽจ Step 3: Generate Final Texture")