Spaces:
Runtime error
Runtime error
Commit
·
e137c08
1
Parent(s):
dc404d5
Update main.py
Browse files
main.py
CHANGED
@@ -53,6 +53,7 @@ def create_position_map(pos, image_size=256, original_width=1024, original_heigh
|
|
53 |
torch.Tensor: Binary position map of shape (1, image_size, image_size)
|
54 |
"""
|
55 |
x, y = pos
|
|
|
56 |
if x is None:
|
57 |
return torch.zeros((1, image_size, image_size))
|
58 |
# Scale the positions to new size
|
@@ -206,7 +207,7 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
|
|
206 |
action_descriptions.append("right_click")
|
207 |
|
208 |
prompt = " ".join(action_descriptions[-8:])
|
209 |
-
prompt = "N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N + 0 3 0 7 : + 0 3 7 5"
|
210 |
|
211 |
pos_map, x_scaled, y_scaled = create_position_map(parse_action_string(action_descriptions[-1]))
|
212 |
|
|
|
53 |
torch.Tensor: Binary position map of shape (1, image_size, image_size)
|
54 |
"""
|
55 |
x, y = pos
|
56 |
+
x, y = 307, 375
|
57 |
if x is None:
|
58 |
return torch.zeros((1, image_size, image_size))
|
59 |
# Scale the positions to new size
|
|
|
207 |
action_descriptions.append("right_click")
|
208 |
|
209 |
prompt = " ".join(action_descriptions[-8:])
|
210 |
+
#prompt = "N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N N N N N N : N N N N N + 0 3 0 7 : + 0 3 7 5"
|
211 |
|
212 |
pos_map, x_scaled, y_scaled = create_position_map(parse_action_string(action_descriptions[-1]))
|
213 |
|