yuntian-deng commited on
Commit
9c3c2d7
·
1 Parent(s): 9202e10

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -123,7 +123,7 @@ def predict_next_frame(previous_frames: List[np.ndarray], previous_actions: List
123
  # Convert the generated frame to the correct format
124
  new_frame = new_frame.transpose(1, 2, 0)
125
  print (new_frame.max(), new_frame.min())
126
- new_frame_denormalized = denormalize_image(new_frame, source_range=(0, 1))
127
 
128
  # Draw the trace of previous actions
129
  new_frame_with_trace = draw_trace(new_frame_denormalized, previous_actions)
 
123
  # Convert the generated frame to the correct format
124
  new_frame = new_frame.transpose(1, 2, 0)
125
  print (new_frame.max(), new_frame.min())
126
+ new_frame_denormalized = denormalize_image(new_frame, source_range=(-1, 1))
127
 
128
  # Draw the trace of previous actions
129
  new_frame_with_trace = draw_trace(new_frame_denormalized, previous_actions)