Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
7769318
1
Parent(s):
c38d8a7
Adjust font size
Browse files
app.py
CHANGED
@@ -21,18 +21,14 @@ def run_canvas(front_view, map_view, prompt):
|
|
21 |
},
|
22 |
]
|
23 |
|
24 |
-
print(front_view)
|
25 |
-
|
26 |
images = [front_view, map_view]
|
27 |
pred = pipeline([messages], [images], return_traj=False)
|
28 |
pred_action = re.findall(r"<ACTION_(\d+)>", pred[0])
|
29 |
pred_action = np.array(pred_action, dtype=np.int64)
|
30 |
-
print(pred_action)
|
31 |
pred_action_odom = pipeline.action_tokenizer.detokenize(pred_action).tolist()
|
32 |
-
print(pred_action_odom)
|
33 |
|
34 |
# Create a figure and axes
|
35 |
-
fig, axes = plt.subplots(1, 1, figsize=(8,
|
36 |
|
37 |
# Scale factor for the arrow
|
38 |
scale_factor = 0.2
|
@@ -53,7 +49,7 @@ def run_canvas(front_view, map_view, prompt):
|
|
53 |
fc="k",
|
54 |
ec="k",
|
55 |
)
|
56 |
-
axes.text(y, x, f"{i}", fontsize=
|
57 |
axes.axis("equal")
|
58 |
axes.grid(True)
|
59 |
|
|
|
21 |
},
|
22 |
]
|
23 |
|
|
|
|
|
24 |
images = [front_view, map_view]
|
25 |
pred = pipeline([messages], [images], return_traj=False)
|
26 |
pred_action = re.findall(r"<ACTION_(\d+)>", pred[0])
|
27 |
pred_action = np.array(pred_action, dtype=np.int64)
|
|
|
28 |
pred_action_odom = pipeline.action_tokenizer.detokenize(pred_action).tolist()
|
|
|
29 |
|
30 |
# Create a figure and axes
|
31 |
+
fig, axes = plt.subplots(1, 1, figsize=(8, 8))
|
32 |
|
33 |
# Scale factor for the arrow
|
34 |
scale_factor = 0.2
|
|
|
49 |
fc="k",
|
50 |
ec="k",
|
51 |
)
|
52 |
+
axes.text(y, x, f"{i}", fontsize=20)
|
53 |
axes.axis("equal")
|
54 |
axes.grid(True)
|
55 |
|