MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 6 callersFunctionprint_error
(message)
scripts/check_environment.py:72
↓ 6 callersFunctionprint_success
(package, version=None)
packages/cosmos-oss/scripts/check_environment.py:66
↓ 6 callersFunctionprint_success
(package, version=None)
scripts/check_environment.py:66
↓ 6 callersFunctionregister_ckpt_type
()
cosmos_predict2/_src/predict2/configs/common/defaults/ckpt_type.py:28
↓ 6 callersFunctionregister_tokenizer
()
cosmos_predict2/_src/predict2/configs/common/defaults/tokenizer.py:25
↓ 6 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:538
↓ 6 callersFunctionrepeat_kv
This is the equivalent of torch.repeat_interleave(x, dim=1, repeats=n_rep). The hidden states go from (batch, num_key_value_heads, seqlen, he
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:705
↓ 6 callersFunctionsample_chunk_index_from_chunked_video
Sample a chunk from the chunked videos. Our videos are stored as regular mp4 files but with chunked captions. There is one caption per [chunk_siz
cosmos_predict2/_src/predict2/datasets/decoders/video_decoder.py:59
↓ 6 callersMethodset_camera_conditioned_video_condition
( self, gt_frames: torch.Tensor, num_conditional_frames: Optional[int] = None, )
cosmos_predict2/_src/predict2/camera/configs/multiview_camera/conditioner.py:42
↓ 6 callersFunctionsplit_inputs_cp
Split input tensor along the sequence dimension for checkpoint parallelism. This function divides the input tensor into equal parts along th
cosmos_predict2/_src/imaginaire/utils/context_parallel.py:34
↓ 6 callersFunctionto_qualitified_name
(x: Any)
cosmos_predict2/_src/imaginaire/serialization.py:89
↓ 5 callersMethod__init__
( self, input_key: List[str], dropout_rate: Optional[float] = 0.0, use_empty_s
cosmos_predict2/_src/predict2/conditioner.py:241
↓ 5 callersMethod__init__
(self, module, module_id, plugin_config, cp_group, grid_shape, in_row_adj_groups, in_col_adj_groups)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1_2d_plugins.py:83
↓ 5 callersMethod__init__
(self, model_dim: int, num_heads: int, dropout: float = 0.0)
external/lam/modules/blocks.py:92
↓ 5 callersFunctionapply_rotary_emb
(freqs, t, start_index=0, scale=1.0, seq_dim=-2)
external/lam/modules/embeddings.py:34
↓ 5 callersFunctionattention_param_checks
( query: Tensor, key: Tensor, value: Tensor, is_causal: bool, causal_type: CausalType, )
cosmos_predict2/_src/imaginaire/attention/checks.py:335
↓ 5 callersFunctionattention_tensor_checks
( query: Tensor, key: Tensor, value: Tensor, supported_dtypes_forward: list[torch.dtype] | Non
cosmos_predict2/_src/imaginaire/attention/checks.py:155
↓ 5 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/action/configs/action_conditioned/experiment/exp_2B_action_conditioned_rectify_flow.py:54
↓ 5 callersMethodbuild_net
(self, net_config_dict)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:150
↓ 5 callersMethodcamera2world
Given the camera pose, transform input 3D points from camera coordinates to world coordinates. Args: points (torch.Tensor/np.ndar
cosmos_predict2/_src/imaginaire/modules/camera.py:318
↓ 5 callersMethodcheck_partial_match
Check robustly if normalized word and the matching target have a difference of up to guardrail_partial_match_letter_count characters.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/blocklist/blocklist.py:95
↓ 5 callersMethodcleanup
Clean up server resources and shutdown workers.
packages/cosmos-gradio/cosmos_gradio/model_ipc/model_server.py:221
↓ 5 callersMethodclear_cache
(self)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:584
↓ 5 callersMethodcopyfile
Copy a file src to dst and return the destination file. If dst specifies a file that already exists, it will be replaced. Args:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:470
↓ 5 callersMethodencode
(self, text_batch)
cosmos_predict2/_src/imaginaire/modules/nlp/t5xxl/t5encoder.py:87
↓ 5 callersMethodexists
Check if an object exists in S3 with retry logic.
cosmos_predict2/_src/imaginaire/checkpointer/s3_filesystem.py:231
↓ 5 callersMethodextrinsic_params_to_matrices
Convert (x,y,z,w, tx,ty,tz) to world2cam extrinsic matrix/matrices [R|t]. Args: qxyzw_t (torch.Tensor/np.ndarray [...,7]): Quater
cosmos_predict2/_src/imaginaire/modules/camera.py:431
↓ 5 callersFunctionfp16_clamp
(x)
cosmos_predict2/_src/predict2/inference/get_umt5_emb.py:115
↓ 5 callersMethodgenerate
(self, samples: list[InferenceArguments], output_dir: Path)
cosmos_predict2/inference.py:76
↓ 5 callersMethodgenerate_samples_from_batch
Generate samples from the batch. Based on given batch, it will automatically determine whether to generate image or video samples. Ar
cosmos_predict2/_src/predict2/models/text2world_model.py:540
↓ 5 callersMethodget
(self, filepath: str, offset: Optional[int] = None, size: Optional[int] = None)
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:345
↓ 5 callersFunctionget_config_module
(config_file: str)
cosmos_predict2/_src/imaginaire/utils/config_helper.py:150
↓ 5 callersMethodget_data_and_condition
(self, data_batch: dict[str, torch.Tensor])
cosmos_predict2/_src/predict2/models/text2world_model.py:727
↓ 5 callersFunctionget_data_batch_size
Get the batch size from a data batch, a (possibly hierarchical) dictionary of tensors. Args: data (dict[str, torch.Tensor]): Data batch (
cosmos_predict2/_src/imaginaire/utils/misc.py:182
↓ 5 callersMethodget_val_dict
(cls)
cosmos_predict2/_src/imaginaire/utils/validator_params.py:163
↓ 5 callersMethodinit_weights
(self)
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:1265
↓ 5 callersMethodinit_weights
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:1116
↓ 5 callersMethodinit_weights
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:1117
↓ 5 callersMethodis_student_phase
(self, iteration: int)
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:439
↓ 5 callersMethodisdir
Check whether a file path is a directory. Args: filepath (str or Path): Path to be checked whether it is a direct
cosmos_predict2/_src/imaginaire/utils/easy_io/file_client.py:365
↓ 5 callersMethodisfile
Check whether a file path is a file. Args: filepath (str or Path): Path to be checked whether it is a file. Returns:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:379
↓ 5 callersMethodload
Load network weights and optimizer states from a checkpoint in a single process. The priority of the checkpoint loading logic is: 1.
cosmos_predict2/_src/imaginaire/checkpointer/ddp.py:356
↓ 5 callersFunctionload_model_from_checkpoint
Load model from checkpoint with optional multi-adapter support. Args: experiment_name: experiment name s3_checkpoint_dir: s3
cosmos_predict2/_src/predict2/utils/model_loader.py:39
↓ 5 callersFunctionmaybe_load_callable
(name: str | Callable2 | None)
cosmos_predict2/_src/imaginaire/serialization.py:72
↓ 5 callersMethodobject_exists
Check whether an object exists in the storage, with retry logic for transient errors. Args: key (str): The key of the ob
cosmos_predict2/_src/imaginaire/utils/object_store.py:186
↓ 5 callersMethodon_after_backward
Hook after loss.backward() is called. This method is called immediately after the backward pass, allowing for custom operations or mo
cosmos_predict2/_src/imaginaire/model.py:120
↓ 5 callersMethodprepare_embedded_sequence
Prepares an embedded sequence tensor by applying positional embeddings and handling padding masks. Args: x_B_C_T_H_W (to
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:1693
↓ 5 callersMethodreset_dtype
(self, *args, **kwargs)
cosmos_predict2/_src/predict2/tokenizers/base_vae.py:409
↓ 5 callersFunctionrk1_euler
Perform a first-order Runge-Kutta (Euler) step. Recommended for diffusion models with guidance or model undertrained Usually more stable
cosmos_predict2/_src/imaginaire/functional/runge_kutta.py:137
↓ 5 callersFunctionrotm2euler
(R)
cosmos_predict2/_src/predict2/action/datasets/dataset_utils.py:153
↓ 5 callersMethodsample_t
(self, batch_size: int)
cosmos_predict2/_src/imaginaire/modules/edm_sde.py:34
↓ 5 callersMethodsave_yaml
Saves a Config object to a file using YAML serialization. This method is beneficial when the configuration object's content needs to be human
cosmos_predict2/_src/imaginaire/lazy_config/lazy.py:360
↓ 5 callersMethodsignal_status
signal individual worker status per rank Args: rank (int): The rank of the worker status (str): The status of the wor
packages/cosmos-gradio/cosmos_gradio/model_ipc/command_ipc.py:101
↓ 5 callersFunctionunpad_fn
(x)
cosmos_predict2/_src/predict2/utils/flash_attention_jvp_triton.py:396
↓ 5 callersMethodunpatchify
(self, x_B_T_H_W_M)
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:1743
↓ 5 callersMethodupdate_average
(self, model: ImaginaireModel, iteration: Optional[int] = None)
cosmos_predict2/_src/imaginaire/utils/ema.py:148
↓ 5 callersMethodzero_grad
(self, set_to_none: bool = False)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:97
↓ 4 callersMethod__init__
(self, batch_size=16, count_std: bool = False, is_downsample: bool = True)
cosmos_predict2/_src/predict2/tokenizers/base_vae.py:390
↓ 4 callersMethod__init__
(self, dim: int, mlp_ratio: float = 4.0)
cosmos_predict2/_src/predict2/distill/networks/discriminator.py:110
↓ 4 callersMethod__init__
(self, action_dim: int)
cosmos_predict2/_src/predict2/interactive/inference/action_video2world_teleop.py:99
↓ 4 callersMethod_augment_image_dim_inplace
(self, data_batch: dict[str, Tensor], input_key: str = None)
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:989
↓ 4 callersFunction_broadcast_to_cp_or_tp_ranks
Copies tensors in data_batch to the GPU and broadcasts across CP or TP ranks. The contents of data_batch are updated with the copied and broadcas
cosmos_predict2/_src/reason1/models/vlm_base.py:426
↓ 4 callersFunction_cast_to_config
(obj)
cosmos_predict2/_src/imaginaire/lazy_config/lazy.py:147
↓ 4 callersMethod_decode
Decode latents using compiled or eager VAE.
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:369
↓ 4 callersMethod_disable_context_parallel
(self)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:938
↓ 4 callersMethod_make_layer
Create a layer of residual blocks. - planes: the number of output channels for this layer - blocks: the number of residual bl
cosmos_predict2/_src/imaginaire/modules/image_embeddings.py:194
↓ 4 callersMethod_normalize_video_databatch_inplace
Normalizes video data in-place on a CUDA device to reduce data loading overhead. This function modifies the video data tensor within
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:953
↓ 4 callersFunction_parse_bool
Parse string to a boolean.
cosmos_predict2/_src/imaginaire/flags.py:22
↓ 4 callersFunction_rand_quaternion
(dtype: torch.dtype = torch.float32, device: str = "cpu")
cosmos_predict2/_src/imaginaire/modules/camera_test.py:22
↓ 4 callersFunction_request
(input_video_path: str)
packages/cosmos-gradio/sample/sample_client.py:44
↓ 4 callersMethod_set_exception
Store an exception from the background thread with context information. Args: exception (Exception): The exception that was raise
cosmos_predict2/_src/predict2/datasets/cached_replay_dataloader.py:365
↓ 4 callersMethod_test_randsweep_against_torch_sdpa
(self, backend: str, max_tests: int = 1000)
cosmos_predict2/_src/imaginaire/attention/tests/sdpa_test.py:414
↓ 4 callersMethod_test_varlen
( self, batch: int, heads: int, head_dim: int, seqlens_Q_list: list[in
cosmos_predict2/_src/imaginaire/attention/tests/varlen_test.py:464
↓ 4 callersFunction_warn_overwrite_env
(env, val)
cosmos_predict2/_src/reason1/parallelisms/torchtitan_utilts.py:67
↓ 4 callersFunctionapply_adaln
Apply AdaLN: norm(x) * (1 + scale) + shift. Assumes tensors are broadcast-compatible with layout (b, t, h, w, d).
cosmos_predict2/_src/predict2/interactive/networks/utils.py:31
↓ 4 callersMethodapply_chat_template
( self, messages, add_generation_prompt=False, return_tensors="pt", tokenize=True, add_vision_id=False
cosmos_predict2/_src/reason1/tokenizer/processor.py:93
↓ 4 callersFunctionapply_rotary_emb
(freqs, t, start_index=0, scale=1.0, seq_dim=-2)
external/lam_project/lam/modules/embeddings.py:34
↓ 4 callersMethodbackward
(ctx: Any, *grad_output: Tensor)
cosmos_predict2/_src/predict2/networks/a2a_cp.py:129
↓ 4 callersFunctionbasic_check_on_inputs
( n_video_frames: int, n_target_frames: int, video_fps: float, min_fps_thres: int, max_fps_thres: int )
cosmos_predict2/_src/predict2/datasets/decoders/video_decoder.py:40
↓ 4 callersFunctionbroadcast
(tensor: torch.Tensor, cp_or_tp_mesh: DeviceMesh)
cosmos_predict2/_src/reason1/utils/parallelism.py:26
↓ 4 callersFunctionbroadcast
(tensor, src, group=None, async_op=False)
cosmos_predict2/_src/reason1/utils/distributed.py:45
↓ 4 callersMethodcamera2image
Given the camera intrinsics, calibrate input 3D points from camera frame to image (pixel) frame. Args: points (torch.Tensor/np.nd
cosmos_predict2/_src/imaginaire/modules/camera.py:341
↓ 4 callersFunctioncheck_valid_tuple_or_element
(param: Any, num_dims: int, typename: type)
cosmos_predict2/_src/imaginaire/attention/checks.py:410
↓ 4 callersMethodclear_cache
(self)
cosmos_predict2/_src/predict2/tokenizers/wan2pt2.py:817
↓ 4 callersMethodclip_grad_norm_
( self, max_norm: float, norm_type: float = 2.0, error_if_nonfinite: bool = Fa
cosmos_predict2/_src/predict2/models/text2world_model.py:1034
↓ 4 callersMethodclose
Stop the prefetch thread and clear the cache. Also checks for any errors in the background thread and raises them.
cosmos_predict2/_src/predict2/datasets/cached_replay_dataloader.py:462
↓ 4 callersMethodclose
(self)
cosmos_predict2/_src/reason1/parallelisms/metrics.py:115
↓ 4 callersFunctioncommon_broadcast
(x: Tensor, y: Tensor)
cosmos_predict2/_src/imaginaire/functional/batch_ops.py:28
↓ 4 callersMethodcompute_average_results
(self)
cosmos_predict2/_src/imaginaire/utils/misc.py:372
↓ 4 callersFunctionconcatenate_batches
Smartly concatenate n input data batches into m output data batches. Each data batch is a dictionary with values that can be torch tensor, st
cosmos_predict2/_src/predict2/datasets/cached_replay_dataloader.py:181
↓ 4 callersMethodcyan
(x: str)
cosmos_predict2/_src/imaginaire/utils/misc.py:408
↓ 4 callersFunctiondcp_load_state_dict
(_state_dict, storage_reader, load_planner)
cosmos_predict2/_src/predict2/checkpointer/dcp.py:202
↓ 4 callersFunctiondeep_update_config_dict
Updates nested dictionaries in the config dictionary (dst) with the values in src dictionary. Standard update in hydra only goes one level de
cosmos_predict2/_src/predict2/distill/utils/config_helper.py:66
↓ 4 callersFunctiondefault
(var, val)
external/lam_project/lam/dataset.py:23
↓ 4 callersMethoddump_to_fileobj
(self, obj, file, **kwargs)
cosmos_predict2/_src/imaginaire/utils/easy_io/handlers/base.py:31
↓ 4 callersMethodedit_for_inference
( self, is_cfg_conditional: bool = True, num_conditional_frames: int = 1 )
cosmos_predict2/_src/predict2/action/configs/action_conditioned/conditioner.py:124
↓ 4 callersMethodema_scope
(self, context=None, is_cpu=False)
cosmos_predict2/_src/predict2/models/text2world_model.py:1013
↓ 4 callersMethodenable_context_parallel
(self, process_group: Optional[ProcessGroup] = None)
cosmos_predict2/_src/predict2/distill/networks/discriminator.py:229
↓ 4 callersMethodencode
(self, state: torch.Tensor)
cosmos_predict2/_src/predict2/models/text2world_model.py:991
↓ 4 callersFunctionexists
(var)
external/lam_project/lam/dataset.py:19
← previousnext →201–300 of 3,821, ranked by callers