MCPcopy Create free account

hub / github.com/WendyShang/flare / functions

Functions121 in github.com/WendyShang/flare

↓ 14 callersMethodlog
(self, L, step, log_freq=LOG_FREQ)
sac_ddp.py:110
↓ 11 callersMethodlog_param
(self, key, param, step)
logger.py:140
↓ 9 callersFunctionnow
()
data_augs.py:302
↓ 8 callersMethodlog
(self, key, value, step, n=1)
logger.py:132
↓ 8 callersMethodlog_histogram
(self, key, histogram, step)
logger.py:157
↓ 8 callersFunctionsecs
(t)
data_augs.py:304
↓ 5 callersMethodstep
(self, action)
utils.py:300
↓ 4 callersMethod_check_input
(self, value, name, center=1, bound=(0, float('inf')), clip_first_on_zero=True)
TransformLayer.py:99
↓ 4 callersMethodreset
(self)
utils.py:292
↓ 4 callersMethodsample_action
(self, obs)
sac_ddp.py:335
↓ 4 callersMethodtrain
(self, training=True)
sac_ddp.py:316
↓ 3 callersMethoddump
(self, step)
logger.py:161
↓ 3 callersMethodsave
(self, file_name)
video.py:35
↓ 3 callersMethodtransform
(self, inputs)
TransformLayer.py:179
↓ 2 callersMethod__init__
( self, obs_shape, action_shape, hidden_dim, encoder_type, encoder_feature_dim, log_std_min, l
sac_ddp.py:54
↓ 2 callersMethod__init__
(self, obs_shape, feature_dim, channels=[16, 32, 32], num_layers=2, num_filters=32,
encoder.py:37
↓ 2 callersMethod_get_obs
(self)
utils.py:307
↓ 2 callersMethod_get_qpos
(self)
utils.py:311
↓ 2 callersFunctioncenter_crop_images
(image, output_size)
utils.py:71
↓ 2 callersMethodforward_conv
(self, obs,flatten=True)
encoder.py:71
↓ 2 callersMethodforward_conv
(self, obs,flatten=True)
encoder.py:194
↓ 2 callersMethodload
(self, model_dir, step)
sac_ddp.py:459
↓ 2 callersMethodlog_image
(self, key, image, step)
logger.py:149
↓ 2 callersFunctionmake_encoder
( encoder_type, obs_shape, feature_dim, num_layers, num_filters, output_logits=False, channels=[
encoder.py:276
↓ 2 callersMethodselect_action
(self, obs)
sac_ddp.py:325
↓ 2 callersFunctiontie_weights
(src, trg)
encoder.py:22
↓ 2 callersMethodupdate
(self, value, n=1)
logger.py:29
↓ 1 callersMethod__init__
(self, *models)
utils.py:14
↓ 1 callersMethod_dump_to_console
(self, data, prefix)
logger.py:75
↓ 1 callersMethod_dump_to_file
(self, data)
logger.py:59
↓ 1 callersMethod_format
(self, key, value, ty)
logger.py:63
↓ 1 callersMethod_prime_meters
(self)
logger.py:48
↓ 1 callersMethod_try_sw_log
(self, key, value, step)
logger.py:112
↓ 1 callersMethod_try_sw_log_histogram
(self, key, histogram, step)
logger.py:128
↓ 1 callersMethod_try_sw_log_image
(self, key, image, step)
logger.py:116
↓ 1 callersMethod_try_sw_log_video
(self, key, frames, step)
logger.py:122
↓ 1 callersMethodadd
(self, obs, action, reward, next_obs, done, eps_done)
utils.py:126
↓ 1 callersMethodcopy_conv_weights_from
Tie convolutional layers
encoder.py:113
↓ 1 callersFunctionevaluate
(env, agent, video, num_episodes, L, step, args)
train_ddp.py:100
↓ 1 callersFunctiongaussian_logprob
Compute Gaussian log probability.
sac_ddp.py:18
↓ 1 callersFunctiongrayscale
(imgs)
data_augs.py:82
↓ 1 callersMethodinit
(self, enabled=True)
video.py:15
↓ 1 callersFunctionmain
()
train_ddp.py:219
↓ 1 callersFunctionmake_agent
(obs_shape, action_shape, action_range, args, device, image_channel=3)
train_ddp.py:181
↓ 1 callersFunctionparse_args
()
train_ddp.py:35
↓ 1 callersFunctionrandom_color_jitter
inputs np array outputs tensor
data_augs.py:279
↓ 1 callersFunctionrandom_convolution
random covolution in "network randomization" (imbs): B x (C x stack) x H x W, note: imgs should be normalized and torch tensor
data_augs.py:249
↓ 1 callersFunctionrandom_crop
args: imgs: np.array shape (B,C,H,W) out: output size (e.g. 84) returns np.array
data_augs.py:64
↓ 1 callersFunctionrandom_cutout
args: imgs: np.array shape (B,C,H,W) min / max cut: int, min / max size of cutout returns np.array
data_augs.py:127
↓ 1 callersFunctionrandom_cutout_color
args: imgs: shape (B,C,H,W) out: output size (e.g. 84)
data_augs.py:147
↓ 1 callersFunctionrandom_flip
args: imgs: torch.tensor shape (B,C,H,W) device: cpu or gpu, p: prob of applying aug, returns torch.tensor
data_augs.py:173
↓ 1 callersFunctionrandom_grayscale
args: imgs: torch.tensor shape (B,C,H,W) device: cpu or cuda returns torch.tensor
data_augs.py:97
↓ 1 callersFunctionrandom_rotation
args: imgs: torch.tensor shape (B,C,H,W) device: str, cpu or gpu, p: float, prob of applying aug, returns to
data_augs.py:206
↓ 1 callersMethodrecord
(self, env)
video.py:19
↓ 1 callersFunctionrun_eval_loop
(sample_stochastically=True)
train_ddp.py:103
↓ 1 callersMethodsample_proprio
(self)
utils.py:140
↓ 1 callersMethodsample_rad
(self,aug_funcs)
utils.py:159
↓ 1 callersMethodsave
(self, save_dir)
utils.py:227
↓ 1 callersFunctionsquash
Apply squashing function. See appendix C from https://arxiv.org/pdf/1812.05905.pdf.
sac_ddp.py:24
↓ 1 callersMethodupdate_actor_and_alpha
(self, obs, L, step)
sac_ddp.py:373
↓ 1 callersMethodupdate_critic
(self, obs, action, reward, next_obs, not_done, L, step)
sac_ddp.py:345
↓ 1 callersMethodvalue
(self)
logger.py:33
Method__enter__
(self)
utils.py:17
Method__exit__
(self, *args)
utils.py:23
Method__getitem__
(self, idx)
utils.py:256
Method__init__
(self, obs_shape, action_shape, capacity, batch_size, device, image_size=84, pre_image_size=100, trans
utils.py:95
Method__init__
(self, env, k)
utils.py:278
Method__init__
(self)
logger.py:25
Method__init__
(self, file_name, formating)
logger.py:38
Method__init__
(self, log_dir, use_tb=True, config='rl')
logger.py:94
Method__init__
(self, obs_dim, action_dim, hidden_dim)
sac_ddp.py:124
Method__init__
( self, obs_shape, action_shape, hidden_dim, encoder_type, encoder_feature_dim, num_layers, nu
sac_ddp.py:142
Method__init__
( self, obs_shape, action_shape, device, hidden_dim=256, disco
sac_ddp.py:192
Method__init__
(self, dir_name, height=256, width=256, camera_id=0, fps=30)
video.py:7
Method__init__
(self, obs_shape, feature_dim, num_layers, num_filters,*args)
encoder.py:135
Method__init__
(self, obs_shape, feature_dim, channels=[16, 32, 32], num_layers=2, num_filters=32,
encoder.py:153
Method__init__
(self, brightness=0, contrast=0, saturation=0, hue=0, p=0, batch_size=128, stack_size=3)
TransformLayer.py:88
Method__len__
(self)
utils.py:273
Methodadjust_brightness
Args: x: torch tensor img (hsv type) Factor: torch tensor with same length as x
TransformLayer.py:143
Methodadjust_contrast
Args: x: torch tensor img (rgb type) Factor: torch tensor with same length as x 0 gives g
TransformLayer.py:117
Methodadjust_hue
(self, x)
TransformLayer.py:133
Methodadjust_saturate
Args: x: torch tensor img (hsv type) Factor: torch tensor with same length as x
TransformLayer.py:161
Methodalpha
(self)
sac_ddp.py:322
Functioncenter_crop_image
(image, output_size)
utils.py:82
Functioncenter_crop_images
(image, output_size)
train_ddp.py:25
Functioncenter_translate
(imgs, size)
data_augs.py:7
Functioncenter_window
(imgs, window_size, in_place=False)
data_augs.py:29
Methodcopy_conv_weights_from
(self, source)
encoder.py:144
Methodcopy_conv_weights_from
Tie convolutional layers
encoder.py:252
Methoddump
(self, step, prefix)
logger.py:83
Methodforward
( self, obs, compute_pi=True, compute_log_pi=True, detach_encoder=False )
sac_ddp.py:77
Methodforward
(self, obs, action)
sac_ddp.py:133
Methodforward
(self, obs, action, detach_encoder=False)
sac_ddp.py:164
Methodforward
(self, obs, detach=False)
encoder.py:89
Methodforward
(self, obs, detach=False)
encoder.py:141
Methodforward
(self, obs, detach=False)
encoder.py:227
Methodforward
(self, inputs)
TransformLayer.py:193
Functionhsv2rgb
(hsv)
TransformLayer.py:41
Methodload
(self, save_dir)
utils.py:241
Methodlog
(self, key, value, n=1)
logger.py:45
next →1–100 of 121, ranked by callers