liruiw commited on
Commit
9c0c09e
1 Parent(s): 8d2f46e
Files changed (3) hide show
  1. app copy.py +0 -1
  2. app.py +0 -2
  3. sim/simulator.py +0 -1
app copy.py CHANGED
@@ -23,7 +23,6 @@ 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
- @spaces.GPU
27
  def initialize_simulator(image_name, state):
28
  image_path = os.path.join(IMAGE_DIR, image_name)
29
  image = Image.open(image_path)
 
23
  available_images = sorted([img for img in os.listdir(IMAGE_DIR) if img.endswith(".png")])
24
 
25
 
 
26
  def initialize_simulator(image_name, state):
27
  image_path = os.path.join(IMAGE_DIR, image_name)
28
  image = Image.open(image_path)
app.py CHANGED
@@ -89,8 +89,6 @@ if __name__ == '__main__':
89
  ).astype(np.float32)
90
  genie.set_initial_state((prompt_image, prompt_action))
91
  image = genie.reset()
92
-
93
-
94
  with gr.Row():
95
  image_selector = gr.Dropdown(
96
  choices=available_images, value=available_images[0], label="Select an Image"
 
89
  ).astype(np.float32)
90
  genie.set_initial_state((prompt_image, prompt_action))
91
  image = genie.reset()
 
 
92
  with gr.Row():
93
  image_selector = gr.Dropdown(
94
  choices=available_images, value=available_images[0], label="Select an Image"
sim/simulator.py CHANGED
@@ -468,7 +468,6 @@ class GenieSimulator(LearnedSimulator):
468
  image = np.clip(image, 0, 255).astype(np.uint8)
469
  return image
470
 
471
- @spaces.GPU
472
  def reset(self) -> np.ndarray:
473
  # if ground truth physics simulator is provided,
474
  # return the the side-by-side concatenated image
 
468
  image = np.clip(image, 0, 255).astype(np.uint8)
469
  return image
470
 
 
471
  def reset(self) -> np.ndarray:
472
  # if ground truth physics simulator is provided,
473
  # return the the side-by-side concatenated image