yuntian-deng commited on
Commit
599777e
·
1 Parent(s): 00d88d2

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -0
main.py CHANGED
@@ -117,6 +117,8 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
117
 
118
  # Convert the generated frame to the correct format
119
  #new_frame = (new_frame * 255).astype(np.uint8).transpose(1, 2, 0)
 
 
120
 
121
  # Resize the frame to 256x256 if necessary
122
  #if new_frame.shape[:2] != (height, width):
 
117
 
118
  # Convert the generated frame to the correct format
119
  #new_frame = (new_frame * 255).astype(np.uint8).transpose(1, 2, 0)
120
+ new_frame = new_frame.transpose(1, 2, 0)
121
+
122
 
123
  # Resize the frame to 256x256 if necessary
124
  #if new_frame.shape[:2] != (height, width):