Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -23,16 +23,7 @@ IMAGE_DIR = "sim/assets/langtable_prompt/"
|
|
23 |
available_images = sorted([img for img in os.listdir(IMAGE_DIR) if img.endswith(".png")])
|
24 |
|
25 |
|
26 |
-
|
27 |
-
image_encoder_type='temporalvae',
|
28 |
-
image_encoder_ckpt='stabilityai/stable-video-diffusion-img2vid',
|
29 |
-
quantize=False,
|
30 |
-
backbone_type='stmar',
|
31 |
-
backbone_ckpt='data/mar_ckpt/langtable',
|
32 |
-
prompt_horizon=PROMPT_HORIZON,
|
33 |
-
action_stride=1,
|
34 |
-
domain='language_table',
|
35 |
-
)
|
36 |
|
37 |
# Helper function to reset GenieSimulator with the selected image
|
38 |
def initialize_simulator(image_name):
|
@@ -75,6 +66,17 @@ def handle_image_selection(image_name):
|
|
75 |
|
76 |
if __name__ == '__main__':
|
77 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
with gr.Row():
|
79 |
image_selector = gr.Dropdown(
|
80 |
choices=available_images, value=available_images[0], label="Select an Image"
|
|
|
23 |
available_images = sorted([img for img in os.listdir(IMAGE_DIR) if img.endswith(".png")])
|
24 |
|
25 |
|
26 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# Helper function to reset GenieSimulator with the selected image
|
29 |
def initialize_simulator(image_name):
|
|
|
66 |
|
67 |
if __name__ == '__main__':
|
68 |
with gr.Blocks() as demo:
|
69 |
+
genie = GenieSimulator(
|
70 |
+
image_encoder_type='temporalvae',
|
71 |
+
image_encoder_ckpt='stabilityai/stable-video-diffusion-img2vid',
|
72 |
+
quantize=False,
|
73 |
+
backbone_type='stmar',
|
74 |
+
backbone_ckpt='data/mar_ckpt/langtable',
|
75 |
+
prompt_horizon=PROMPT_HORIZON,
|
76 |
+
action_stride=1,
|
77 |
+
domain='language_table',
|
78 |
+
)
|
79 |
+
|
80 |
with gr.Row():
|
81 |
image_selector = gr.Dropdown(
|
82 |
choices=available_images, value=available_images[0], label="Select an Image"
|