MCPcopy Create free account

hub / github.com/ReinFlow/ReinFlow / functions

Functions864 in github.com/ReinFlow/ReinFlow

↓ 2 callersFunctionaggregate
(data, method="max")
env/gym_utils/wrapper/multi_step.py:79
↓ 2 callersMethodcall
Call a method, or get a property, from each sub-environment. Parameters ---------- name : string Name of the meth
env/gym_utils/vector_env.py:146
↓ 2 callersMethodclear_cache
(self)
agent/finetune/reinflow/train_agent.py:210
↓ 2 callersMethodclose_extras
r"""Clean up the extra resources e.g. beyond what's in this base class.
env/gym_utils/vector_env.py:194
↓ 2 callersFunctioncompute_average_time_saved
(tasks, method)
agent/eval/visualize/wall_time.py:100
↓ 2 callersFunctiondrift_fn
The drift function of the reverse-time SDE.
model/diffusion/exact_likelihood.py:68
↓ 2 callersFunctionembed_scalar
Generate a sinusoidal embedding for a scalar value.
agent/eval/visualize/visualize_nets.py:88
↓ 2 callersFunctioneuler2quat
Convert Euler Angles to Quaternions. See rotation.py for notes
agent/dataset/d3il_dataset/geo_transform.py:73
↓ 2 callersMethodevaluate
evaluate onestep policy or the multistep base policy.
agent/finetune/flow_baselines/train_fql_agent.py:382
↓ 2 callersFunctionextract_metrics_from_online_run
Extract metrics from an online W&B run using wandb.Api.
util/merge_wandb_online.py:75
↓ 2 callersFunctionextract_metrics_from_wandb_file
Extract metrics from W&B run's .wandb file using wandb.Api.
util/merge_wandb.py:46
↓ 2 callersMethodforward_train
Calls the MLP to compute the mean, scale, and logits of the GMM. Returns the torch.Distribution object.
model/common/gaussian.py:89
↓ 2 callersMethodgenerate_target
Generate training targets for the velocity field. Args: x1: Real data tensor of shape (batch_size, horizon_steps, action_dim).
model/flow/reflow.py:140
↓ 2 callersMethodget_logprobs
Calculating the logprobs of the entire chain of denoised actions. Args: cond: dict with key state/rgb; more rece
model/diffusion/diffusion_vpg.py:343
↓ 2 callersMethodget_loss
for training and validation on fixed dataset
agent/pretrain/train_agent.py:316
↓ 2 callersMethodget_observation
(self, raw_obs)
env/gym_utils/wrapper/robomimic_image.py:117
↓ 2 callersMethodget_random_indices
get num_ind random indices from a set of size sz (used for getting critic targets)
model/gaussian/gaussian_ibrl.py:83
↓ 2 callersMethodget_random_indices
get num_ind random indices from a set of size sz (used for getting critic targets)
model/rl/gaussian_ibrl.py:83
↓ 2 callersMethodinspect_memory
(self)
agent/finetune/reinflow/train_agent.py:216
↓ 2 callersMethodloss_bc_flow
Compute the behavior cloning flow loss by comparing predicted and target flow values. This is the same as doing pre-training. Args:
model/flow/ft_baselines/fql.py:154
↓ 2 callersFunctionmat2euler
Convert Rotation Matrix to Euler Angles. See rotation.py for notes
agent/dataset/d3il_dataset/geo_transform.py:92
↓ 2 callersMethodnormalize_obs
(self, obs)
env/gym_utils/wrapper/mujoco_locomotion_lowdim.py:80
↓ 2 callersMethodnormalize_obs
(self, obs)
env/gym_utils/wrapper/d3il_lowdim.py:87
↓ 2 callersFunctionplot
(out, name)
script/dataset/filter_d3il_avoid_data.py:227
↓ 2 callersFunctionplot
(out, name)
script/dataset/process_d3il_dataset.py:174
↓ 2 callersMethodplot_state_trajecories
(self)
agent/finetune/reinflow/train_ppo_agent.py:343
↓ 2 callersMethodprint_architecture
(self)
agent/pretrain/train_agent.py:293
↓ 2 callersMethodprocess_obs
(self, obs: torch.Tensor)
env/gym_utils/wrapper/furniture.py:182
↓ 2 callersFunctionquat_conjugate
(q)
agent/dataset/d3il_dataset/geo_transform.py:191
↓ 2 callersMethodrender
(self, mode="rgb_array", width:int=256, height:int=256)
env/gym_utils/wrapper/robomimic_image.py:196
↓ 2 callersMethodreset
Resets the environment.
env/gym_utils/wrapper/furniture.py:112
↓ 2 callersMethodreset
Resets the environment.
env/gym_utils/wrapper/multi_step.py:134
↓ 2 callersMethodreset
(self)
util/scheduler_simple.py:53
↓ 2 callersMethodreset_async
( self, seed: Optional[Union[int, List[int]]] = None, return_info: bool = False,
env/gym_utils/vector_env.py:72
↓ 2 callersMethodreset_parameters
(self)
agent/pretrain/train_agent.py:398
↓ 2 callersMethodreset_wait
( self, seed: Optional[Union[int, List[int]]] = None, return_info: bool = False,
env/gym_utils/vector_env.py:80
↓ 2 callersMethodsample_action
simply return action via integration (Euler's method). the initial noise could be specified. when `save_chains` is True, also return
model/flow/mlp_flow.py:140
↓ 2 callersMethodsample_first_point
B: batchsize outputs: xt: torch.Tensor of shape `[batchsize, self.horizon_steps, self.action_dim]` log_prob:
model/flow/ft_ppo/ppoflow.py:182
↓ 2 callersMethodsave_last_model
for resume purpose
agent/pretrain/train_agent.py:446
↓ 2 callersMethodsave_model
saves model and ema to disk;
agent/pretrain/train_agent.py:407
↓ 2 callersFunctionscore_fn
Use [:, None, None] to add two dimensions (horizon and transition)
model/diffusion/sde_lib.py:52
↓ 2 callersMethodsde
(self, x, t)
model/diffusion/sde_lib.py:90
↓ 2 callersMethodseed
(self, seed=None)
env/gym_utils/async_vector_env.py:242
↓ 2 callersMethodseed
(self, seed=None)
env/gym_utils/wrapper/d3il_lowdim.py:63
↓ 2 callersMethodseed
(self, seed=None)
env/gym_utils/wrapper/robomimic_image.py:137
↓ 2 callersFunctionstack_last_n_obs_dict
Apply padding
env/gym_utils/wrapper/furniture.py:43
↓ 2 callersFunctionstack_repeated
(x, n)
env/gym_utils/wrapper/multi_step.py:41
↓ 2 callersMethodstep_async
(self, actions)
env/gym_utils/vector_env.py:105
↓ 2 callersMethodstep_ema
(self)
agent/pretrain/train_agent.py:401
↓ 2 callersMethodstep_wait
(self, **kwargs)
env/gym_utils/vector_env.py:108
↓ 2 callersFunctiontd_values
Gives a list of TD estimates for a given list of samples from an RL environment. The TD(λ) estimator is used for this computation. :
agent/finetune/diffusion_baselines/train_awr_diffusion_agent.py:48
↓ 2 callersMethodtest
(self)
agent/pretrain/train_agent.py:561
↓ 2 callersMethodupdate
(self, x)
util/reward_scaling.py:47
↓ 2 callersMethodupdate_target_actor
(self, tau)
model/rl/gaussian_ibrl.py:161
↓ 1 callersMethod__init__
( self, action_dim, horizon_steps, cond_dim, time_dim=16, mlp_
model/diffusion/mlp_diffusion.py:198
↓ 1 callersMethod__init__
Construct an SDE. Args: N: number of discretization time steps.
model/diffusion/sde_lib.py:74
↓ 1 callersMethod__init__
Initialize the FQL model with behavior cloning flow, actor, critic, and target critic. Args: bc_flow (ReFlow): Behavior cloning f
model/flow/ft_baselines/fql.py:108
↓ 1 callersMethod__init__
( self, action_dim, horizon_steps, cond_dim, mlp_dims=[256, 256, 256],
model/common/mlp_gaussian.py:204
↓ 1 callersMethod__init__
(self, optimizer, warmup_steps, target_lr, mode, min_lr, patience, factor, threshold)
util/scheduler.py:154
↓ 1 callersMethod__init__
( self, dataset_path, horizon_steps=64, cond_steps=1, img_cond_steps=1
agent/dataset/sequence.py:44
↓ 1 callersMethod__init__
( self, data_directory: os.PathLike, # data='train', device="cpu", obs
agent/dataset/d3il_dataset/stacking_dataset.py:23
↓ 1 callersMethod__init__
( self, data_directory: os.PathLike, device="cpu", obs_dim: int = 20,
agent/dataset/d3il_dataset/sorting_dataset.py:22
↓ 1 callersMethod__init__
( self, data_directory: os.PathLike, device="cpu", obs_dim: int = 20,
agent/dataset/d3il_dataset/aligning_dataset.py:23
↓ 1 callersMethod__init__
(self, cfg)
agent/pretrain/train_agent.py:708
↓ 1 callersMethod_add_info
(self, info)
env/gym_utils/wrapper/multi_step.py:239
↓ 1 callersMethod_check_spaces
(self)
env/gym_utils/sync_vector_env.py:212
↓ 1 callersMethod_denormalize
(self, x, key)
env/gym_utils/furniture_normalizer.py:65
↓ 1 callersMethod_ff_block
(self, x)
model/common/vit.py:167
↓ 1 callersMethod_inner_step
(self, action_chunk: torch.Tensor)
env/gym_utils/wrapper/furniture.py:162
↓ 1 callersMethod_normalize
(self, x, key)
env/gym_utils/furniture_normalizer.py:59
↓ 1 callersFunctionadd_license_to_file
Adds the MIT License to the specified Python file if it doesn't already contain it. Preserves the existing content of the file.
util/license_marker.py:121
↓ 1 callersMethodadjust_finetune_schedule
(self)
agent/finetune/reinflow/train_ppo_shortcut_agent.py:197
↓ 1 callersMethodadjust_finetune_schedule
(self)
agent/finetune/reinflow/train_ppo_diffusion_agent.py:93
↓ 1 callersMethodagent_update
(self, verbose=False)
agent/finetune/reinflow/train_ppo_diffusion_img_agent.py:111
↓ 1 callersMethodagent_update
(self, verbose=True)
agent/finetune/reinflow/train_ppo_flow_agent.py:399
↓ 1 callersMethodagent_update
(self, verbose=True)
agent/finetune/reinflow/train_ppo_flow_img_agent.py:219
↓ 1 callersMethodagent_update
(self)
agent/finetune/reinflow/train_ppo_agent.py:395
↓ 1 callersMethodagent_update
(self, verbose=True)
agent/finetune/reinflow/train_ppo_shortcut_img_agent.py:214
↓ 1 callersMethodagent_update
(self, verbose=True)
agent/finetune/reinflow/train_ppo_shortcut_agent.py:395
↓ 1 callersMethodagent_update
(self, verbose=False)
agent/finetune/reinflow/train_ppo_diffusion_agent.py:117
↓ 1 callersFunctionbackward_discounted_sum
(prevret, reward, first, gamma)
util/reward_scaling_ts.py:83
↓ 1 callersFunctionbackward_discounted_sum
( prevret, # value predictions reward, # reward first, # mark beginning of episodes" gamma,
util/reward_scaling.py:99
↓ 1 callersFunctioncalculate_average_episode_reward
Calculate the average episode reward from the rewards array and done indices.
data_process/hdf5_to_npz.py:55
↓ 1 callersFunctioncalculate_time_saved
(dppo_avg, reinflow_avg)
agent/eval/visualize/wall_time.py:94
↓ 1 callersMethodcall_async
(self, name, *args, **kwargs)
env/gym_utils/vector_env.py:140
↓ 1 callersMethodcall_sync
Call instance methods of vectorized environments.
env/gym_utils/async_vector_env.py:685
↓ 1 callersMethodcall_sync_arg
Call instance methods of vectorized environments with args.
env/gym_utils/async_vector_env.py:692
↓ 1 callersMethodcall_wait
(self, **kwargs)
env/gym_utils/vector_env.py:143
↓ 1 callersFunctioncheck_mode
(x)
script/dataset/filter_d3il_avoid_data.py:74
↓ 1 callersFunctioncompare_checkpoints
Compare two checkpoint dictionaries for equality. rtol: relative tolerance for floating-point comparison atol: absolute tolerance for flo
util/compare_ckpts.py:48
↓ 1 callersFunctioncompare_npz_files
(file1_path, file2_path)
util/compare_npz.py:33
↓ 1 callersMethodcompute_advantages
(self, obs, actions)
model/diffusion/diffusion_idql.py:63
↓ 1 callersFunctioncompute_stats
(data_list)
agent/eval/visualize/compare_denoising_models_finetune.py:110
↓ 1 callersFunctioncosine_beta_schedule
cosine schedule as proposed in https://openreview.net/forum?id=-NEXDKk8gZ
model/diffusion/sampling.py:32
↓ 1 callersFunctioncreate_bordered_text
(text, border_char='#')
util/logging_custom.py:25
↓ 1 callersMethodcreate_video_recorder
(self, num_denoising_steps:int)
agent/eval/eval_agent_base.py:305
↓ 1 callersFunctioncrop_pdf_any_percent
Crop a PDF by specified percentages from the left, right, top, and bottom of each page. Parameters: - input_pdf_path (str): Path to
agent/eval/visualize/crop_pdfs.py:25
↓ 1 callersMethodcurrent_time
(self)
agent/eval/eval_agent_base.py:458
↓ 1 callersFunctiondict_take_last_n
(x, n)
env/gym_utils/wrapper/multi_step.py:72
↓ 1 callersFunctiondiv_fn
( model, x, t, noise, create_graph=False, **kwargs, )
model/diffusion/exact_likelihood.py:86
← previousnext →101–200 of 864, ranked by callers