Spaces:
Runtime error
Runtime error
fix
Browse files- app.py +1 -0
- sim/simulator.py +0 -1
app.py
CHANGED
@@ -76,6 +76,7 @@ def init_model():
|
|
76 |
prompt_horizon=PROMPT_HORIZON,
|
77 |
action_stride=1,
|
78 |
domain='language_table',
|
|
|
79 |
)
|
80 |
|
81 |
image = Image.open("sim/assets/langtable_prompt/frame_06.png")
|
|
|
76 |
prompt_horizon=PROMPT_HORIZON,
|
77 |
action_stride=1,
|
78 |
domain='language_table',
|
79 |
+
device="cpu"
|
80 |
)
|
81 |
|
82 |
image = Image.open("sim/assets/langtable_prompt/frame_06.png")
|
sim/simulator.py
CHANGED
@@ -138,7 +138,6 @@ class GenieSimulator(LearnedSimulator):
|
|
138 |
allow_external_prompt: bool = False
|
139 |
):
|
140 |
super().__init__()
|
141 |
-
device = "cuda"
|
142 |
|
143 |
assert quantize == (image_encoder_type == "magvit"), \
|
144 |
"Currently quantization if and only if magvit is the image encoder."
|
|
|
138 |
allow_external_prompt: bool = False
|
139 |
):
|
140 |
super().__init__()
|
|
|
141 |
|
142 |
assert quantize == (image_encoder_type == "magvit"), \
|
143 |
"Currently quantization if and only if magvit is the image encoder."
|