f37830bbe2c85f613fded1721976dbe94f6bed0b,gym/utils/play.py,,play,#,24
Before Change
if len(obs.shape) == 2:
obs = obs[:, :, None]
if obs.shape[2] == 1:
obs = obs.repeat(3, axis=2)
display_arr(screen, obs, transpose=transpose, video_size=video_size)
// process pygame events
for event in pygame.event.get():
After Change
"please specify one manually"
relevant_keys = set(sum(map(list, keys_to_action.keys()),[]))
video_size=[rendered.shape[1],rendered.shape[0]]
if zoom is not None:
video_size = int(video_size[0] * zoom), int(video_size[1] * zoom)
pressed_keys = []
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: openai/gym
Commit Name: f37830bbe2c85f613fded1721976dbe94f6bed0b
Time: 2019-03-22
Author: martin.delagorce@gmail.com
File Name: gym/utils/play.py
Class Name:
Method Name: play
Project Name: nipy/dipy
Commit Name: 85a5d2bd47853660df544d3d0957b7be4ad9fd6e
Time: 2018-08-17
Author: guillaume.theaud@gmail.com
File Name: dipy/tracking/utils.py
Class Name:
Method Name: random_seeds_from_mask
Project Name: bethgelab/foolbox
Commit Name: 9ab1052b7bb995ca8a4309876e7f5b544087764f
Time: 2020-02-07
Author: 5895436+zimmerrol@users.noreply.github.com
File Name: tests/test_attacks.py
Class Name:
Method Name:
Project Name: ncullen93/torchsample
Commit Name: f4ca9b361adb382423c753f7f864a5dd0e454964
Time: 2017-05-12
Author: ncullen.th@dartmouth.edu
File Name: torchsample/transforms/image_transforms.py
Class Name: Grayscale
Method Name: __call__