MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 3 callersFunctionexpected_ray
(x, y)
cosmos_predict2/_src/imaginaire/modules/camera_test.py:149
↓ 3 callersMethodfrom_rotation_matrix
Convert rotation matrix/matrices to quaternion(s). Args: R (torch.Tensor [...,3,3]): Rotation matrix/matrices. eps (f
cosmos_predict2/_src/imaginaire/modules/camera.py:556
↓ 3 callersMethodgenerate_embeddings
(self, B_T_H_W_C: torch.Size)
cosmos_predict2/_src/predict2/networks/wan2pt1.py:95
↓ 3 callersMethodgenerate_vid2world
Generates a video based on an input image or video and text prompt. Processes the input, prepares the data batch, runs the diffusion
cosmos_predict2/_src/predict2/inference/video2world.py:435
↓ 3 callersMethodget_actions
Get next batch of actions. Returns shape (num_actions, action_dim).
cosmos_predict2/_src/predict2/interactive/inference/action_video2world_teleop.py:102
↓ 3 callersFunctionget_buffer_name
This function creates buffer name used by EMA from parameter's name Args: param_name (str): Model's parameter name Returns:
cosmos_predict2/_src/imaginaire/utils/ema.py:94
↓ 3 callersMethodget_camera_center
Get the camera center in world coordinates for a given world2cam pose. Args: cam_pose (torch.Tensor/np.ndarray [...,3,4]): Camera
cosmos_predict2/_src/imaginaire/modules/camera.py:266
↓ 3 callersFunctionget_checkpoint_by_s3
Return checkpoint config for S3 URI.
cosmos_predict2/_src/imaginaire/utils/checkpoint_db.py:911
↓ 3 callersMethodget_context_parallel_group
(self)
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:40
↓ 3 callersMethodget_context_parallel_group
()
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:351
↓ 3 callersFunctionget_default_params
(cls_or_func)
cosmos_predict2/_src/imaginaire/lazy_config/lazy.py:73
↓ 3 callersMethodget_dtype
(self)
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:1028
↓ 3 callersMethodget_env
( self, *, torchrun_args: list[str] | None = None, inference_args: list[str] |
packages/cosmos-oss/cosmos_oss/fixtures/script.py:62
↓ 3 callersMethodget_key_meta
Get the metadata for a key in the LeRobot modality metadata. Args: key (str): The key to get the metadata for. Returns:
groot_dreams/data/schema.py:107
↓ 3 callersFunctionget_model_literal
Get model literal for a given variant.
cosmos_predict2/config.py:199
↓ 3 callersMethodget_num_video_latent_frames
(self)
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:1129
↓ 3 callersMethodget_num_video_latent_frames
(self)
cosmos_predict2/_src/predict2/models/text2world_model.py:1005
↓ 3 callersMethodget_plucker_rays
Get Plücker coordinates (moment, direction) for each pixel center. Args: cam_pose (torch.Tensor/np.ndarray [...,3,4]): Camera pos
cosmos_predict2/_src/imaginaire/modules/camera.py:214
↓ 3 callersMethodget_previous_checkpoint_results
Get the results of previously submitted checkpoints and pass them to callbacks if checkpoint succeeded
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:619
↓ 3 callersFunctionget_rev_ts
Generate a sequence of reverse time steps. Args: t_min (float): The minimum time value. t_max (float): The maximum time valu
cosmos_predict2/_src/imaginaire/modules/res_sampler.py:71
↓ 3 callersMethodget_stat
(self)
cosmos_predict2/_src/predict2/callbacks/wandb_log.py:44
↓ 3 callersMethodget_stats
Calculate and return statistics across all metrics. Returns: Dictionary containing averaged metrics
cosmos_predict2/_src/predict2/distill/callbacks/wandb_log_rcm.py:78
↓ 3 callersMethodget_storage_reader
(self, checkpoint_path: str)
cosmos_predict2/_src/predict2/checkpointer/dcp.py:692
↓ 3 callersMethodget_storage_writer
(self, checkpoint_path: str)
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:643
↓ 3 callersFunctionget_video_text_transform
( caption_type: str, embedding_type: Optional[str] = "t5_xxl", long_caption_ratio: int = 7, me
cosmos_predict2/_src/predict2/datasets/augmentor_provider.py:103
↓ 3 callersMethodget_x0_fn_from_batch
Generates a callable function `x0_fn` based on the provided data batch and guidance factor. This function first processes the input
cosmos_predict2/_src/predict2/models/text2world_model.py:485
↓ 3 callersFunctionimport_module
Import a module by name. Args: full_module_name: The fully qualified name of the module to import. reload: If True, reload t
cosmos_predict2/_src/imaginaire/utils/config_helper.py:161
↓ 3 callersFunctioninit_environment
Initialize environment.
packages/cosmos-oss/cosmos_oss/init.py:154
↓ 3 callersFunctioninit_output_dir
Initialize output directory.
packages/cosmos-oss/cosmos_oss/init.py:169
↓ 3 callersMethodintrinsic_matrices_to_params
Extract (fx, fy, cx, cy) from camera intrinsic matrix/matrices. Args: cam_intr (torch.Tensor/np.ndarray [...,3,3]): Camera intrin
cosmos_predict2/_src/imaginaire/modules/camera.py:399
↓ 3 callersFunctionis_fp8
(dtype: torch.dtype)
cosmos_predict2/_src/imaginaire/attention/utils/__init__.py:62
↓ 3 callersFunctionis_primitive
(value)
cosmos_predict2/_src/imaginaire/utils/primitives.py:17
↓ 3 callersFunctionis_rank0
Check if current process is the master GPU. Returns: (bool): True if this function is called from the master GPU, else False.
cosmos_predict2/_src/imaginaire/utils/distributed.py:109
↓ 3 callersMethodlist
List all keys in an S3 bucket with a given prefix, excluding files that start with specified prefix. Args: filep
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:599
↓ 3 callersMethodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: Boto3 has no concept of directorie
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:728
↓ 3 callersFunctionload_model_state_dict_from_checkpoint
( model, config, s3_checkpoint_dir, load_ema_to_reg=False, local_cache_dir=None, overr
cosmos_predict2/_src/predict2/utils/model_loader.py:195
↓ 3 callersFunctionmain
()
packages/cosmos-oss/cosmos_oss/scripts/train.py:63
↓ 3 callersMethodmultiply
Hamilton product of two quaternion sets. Args: q1 (torch.Tensor [...,4]): Left quaternion(s) in (x, y, z, w) order. q
cosmos_predict2/_src/imaginaire/modules/camera.py:639
↓ 3 callersMethodon_before_zero_grad
Hook before zero_grad() is called. Args: optimizer (torch.optim.Optimizer): The model optimizer. scheduler (torch.opt
cosmos_predict2/_src/imaginaire/model.py:108
↓ 3 callersMethodon_train_start
(self, model: ImaginaireModel, iteration: int = 0)
cosmos_predict2/_src/predict2/distill/callbacks/wandb_log_base.py:51
↓ 3 callersFunctionpad_fn
(x)
cosmos_predict2/_src/predict2/utils/flash_attention_jvp_triton.py:402
↓ 3 callersFunctionparallelize_qwen
Apply tensor parallelism, activation checkpointing, torch.compile, and data parallelism to the model. NOTE: The passed-in model preferab
cosmos_predict2/_src/reason1/parallelisms/parallelize_qwen.py:48
↓ 3 callersMethodpretty_print
(self, use_color: bool = False)
cosmos_predict2/_src/imaginaire/config.py:440
↓ 3 callersFunctionprint_gpu_mem
(str=None)
cosmos_predict2/_src/imaginaire/utils/device.py:67
↓ 3 callersFunctionread_keyword_list_from_dir
Read keyword list from all files in a folder.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/blocklist/utils.py:22
↓ 3 callersMethodred
(x: str)
cosmos_predict2/_src/imaginaire/utils/misc.py:396
↓ 3 callersFunctionreg_eps_euler_step
Perform a regularized Euler step based on epsilon prediction. Args: x_s: Current state tensor. s: Current time tensor.
cosmos_predict2/_src/imaginaire/functional/runge_kutta.py:119
↓ 3 callersMethodregister
(self, entry, value)
cosmos_predict2/_src/imaginaire/utils/registry.py:50
↓ 3 callersFunctionregister_backend
Register a backend. Args: name (str): The name of the registered backend. backend (class, optional): The backend class to be regi
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/registry_utils.py:76
↓ 3 callersFunctionregister_callbacks
()
cosmos_predict2/_src/predict2/interactive/configs/callbacks.py:53
↓ 3 callersFunctionregister_conditioner
()
cosmos_predict2/_src/predict2/interactive/configs/conditioner.py:24
↓ 3 callersFunctionregister_training_and_val_data
()
cosmos_predict2/_src/predict2/configs/common/defaults/dataloader.py:126
↓ 3 callersMethodreset
Reset all metrics to their default values.
cosmos_predict2/_src/predict2/distill/callbacks/wandb_log_rcm.py:45
↓ 3 callersMethodreset_parameters
(self)
cosmos_predict2/_src/predict2/distill/networks/discriminator.py:44
↓ 3 callersMethodrestore
(self, parameters: Any)
cosmos_predict2/_src/predict2/utils/dtensor_helper.py:63
↓ 3 callersFunctionrotate_half
Rotates half the hidden dims of the input.
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:288
↓ 3 callersMethodrun
(self, step_count)
cosmos_predict2/_src/reason1/parallelisms/torchtitan_utilts.py:171
↓ 3 callersMethodrun_batch
Run VQA evaluation on all MP4 files in the configured directory. Returns: Dictionary mapping video filenames to their re
packages/cosmos-oss/vqa/batch_runner.py:288
↓ 3 callersMethodsave
Save network weights, optimizer parameters, scheduler parameters to a checkpoint. Args: model (ImaginaireModel): The PyTorch mode
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:674
↓ 3 callersMethodsave
Save network weights, optimizer parameters, scheduler parameters to a checkpoint. Args: model_parts (list[nn.Module]): The PyTorc
cosmos_predict2/_src/reason1/utils/dcp_checkpointer.py:459
↓ 3 callersMethodsave_object
Helper function for saving object to storage. Args: object (Any): The object to upload. key (str): The key of the obj
cosmos_predict2/_src/imaginaire/utils/object_store.py:135
↓ 3 callersMethodset_camera_conditioned_ar_video_condition
( self, gt_frames: torch.Tensor, num_conditional_frames: Optional[int] = None,
cosmos_predict2/_src/predict2/camera/configs/multiview_camera/conditioner.py:190
↓ 3 callersMethodset_chunk_size
Set chunk size Args: chunk_size (int): chunk size used in webdataset creation
cosmos_predict2/_src/imaginaire/datasets/webdataset/distributors/basic.py:81
↓ 3 callersMethodset_context_parallel_group
(self, process_group, ranks, stream, cp_comm_type: str = "p2p")
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:1238
↓ 3 callersMethodset_context_parallel_group
(self, process_group, ranks, stream)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:1090
↓ 3 callersMethodset_context_parallel_group
(self, process_group, ranks, stream)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:1091
↓ 3 callersMethodset_urls
Set urls Args: urls (list[TarSample]): a list of tar files along with their metadata
cosmos_predict2/_src/imaginaire/datasets/webdataset/distributors/basic.py:73
↓ 3 callersFunctionsrgb2lin
Convert sRGB values to physically linear ones. The transformation is uniform in RGB, so *srgb* can be of any shape. *srgb* values should rang
cosmos_predict2/_src/imaginaire/utils/replace_bg_color.py:37
↓ 3 callersMethodstep
(self)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:93
↓ 3 callersMethodto_homogeneous
Get homogeneous coordinates of the input points. Args: points (torch.Tensor/np.ndarray [...,K]): Input coordinates. Retu
cosmos_predict2/_src/imaginaire/modules/camera.py:282
↓ 3 callersFunctionto_tensor
Convert tensor data type from uint8 to float, divide value by 255.0 and permute the dimensions of clip tensor Args: clip (torch.t
cosmos_predict2/_src/imaginaire/utils/dataset_utils.py:322
↓ 3 callersMethodtrain
The training function. Args: model (ImaginaireModel): The PyTorch model. dataloader_train (torch.utils.data.DataLoade
cosmos_predict2/_src/predict2/distill/trainer/trainer_distillation.py:144
↓ 3 callersMethodupdate_usage
(self, min_enc)
external/lam_project/lam/modules/blocks.py:255
↓ 3 callersMethodyellow
(x: str)
cosmos_predict2/_src/imaginaire/utils/misc.py:412
↓ 2 callersMethod__call__
(self, func_name: str)
cosmos_predict2/_src/imaginaire/utils/misc.py:362
↓ 2 callersMethod__get__
(self, obj, objtype=None)
cosmos_predict2/_src/imaginaire/utils/validator.py:45
↓ 2 callersMethod__init__
Initialize the dataset. Args: dataset_path (Path | str): The path to the dataset. modality_configs (dict[str
groot_dreams/data/dataset.py:81
↓ 2 callersMethod__init__
(self, *args, **kwargs)
cosmos_predict2/_src/predict2/networks/a2a_cp.py:223
↓ 2 callersMethod__init__
( self, vocab_size=250002, max_seq_len=514, type_size=1, pad_id=1,
cosmos_predict2/_src/predict2/networks/xlm_roberta.py:92
↓ 2 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0)
cosmos_predict2/_src/predict2/action/networks/action_conditioned_minimal_v1_lvg_dit.py:29
↓ 2 callersMethod__init__
Initialize S3FileSystem with retry configuration. Args: credential_path: Path to AWS credentials JSON file m
cosmos_predict2/_src/imaginaire/checkpointer/s3_filesystem.py:49
↓ 2 callersMethod__init__
Initialize the depth to point cloud converter. Args: input_keys: List of input keys (typically ['depth', 'intrinsics', 'world_to_
cosmos_predict2/_src/imaginaire/datasets/webdataset/augmentors/geometry/pointcloud.py:37
↓ 2 callersMethod_apply_funcs
(x: torch.Tensor, funcs: list)
groot_dreams/data/transform/state_action.py:64
↓ 2 callersMethod_async_with_pinned_memory
(self, checkpoint_file: str, state_dict: Dict[str, Tuple[Any, str]])
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:585
↓ 2 callersFunction_attn_fwd_inner
( acc, acc_A, acc_B, l_i, m_i, r_i, q, tq, # K_block_ptr, V_block_ptr
cosmos_predict2/_src/predict2/utils/flash_attention_jvp_triton.py:47
↓ 2 callersMethod_augment_image_dim_inplace
(self, data_batch: dict[str, Tensor], input_key: str = None)
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:580
↓ 2 callersFunction_convert_target_to_string
Inverse of ``locate()``. Args: t: any object with ``__module__`` and ``__qualname__``
cosmos_predict2/_src/imaginaire/lazy_config/registry.py:29
↓ 2 callersMethod_ddp_equalize
r"""This function performs tar file equalization. That is, we repeat the number of tars in each aspect ratio so that when the tars are split a
cosmos_predict2/_src/imaginaire/datasets/webdataset/distributors/multi_aspect_ratio.py:138
↓ 2 callersFunction_format_files_list
(files: list[dict] | None = None, output_dir: str | None = None)
packages/cosmos-gradio/cosmos_gradio/gradio_app/gradio_file_server.py:188
↓ 2 callersMethod_forward
Processes the input batch through all configured embedders, applying conditional dropout rates if specified. Output tensors for each
cosmos_predict2/_src/predict2/conditioner.py:446
↓ 2 callersFunction_from_dict_value
( x: T, field_type: type, concrete_type: type, field_name: str, force_construct_target: bo
cosmos_predict2/_src/imaginaire/serialization.py:233
↓ 2 callersMethod_get_interpolation
Get the interpolation mode for the given backend. Args: interpolation (str): The interpolation mode. backend
groot_dreams/data/transform/video.py:210
↓ 2 callersFunction_get_rank
Get the rank (GPU device) of the worker. Returns: rank (int): The rank of the worker.
cosmos_predict2/_src/imaginaire/utils/log.py:149
↓ 2 callersMethod_get_word_inds
Args: text (str): string in which we will search for the word word_ind (int): index of the word inside of this string
cosmos_predict2/_src/imaginaire/modules/nlp/t5xxl/t5encoder.py:114
↓ 2 callersFunction_handle_api_file_upload_event_list
(files: list[Any], upload_dir: str)
packages/cosmos-gradio/cosmos_gradio/gradio_app/gradio_file_server.py:111
↓ 2 callersMethod_init_client
Initialize the S3 client.
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:299
↓ 2 callersMethod_initialize_context_parallel
(self, cp_group: distributed.ProcessGroup, cp_grid_shape)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:948
↓ 2 callersMethod_initialize_model
Lazy-load the Cosmos Reason model.
packages/cosmos-oss/vqa/evaluator.py:76
↓ 2 callersMethod_is_image_batch
(self, x: torch.Tensor)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:944
↓ 2 callersFunction_make_dummy_tree
(x: Any)
cosmos_predict2/_src/imaginaire/utils/graph.py:383
← previousnext →401–500 of 3,821, ranked by callers