Spaces:
Runtime error
Runtime error
Commit
·
f4a1565
1
Parent(s):
abac87c
Update main.py
Browse files
main.py
CHANGED
@@ -207,6 +207,8 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
|
|
207 |
|
208 |
for action_type, pos in previous_actions: #[-8:]:
|
209 |
print ('here3', action_type, pos)
|
|
|
|
|
210 |
if action_type == "N":
|
211 |
x, y = pos
|
212 |
#norm_x = int(round(x / 256 * 1024)) #x + (1920 - 256) / 2
|
|
|
207 |
|
208 |
for action_type, pos in previous_actions: #[-8:]:
|
209 |
print ('here3', action_type, pos)
|
210 |
+
if action_type == 'move':
|
211 |
+
action_type = 'N'
|
212 |
if action_type == "N":
|
213 |
x, y = pos
|
214 |
#norm_x = int(round(x / 256 * 1024)) #x + (1920 - 256) / 2
|