MCPcopy Create free account

hub / github.com/ReinFlow/ReinFlow / functions

Functions864 in github.com/ReinFlow/ReinFlow

Methodforward
model/flow/mlp_flow.py:196
Methodforward
inputs: x: (B, Ta, Da) time: (B,) floating point in [0,1) flow matching time cond: dict with key state/rg
model/flow/mlp_flow.py:279
Methodforward
inputs: action: (B, Ta, Da) action chunk time: (B,) or float within [0,1), flow time cond: dict with key
model/flow/mlp_flow.py:474
Methodforward
inputs: x: (B, Ta, Da) time: (B,) floating point in [0,1) flow matching time cond: dict with key state/rg
model/flow/mlp_flow.py:587
Methodforward
Generate actions from observations and noise using the actor network. Args: cond (Dict[str, Tensor]): Dictionary containing the s
model/flow/ft_baselines/fql.py:88
Methodforward
( self, cond, deterministic=False, use_base_policy=False, )
model/gaussian/gaussian_vpg_grpo.py:51
Methodforward
(self, cond, deterministic=False, **kwargs)
model/gaussian/gaussian_rwr.py:61
Methodforward
( self, cond, deterministic=False, use_base_policy=False, )
model/gaussian/gaussian_vpg.py:55
Methodforward
(self, cond, deterministic=False, **kwargs)
model/rl/gaussian_rwr.py:61
Methodforward
( self, cond, deterministic=False, use_base_policy=False, )
model/rl/gaussian_vpg.py:58
Methodforward
(self, cond)
model/common/mlp_gmm.py:102
Methodforward
(self, obs, flatten=False)
model/common/vit.py:77
Methodforward
(self, x: torch.Tensor)
model/common/vit.py:94
Methodforward
(self, x: torch.Tensor)
model/common/vit.py:118
Methodforward
x: [batch, seq, embed_dim]
model/common/vit.py:133
Methodforward
(self, x, attn_mask=None)
model/common/vit.py:162
Methodforward
( self, cond, deterministic=False, network_override=None, reparameteri
model/common/gaussian.py:107
Methodforward
(self, cond)
model/common/mlp_gaussian.py:135
Methodforward
(self, feat: torch.Tensor, prop: torch.Tensor)
model/common/modules.py:53
Methodforward
cond: dict with key state/rgb; more recent obs at the end state: (B, To, Do) action: (B, Ta, Da)
model/common/critic.py:116
Methodforward
cond: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W) no_augment
model/common/critic.py:181
Methodforward
(self, x)
model/common/mlp.py:159
Methodforward
(self, x)
model/common/mlp.py:183
Methodforward
(self, cond)
model/common/transformer.py:94
Methodforward
(self, cond)
model/common/transformer.py:189
Methodforward
cond: (B, T, cond_dim) output: (B, T, output_dim)
model/common/transformer.py:383
Methodforward
(self, cond, deterministic=False)
model/common/gmm.py:110
Methodforward
(self, x, key, forward=True)
env/gym_utils/furniture_normalizer.py:71
Methodget_actions
inputs: cond: dict, contatinin... 'state': obs. observation in robotics. torch.Tensor(batchsize, cond_steps, obs_
model/flow/ft_ppo/pposhortcut.py:235
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/stacking_dataset.py:193
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/stacking_dataset.py:368
Methodget_all_actions
Returns all actions from all trajectories, concatenated on dim 0 (time).
agent/dataset/d3il_dataset/base_dataset.py:43
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/pushing_dataset.py:134
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/sorting_dataset.py:257
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/sorting_dataset.py:447
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/avoiding_dataset.py:99
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/aligning_dataset.py:139
Methodget_all_actions
(self)
agent/dataset/d3il_dataset/aligning_dataset.py:312
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/stacking_dataset.py:201
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/stacking_dataset.py:376
Methodget_all_observations
Returns all actions from all trajectories, concatenated on dim 0 (time).
agent/dataset/d3il_dataset/base_dataset.py:50
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/pushing_dataset.py:142
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/sorting_dataset.py:265
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/sorting_dataset.py:455
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/avoiding_dataset.py:107
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/aligning_dataset.py:147
Methodget_all_observations
(self)
agent/dataset/d3il_dataset/aligning_dataset.py:320
Methodget_attr
Get a property from each sub-environment. Parameters ---------- name : string Name of the property to be get from
env/gym_utils/vector_env.py:169
Methodget_explained_var
(self, values, returns)
agent/finetune/reinflow/buffer.py:389
Methodget_explained_var
(self, values, returns)
agent/finetune/reinflow/buffer.py:951
Methodget_logprobs
inputs: x_chain: torch.Tensor of shape `[batchsize, self.inference_steps+1, self.horizon_steps, self.act_dim]`
model/flow/ft_ppo/pposhortcut.py:126
Methodget_logprobs
( self, cond, actions, use_base_policy=False, )
model/gaussian/gaussian_vpg_grpo.py:65
Methodget_logprobs
( self, cond, actions, use_base_policy=False, )
model/gaussian/gaussian_vpg.py:69
Methodget_logprobs
( self, cond, actions, use_base_policy=False, )
model/rl/gaussian_vpg.py:72
Methodget_loss
for training and validation on fixed dataset
agent/pretrain/train_reflow_agent.py:52
Methodget_loss
for training and validation on fixed dataset
agent/pretrain/train_shortcut_agent.py:54
Methodget_loss
for training and validation on fixed dataset
agent/pretrain/train_diffusion_agent.py:55
Functionget_parallel_rotations
()
agent/dataset/d3il_dataset/geo_transform.py:311
Methodget_prev_action
(self, n_steps=None)
env/gym_utils/wrapper/multi_step.py:233
Functionget_quaternion_error
Calculates the difference between the current quaternion and the desired quaternion. See Siciliano textbook page 140 Eq 3.91 :param curr
agent/dataset/d3il_dataset/geo_transform.py:14
Methodget_seq_length
Returns the length of the idx-th trajectory.
agent/dataset/d3il_dataset/base_dataset.py:36
Methodinfer
(self,cond:dict, num_denoising_steps:int)
agent/eval/eval_diffusion_agent.py:69
Methodinfer
(self, cond:dict, num_denoising_steps:int)
agent/eval/eval_diffusion_img_agent.py:68
Methodinfer
(self, cond:dict, num_denoising_steps:int)
agent/eval/eval_reflow_img_agent.py:50
Methodinfer
(self, cond:dict, num_denoising_steps:int)
agent/eval/eval_shortcut_agent.py:51
Methodinfer
(self, cond:dict, num_denoising_steps:int)
agent/eval/eval_shortcut_img_agent.py:50
Methodinference
for testing purpose
agent/pretrain/train_reflow_agent.py:60
Methodinference
for testing purpose
agent/pretrain/train_shortcut_agent.py:60
Methodinference
for testing purpose
agent/pretrain/train_diffusion_agent.py:60
Methodinit_actor_ft
(self, policy_copy)
model/flow/ft_ppo/pposhortcut.py:105
Methodinit_exploration_noise_net
(self)
model/flow/mlp_shortcut.py:518
Functioninit_weights_vit_timm
ViT weight initialization, original timm impl (for reproducibility)
model/common/vit.py:226
Functionis_multiple_of_one_over_k
(value: float, K: int)
util/process.py:104
Functionlikelihood_fn
Compute an unbiased estimate to the log-likelihood in bits/dim. Args: cond: dict with key state/rgb; more recent obs at the end
model/diffusion/exact_likelihood.py:106
Methodloss
REINFORCE loss. Not used right now. Args: cond: dict with key state/rgb; more recent obs at the end stat
model/diffusion/diffusion_vpg.py:487
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W)
model/diffusion/diffusion_ppo.py:79
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) samples: (B, Ta, Da)
model/diffusion/diffusion_ppo_exact.py:102
Methodloss
Compute the combined loss for flow-matching (d=0) and self-consistency (d>0). Args: x1: (B, Ta, Da) - Real action trajec
model/flow/shortcutflow.py:99
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end "state": (B, To, Do) "rgb": (B, To, C, H, W
model/flow/ft_ppo/ppoflow.py:398
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W)
model/gaussian/gaussian_ppo.py:61
Methodloss
GRPO loss Inputs: obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do)
model/gaussian/gaussian_grpo.py:62
Methodloss
(self, obs, actions, reward)
model/gaussian/gaussian_vpg_grpo.py:83
Methodloss
(self, obs, chains, reward)
model/gaussian/gmm_vpg.py:67
Methodloss
(self, actions, obs, reward_weights)
model/gaussian/gaussian_rwr.py:49
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W)
model/gaussian/gmm_ppo.py:61
Methodloss
(self, obs, actions, reward)
model/gaussian/gaussian_vpg.py:87
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W)
model/rl/gaussian_ppo.py:61
Methodloss
(self, obs, chains, reward)
model/rl/gmm_vpg.py:67
Methodloss
(self, actions, obs, reward_weights)
model/rl/gaussian_rwr.py:49
Methodloss
PPO loss obs: dict with key state/rgb; more recent obs at the end state: (B, To, Do) rgb: (B, To, C, H, W)
model/rl/gmm_ppo.py:61
Methodloss
(self, obs, actions, reward)
model/rl/gaussian_vpg.py:90
Methodloss
no squashing
model/common/gaussian.py:71
Methodloss
( self, true_action, cond, **kwargs, )
model/common/gmm.py:62
Methodloss_actor
(self, obs, eta, act_steps)
model/diffusion/diffusion_dql.py:96
Methodloss_actor
(self, obs, actions, q_grad_coeff)
model/diffusion/diffusion_qsm.py:58
Methodloss_actor
Compute the actor loss combining behavior cloning, Q-value, and distillation losses, with debug information. Args: obs (Dict[str,
model/flow/ft_baselines/fql.py:210
Methodloss_actor
(self, obs)
model/gaussian/gaussian_ibrl.py:137
Methodloss_actor
(self, obs, alpha)
model/gaussian/gaussian_rlpd.py:122
Methodloss_actor
(self, obs, alpha)
model/gaussian/gaussian_calql.py:195
Methodloss_actor
(self, obs, alpha)
model/gaussian/gaussian_sac.py:82
← previousnext →601–700 of 864, ranked by callers