da03 commited on
Commit
0a01c1a
·
1 Parent(s): 8f4e2db
Files changed (1) hide show
  1. main.py +4 -2
main.py CHANGED
@@ -348,8 +348,10 @@ async def websocket_endpoint(websocket: WebSocket):
348
  # Predict the next frame based on the previous frames and actions
349
  next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
350
  # Load and append the corresponding ground truth image instead of model output
351
- #img = Image.open(f"image_{len(previous_frames)%7}.png")
352
- previous_frames.append(next_frame_append)
 
 
353
 
354
  # Convert the numpy array to a base64 encoded image
355
  img = Image.fromarray(next_frame)
 
348
  # Predict the next frame based on the previous frames and actions
349
  next_frame, next_frame_append = predict_next_frame(previous_frames, previous_actions)
350
  # Load and append the corresponding ground truth image instead of model output
351
+ print ('here4', len(previous_frames))
352
+ img = Image.open(f"record_100/image_{82+len(previous_frames)}.png")
353
+ previous_frames.append(img)
354
+ #previous_frames.append(next_frame_append)
355
 
356
  # Convert the numpy array to a base64 encoded image
357
  img = Image.fromarray(next_frame)