xizaoqu
commited on
Commit
·
76b382c
1
Parent(s):
70eef9b
update README
Browse files
app.py
CHANGED
@@ -175,7 +175,10 @@ def run(cfg: DictConfig):
|
|
175 |
|
176 |
algo = run_local(cfg)
|
177 |
algo.to(device)
|
178 |
-
|
|
|
|
|
|
|
179 |
actions = torch.zeros((1, 25))
|
180 |
poses = torch.zeros((1, 5))
|
181 |
|
@@ -183,6 +186,9 @@ def run(cfg: DictConfig):
|
|
183 |
|
184 |
runner = InteractiveRunner(algo)
|
185 |
|
|
|
|
|
|
|
186 |
# @spaces.GPU()
|
187 |
# def run_interactive(first_frame, action, first_pose, curr_frame, device):
|
188 |
# global algo
|
|
|
175 |
|
176 |
algo = run_local(cfg)
|
177 |
algo.to(device)
|
178 |
+
|
179 |
+
device = next(algo.parameters()).device
|
180 |
+
print("algo:", device)
|
181 |
+
|
182 |
actions = torch.zeros((1, 25))
|
183 |
poses = torch.zeros((1, 5))
|
184 |
|
|
|
186 |
|
187 |
runner = InteractiveRunner(algo)
|
188 |
|
189 |
+
device = next(runner.algo.parameters()).device
|
190 |
+
print("runner.algo:", device)
|
191 |
+
|
192 |
# @spaces.GPU()
|
193 |
# def run_interactive(first_frame, action, first_pose, curr_frame, device):
|
194 |
# global algo
|