Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
a09242f
1
Parent(s):
9eb85c9
main.py
CHANGED
@@ -512,8 +512,13 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
512 |
# print ('predicting', f"record_10003/image_{117+len(previous_frames)}.png")
|
513 |
print ('previous_actions', previous_actions)
|
514 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
515 |
-
|
516 |
-
|
|
|
|
|
|
|
|
|
|
|
517 |
# Load and append the corresponding ground truth image instead of model output
|
518 |
#print ('here4', len(previous_frames))
|
519 |
#if DEBUG_TEACHER_FORCING:
|
|
|
512 |
# print ('predicting', f"record_10003/image_{117+len(previous_frames)}.png")
|
513 |
print ('previous_actions', previous_actions)
|
514 |
next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
|
515 |
+
feedback = True
|
516 |
+
if feedback:
|
517 |
+
previous_frames.append(next_frame_append)
|
518 |
+
else:
|
519 |
+
#previous_frames = []
|
520 |
+
previous_actions = []
|
521 |
+
#previous_actions = []
|
522 |
# Load and append the corresponding ground truth image instead of model output
|
523 |
#print ('here4', len(previous_frames))
|
524 |
#if DEBUG_TEACHER_FORCING:
|