MCPcopy Create free account

hub / github.com/ReinFlow/ReinFlow / functions

Functions864 in github.com/ReinFlow/ReinFlow

↓ 129 callersMethodstep
r"""Take an action for each sub-environments. Parameters ---------- actions : element of :attr:`action_space` Bat
env/gym_utils/vector_env.py:111
↓ 51 callersMethodload
loads model from disk
agent/finetune/train_agent.py:174
↓ 46 callersMethodkeys
(self)
env/gym_utils/furniture_normalizer.py:101
↓ 40 callersMethodlog
train_prt_str_additional: str, additional information in training that will be printed to log console that is not included in train_prt_str_b
agent/finetune/reinflow/train_ppo_agent.py:458
↓ 37 callersMethodload_state_dict
(self, state_dict)
env/gym_utils/furniture_normalizer.py:82
↓ 35 callersMethodclose
(self)
data_process/hdf5_to_npz.py:52
↓ 34 callersMethodlog
(self, epoch, loss_train, loss_val, timer)
agent/pretrain/train_agent.py:481
↓ 28 callersMethodsample
Sample trajectories using the learned velocity field. Args: cond: Dictionary containing 'state' tensor of shape (batch_size, cond
model/flow/reflow.py:174
↓ 27 callersFunctionextract
(a, t, x_shape)
model/diffusion/sampling.py:45
↓ 26 callersMethodforward
(self, x, append=None)
model/common/mlp.py:105
↓ 20 callersMethodloss
Compute the MSE loss between predicted and target velocities. Args: xt: Corrupted data tensor of shape (batch_size, horizon_steps
model/flow/reflow.py:158
↓ 20 callersMethodsave_model
saves model to disk; no ema
agent/finetune/reinflow/train_agent.py:161
↓ 18 callersMethodclose
r"""Close all sub-environments and release resources. It also closes all the existing image viewers, then calls :meth:`close_extras` and set
env/gym_utils/vector_env.py:198
↓ 18 callersFunctionquat2euler
Convert Quaternion to Euler Angles. See rotation.py for notes
agent/dataset/d3il_dataset/geo_transform.py:151
↓ 17 callersFunctionsim_framework_path
Abstraction from os.path.join() Builds absolute paths from relative path strings with SIM_FRAMEWORK/ as root. If args already contains an
agent/dataset/d3il_dataset/__init__.py:6
↓ 16 callersMethodreset_env_all
(self, verbose=False, options_venv=None, **kwargs)
agent/finetune/reinflow/train_agent.py:183
↓ 15 callersMethodforward
**Args**: action: (B, Ta, Da) time: (B,) or int, diffusion step cond: dict with key state/rgb; more recen
model/flow/mlp_flow.py:97
↓ 15 callersMethodseed
Set the random seed in all sub-environments. Parameters ---------- seed : list of int, or int, optional Random se
env/gym_utils/vector_env.py:222
↓ 14 callersMethodforward
(self, cond, deterministic=False)
model/gaussian/gmm_vpg.py:46
↓ 14 callersMethodupdate
obs_venv: dict containing numpy.ndarray
agent/finetune/reinflow/buffer.py:147
↓ 13 callersMethodget_logprobs
( self, cond, actions, )
model/rl/gmm_vpg.py:54
↓ 12 callersMethodforward
(self, cond, deterministic=False)
model/rl/gmm_vpg.py:46
↓ 11 callersMethodforward
Inputs: action: (B, Ta, Da) - Current action trajectory time: (B,) - Current noise level t cond: (B, Do)
model/flow/mlp_shortcut.py:134
↓ 11 callersFunctionget_scheduler
examples: get_schedule('constant', level=0.2)) get_schedule('linear', max=0.2, hold_steps=100, anneal_steps=300, min=0.1))
util/scheduler_simple.py:56
↓ 10 callersMethod_assert_is_running
(self)
env/gym_utils/async_vector_env.py:656
↓ 10 callersFunctionlog_message
(message)
data_process/robomimic_convertor.py:50
↓ 10 callersFunctionread_eval_statistics
(npz_file_path)
agent/eval/visualize/utils.py:42
↓ 10 callersMethodreset
r"""Reset all sub-environments and return a batch of initial observations. Returns ------- element of :attr:`observation_spac
env/gym_utils/vector_env.py:88
↓ 10 callersMethodreset
(self)
agent/finetune/reinflow/buffer.py:77
↓ 9 callersMethodforward
Generate actions for a batch of observations using the actor with random noise. Args: cond (Dict[str, Tensor]): Dictionary contai
model/flow/ft_baselines/fql.py:134
↓ 9 callersMethodget_explained_var
(self, values, returns)
agent/finetune/reinflow/buffer.py:177
↓ 9 callersMethodloss_critic
(self, obs, advantages)
model/rl/gaussian_awr.py:46
↓ 9 callersMethodmake_dataset
(self)
agent/finetune/reinflow/buffer.py:137
↓ 9 callersMethodupdate_target_critic
(self, tau)
model/rl/gaussian_sac.py:104
↓ 8 callersMethod__init__
(self, n_steps, n_envs, horizon_steps, a
agent/finetune/reinflow/buffer.py:39
↓ 8 callersMethodget_actions
inputs: cond: dict, contatinin... 'state': obs. observation in robotics. torch.Tensor(batchsize, cond_steps, obs_
model/flow/ft_ppo/ppoflow.py:301
↓ 8 callersFunctionmake_timesteps
(batch_size, i, device)
model/diffusion/sampling.py:51
↓ 7 callersMethodadd
(self, step, state_venv, output_actions_venv, reward_venv, terminated_venv, truncated_venv, value_venv, logpro
agent/finetune/reinflow/buffer.py:88
↓ 7 callersMethodforward_train
Calls the MLP to compute the mean, scale, and logits of the GMM. Returns the torch.Distribution object.
model/common/gmm.py:78
↓ 7 callersMethodloss_actor
(self, obs, alpha)
model/rl/gaussian_sac.py:83
↓ 7 callersMethodprepare_run
(self)
agent/finetune/reinflow/train_ppo_agent.py:289
↓ 7 callersMethodprepare_video_path
(self)
agent/finetune/reinflow/train_ppo_agent.py:267
↓ 7 callersMethodreset_env
(self, env_ind, verbose=False)
agent/finetune/reinflow/train_agent.py:202
↓ 7 callersMethodset_model_mode
(self)
agent/finetune/reinflow/train_ppo_agent.py:276
↓ 7 callersMethodsummarize_episode_reward
(self)
agent/finetune/reinflow/buffer.py:185
↓ 7 callersMethodupdate_full_obs
(self)
agent/finetune/reinflow/buffer.py:155
↓ 7 callersMethodwrite
(self, message)
data_process/hdf5_to_npz.py:43
↓ 6 callersMethod_raise_if_errors
(self, successes)
env/gym_utils/async_vector_env.py:662
↓ 6 callersFunctionlog_tick_formatter
(val)
agent/eval/visualize/utils.py:38
↓ 6 callersMethodrun
(self)
agent/eval/eval_agent_base.py:201
↓ 5 callersMethod__init__
( self, embed_style, embed_dim, embed_norm, num_head, depth,
model/common/vit.py:173
↓ 5 callersMethodforward
x: (B, Ta, act_dim) time: (B,) or int, diffusion step cond: dict with key state/rgb; more recent obs at the end s
model/diffusion/unet.py:289
↓ 5 callersMethodget_logprobs
( self, cond, actions, )
model/gaussian/gmm_vpg.py:54
↓ 5 callersMethodnormalize_reward
normalize self.reward_trajs
agent/finetune/reinflow/buffer.py:166
↓ 5 callersMethodp_mean_var
(self, x, t, cond, index=None, network_override=None)
model/diffusion/diffusion.py:226
↓ 5 callersMethodset_noise_range
(self, logprob_denoising_std_range:list)
model/flow/mlp_flow.py:189
↓ 5 callersMethodupdate_lr
(self)
agent/finetune/reinflow/train_ppo_agent.py:259
↓ 4 callersMethod__init__
( self, horizon_steps, action_dim, cond_dim, time_dim=16, mlp_
model/flow/mlp_flow.py:43
↓ 4 callersMethodadjust_finetune_schedule
(self)
agent/finetune/reinflow/train_ppo_flow_agent.py:202
↓ 4 callersFunctionbatch_to_device
(batch, device="cuda:0")
agent/pretrain/utils.py:34
↓ 4 callersFunctioncurrent_time
()
util/timer.py:76
↓ 4 callersMethodforward
cond: dict with key state/rgb; more recent obs at the end state: (B, To, Do) or (B, num_feature) from ViT encoder
model/common/critic.py:64
↓ 4 callersMethodget_min_sampling_denoising_std
(self)
model/diffusion/diffusion_vpg.py:154
↓ 4 callersFunctionmake_async
Create a vectorized environment from multiple copies of an environment, from its id. Parameters ---------- env_name : str The
env/gym_utils/__init__.py:31
↓ 4 callersMethodq_sample
q(xₜ | x₀) = 𝒩(xₜ; √ α̅ₜ x₀, (1-α̅ₜ)I) xₜ = √ α̅ₜ xₒ + √ (1-α̅ₜ) ε
model/diffusion/diffusion.py:376
↓ 4 callersFunctionrepeated_space
(space, n)
env/gym_utils/wrapper/multi_step.py:54
↓ 4 callersMethodreset_arg
(self, options_list, **kwargs)
env/gym_utils/async_vector_env.py:709
↓ 4 callersMethodreset_one_arg
Reset one environment with options.
env/gym_utils/async_vector_env.py:721
↓ 4 callersMethodresume_training
(self)
agent/finetune/reinflow/train_ppo_agent.py:354
↓ 4 callersMethodsave_full_obs
(self, info_venv)
agent/finetune/reinflow/buffer.py:160
↓ 3 callersMethod__init__
( self, base_eta=0.5, min_eta=0.1, max_eta=1.0, **kwargs, )
model/diffusion/eta.py:36
↓ 3 callersMethod__init__
(self, dim)
model/diffusion/modules.py:64
↓ 3 callersMethod__init__
( self, horizon_steps, action_dim, cond_dim, td_emb_dim=16, # Embeddi
model/flow/mlp_shortcut.py:66
↓ 3 callersMethod_get_obs
Output (n_steps,) + obs_shape
env/gym_utils/wrapper/multi_step.py:218
↓ 3 callersMethod_poll
(self, timeout=None)
env/gym_utils/async_vector_env.py:621
↓ 3 callersMethodcalculate_parameters
DDPM parameters
model/diffusion/diffusion.py:116
↓ 3 callersFunctionclean_pycache
Remove all __pycache__ directories and .pyc files in the given directory and its subfolders. Args: directory (str): The root dir
util/clear_pycache.py:31
↓ 3 callersFunctioncompute_stats
(data_list)
agent/eval/visualize/sensitivity_sigma_entropy.py:150
↓ 3 callersFunctionextract_number
Extract the first number from a label string.
agent/eval/visualize/utils.py:32
↓ 3 callersMethodforward
x: (B, Ta, Da) time: (B,) or int, diffusion step cond: dict with key state/rgb; more recent obs at the end state:
model/diffusion/mlp_diffusion.py:240
↓ 3 callersMethodforward
use both pre-trained and online policies
model/gaussian/gaussian_ibrl.py:171
↓ 3 callersMethodforward
use both pre-trained and online policies
model/rl/gaussian_ibrl.py:171
↓ 3 callersMethodforward
(self, cond)
model/common/mlp_gaussian.py:273
↓ 3 callersMethodget_observation
(self, raw_obs)
env/gym_utils/wrapper/robomimic_lowdim.py:107
↓ 3 callersMethodloss_temperature
(self, obs, alpha, target_entropy)
model/rl/gaussian_sac.py:94
↓ 3 callersMethodminibatch_generator
(self)
agent/finetune/reinflow/train_ppo_flow_agent.py:330
↓ 3 callersMethodp_mean_var
( self, x, t, cond, index=None, use_base_policy=False,
model/diffusion/diffusion_vpg.py:161
↓ 3 callersFunctionquat_mul
(q0, q1)
agent/dataset/d3il_dataset/geo_transform.py:197
↓ 3 callersMethodrender
Not the best design
env/gym_utils/wrapper/multi_step.py:243
↓ 3 callersMethodset_logprob_noise_levels
create noise std for logrporbability calcualion. generate a tensor `self.logprob_noise_levels` of shape `[1, self.denoising_steps,
model/flow/mlp_flow.py:345
↓ 3 callersFunctionstack_last_n_obs
Apply padding
env/gym_utils/wrapper/multi_step.py:94
↓ 3 callersMethodupdate_img
bugfix:
agent/finetune/reinflow/buffer.py:1100
↓ 3 callersMethodupdate_lr_adaptive_kl
(self, approx_kl)
agent/finetune/reinflow/train_ppo_flow_agent.py:311
↓ 2 callersMethod__init__
( self, action_dim, cond_dim=None, diffusion_step_embed_dim=32, dim=32
model/diffusion/unet.py:145
↓ 2 callersMethod__init__
( self, cond_dim, mlp_dims, activation_type="Mish", use_layernorm=Fals
model/common/critic.py:40
↓ 2 callersMethod__init__
( self, dim_list, append_dim=0, append_layers=None, activation_type="T
model/common/mlp.py:50
↓ 2 callersMethod__init__
( self, output_dim, horizon, cond_dim, T_cond=1, n_layer=12,
model/common/transformer.py:240
↓ 2 callersMethod_get_target_remotes
Get the connection object needed to communicate with the wanted envs that are in subprocesses.
env/gym_utils/async_vector_env.py:702
↓ 2 callersMethod_turn_off_gradients
(self)
env/gym_utils/furniture_normalizer.py:77
↓ 2 callersMethodagent_update
(self, batch:Tuple[dict, Tensor, dict, Tensor, Tensor])
agent/finetune/flow_baselines/train_fql_agent.py:107
next →1–100 of 864, ranked by callers