Skip to content

Commit

Permalink
Fix video recording. (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahiuchun authored Jan 11, 2021
1 parent 2c50315 commit 8a721ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gym/wrappers/monitoring/video_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def capture_frame(self, frame):
if frame.dtype != np.uint8:
raise error.InvalidFrame("Your frame has data type {}, but we require uint8 (i.e. RGB values from 0-255).".format(frame.dtype))

self.proc.stdin.write(frame.tobytes())
self.proc.stdin.write(frame.tobytes())

def close(self):
self.proc.stdin.close()
Expand Down

0 comments on commit 8a721ac

Please sign in to comment.