Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
fd35ae8
1
Parent(s):
e750aef
main.py
CHANGED
@@ -213,9 +213,9 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
|
|
213 |
#norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
|
214 |
norm_x = x + (1920 - 512) / 2
|
215 |
norm_y = y + (1080 - 512) / 2
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
#action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
|
220 |
#action_descriptions.append(format_action(f'{norm_x-prev_x:.0f}~{norm_y-prev_y:.0f}', x==0 and y==0))
|
221 |
action_descriptions.append(format_action(f'{norm_x:.0f}~{norm_y:.0f}', x==0 and y==0))
|
@@ -225,8 +225,9 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
|
|
225 |
x, y = pos
|
226 |
#norm_x = int(round(x / 256 * 1024)) #x + (1920 - 256) / 2
|
227 |
#norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
|
228 |
-
|
229 |
-
|
|
|
230 |
#if DEBUG:
|
231 |
# norm_x = x
|
232 |
# norm_y = y
|
|
|
213 |
#norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
|
214 |
norm_x = x + (1920 - 512) / 2
|
215 |
norm_y = y + (1080 - 512) / 2
|
216 |
+
if DEBUG_TEACHER_FORCING:
|
217 |
+
norm_x = x
|
218 |
+
norm_y = y
|
219 |
#action_descriptions.append(f"{(norm_x-prev_x):.0f}~{(norm_y-prev_y):.0f}")
|
220 |
#action_descriptions.append(format_action(f'{norm_x-prev_x:.0f}~{norm_y-prev_y:.0f}', x==0 and y==0))
|
221 |
action_descriptions.append(format_action(f'{norm_x:.0f}~{norm_y:.0f}', x==0 and y==0))
|
|
|
225 |
x, y = pos
|
226 |
#norm_x = int(round(x / 256 * 1024)) #x + (1920 - 256) / 2
|
227 |
#norm_y = int(round(y / 256 * 640)) #y + (1080 - 256) / 2
|
228 |
+
if DEBUG_TEACHER_FORCING:
|
229 |
+
norm_x = x + (1920 - 512) / 2
|
230 |
+
norm_y = y + (1080 - 512) / 2
|
231 |
#if DEBUG:
|
232 |
# norm_x = x
|
233 |
# norm_y = y
|