MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 4 callersMethodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:331
↓ 4 callersFunctionfilter_video_files
(file_names: List, xdof: bool = False)
external/lam_project/lam/dataset.py:43
↓ 4 callersMethodforward
(self, t: Tensor, freqs: Tensor, seq_len=None, offset=0)
external/lam/modules/embeddings.py:226
↓ 4 callersMethodforward
(self, t: Tensor, freqs: Tensor, seq_len=None, offset=0)
external/lam_project/lam/modules/embeddings.py:226
↓ 4 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/distill/models/video2world_model_distill_dmd2.py:507
↓ 4 callersMethodgenerate_streaming_video
Generate a streaming video autoregressively with KV cache. Args: stateless_kv: If True, use stateless KV cache mode where all cac
cosmos_predict2/_src/predict2/interactive/models/action_video2world_self_forcing.py:349
↓ 4 callersMethodget_camera_rays
Get unit-norm camera rays in world coordinates for each pixel center. Args: cam_pose (torch.Tensor/np.ndarray [...,3,4]): Camera
cosmos_predict2/_src/imaginaire/modules/camera.py:172
↓ 4 callersMethodget_data_and_condition
( self, data_batch: dict[str, torch.Tensor] )
cosmos_predict2/_src/predict2/camera/models/multiview_camera_video2world_model.py:46
↓ 4 callersMethodget_data_and_condition
Assumes a video2world model that also supports text2world mode.
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:748
↓ 4 callersMethodget_exposed_params
(cls)
cosmos_predict2/_src/imaginaire/utils/validator_params.py:131
↓ 4 callersMethodget_last_lr
(self)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:233
↓ 4 callersMethodget_trajectory_index
Get the index of the trajectory in the dataset by the trajectory ID. This is useful when you need to get the trajectory length or sampling wei
groot_dreams/data/dataset.py:617
↓ 4 callersMethodget_val_dict
(cls)
cosmos_predict2/_src/imaginaire/utils/env_parsers/env_parser.py:85
↓ 4 callersMethodget_video_height_width
(self)
cosmos_predict2/_src/predict2/models/text2world_model.py:998
↓ 4 callersFunctionhsdp_device_mesh
Initializes a device mesh for use with Hybrid Sharding strategy in FSDP (HSDP) training. This function requires explicit sizes for replica
cosmos_predict2/_src/imaginaire/utils/fsdp_helper.py:97
↓ 4 callersMethodinit_weights
(self, buffer_device: Optional[torch.device] = None)
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:1178
↓ 4 callersMethodinverse
(self, x: torch.Tensor)
groot_dreams/data/transform/state_action.py:178
↓ 4 callersMethodinvert_pose
Invert a camera pose. Args: cam_pose (torch.Tensor/np.ndarray [...,3,4]): Input camera pose (world2cam [R|t]). Returns:
cosmos_predict2/_src/imaginaire/modules/camera.py:119
↓ 4 callersMethodis_image_batch
We hanlde two types of data_batch. One comes from a joint_dataloader where "dataset_name" can be used to differenciate image_batch and video_batch.
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:666
↓ 4 callersFunctionis_optional
(x: type)
cosmos_predict2/_src/imaginaire/serialization.py:97
↓ 4 callersFunctionis_primitive
(value)
cosmos_predict2/_src/predict2/distill/callbacks/every_n_draw_sample_scm.py:47
↓ 4 callersFunctionis_primitive
(value)
cosmos_predict2/_src/predict2/callbacks/validation_draw_sample.py:48
↓ 4 callersFunctionis_primitive
(value)
cosmos_predict2/_src/predict2/callbacks/every_n_draw_sample.py:51
↓ 4 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/backends/boto3_backend.py:242
↓ 4 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/backends/msc_backend.py:354
↓ 4 callersMethodload
( self, model_parts: list[nn.Module], optimizer: OptimizersContainer | None = None,
cosmos_predict2/_src/reason1/utils/dcp_checkpointer.py:313
↓ 4 callersFunctionmkdir_or_exist
(dir_name, mode=0o777)
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/base_backend.py:26
↓ 4 callersFunctionpad_and_resize
r"""Function for padding and resizing a numpy array. Args: arr (np.ndarray): Input array ntokens (int): Number of output tokens af
cosmos_predict2/_src/imaginaire/datasets/augmentors/v3_text_transforms.py:25
↓ 4 callersMethodparse
parse a command string into an api command (e.g. text2image) and a dictionary of args
cosmos_predict2/_src/imaginaire/utils/validator_params.py:94
↓ 4 callersFunctionpost_all2all
(local_seq_2_local_head, seq_world_size)
cosmos_predict2/_src/predict2/networks/a2a_cp.py:32
↓ 4 callersMethodput
Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:169
↓ 4 callersMethodput
Write bytes to a given ``filepath``. Args: obj (bytes): Data to be saved. filepath (str or Path): Path to write data.
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:281
↓ 4 callersFunctionreg_x0_euler_step
Perform a regularized Euler step based on x0 prediction. Args: x_s: Current state tensor. s: Current time tensor. t:
cosmos_predict2/_src/imaginaire/functional/runge_kutta.py:96
↓ 4 callersFunctionresize_input
r""" Resizes and crops the input video tensor while preserving aspect ratio. The video is first resized so that the smaller dimension matches
cosmos_predict2/_src/predict2/inference/video2world.py:76
↓ 4 callersFunctionrestore_env
(name, value)
cosmos_predict2/_src/imaginaire/datasets/webdataset/distributors/multi_aspect_ratio_v2_test.py:65
↓ 4 callersMethodrmtree
Recursively delete a directory tree. Args: dir_path (str or Path): A directory to be removed. Examples: >>>
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:739
↓ 4 callersFunctionrotate_half
Rotates half the hidden dims of the input.
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:191
↓ 4 callersFunctionsetup_checkpointer
(trainer, object_store_enabled, job_name)
cosmos_predict2/_src/imaginaire/checkpointer/ddp_test.py:77
↓ 4 callersMethodstart
Start the watchdog monitoring thread. If the thread is already running, this method does nothing.
cosmos_predict2/_src/predict2/datasets/watchdog.py:68
↓ 4 callersMethodupdate_average
(self, src_model: torch.nn.Module, tgt_model: torch.nn.Module, beta: float = 0.9999)
cosmos_predict2/_src/predict2/utils/dtensor_helper.py:43
↓ 4 callersMethodvalidate
Validate on the full validation dataset. Args: model (ImaginaireModel): The PyTorch model. dataloader_val (torch.util
cosmos_predict2/_src/predict2/distill/trainer/trainer_distillation.py:332
↓ 4 callersMethodwatch
Context manager for monitoring an operation. This is the primary interface for using the watchdog. It automatically tracks the start
cosmos_predict2/_src/predict2/datasets/watchdog.py:93
↓ 4 callersMethodworld2camera
Given the camera pose, transform input 3D points from world coordinates to camera coordinates. Args: points (torch.Tensor/np.ndar
cosmos_predict2/_src/imaginaire/modules/camera.py:300
↓ 3 callersMethod__init__
r"""Base augmentor class Args: input_keys (list): List of input keys output_keys (list): List of output keys
cosmos_predict2/_src/predict2/datasets/local_datasets/dataset_utils.py:62
↓ 3 callersMethod__init__
(self, input_keys: list, output_keys: Optional[list] = None, args: Optional[dict] = None)
cosmos_predict2/_src/imaginaire/datasets/webdataset/augmentors/image/resize.py:60
↓ 3 callersMethod__init__
( self, subset_path: str, padding: str = "repeat", randomize: bool = False,
external/lam_project/lam/dataset.py:141
↓ 3 callersFunction_async_wait_for_job
Waits for a job to complete. Returns (tuple): - job_status: The status of the job - result: The result of the job -
packages/cosmos-gradio/sample/sample_client.py:169
↓ 3 callersMethod_check_for_errors
Check if the background thread has encountered an error and raise it if so.
cosmos_predict2/_src/predict2/datasets/cached_replay_dataloader.py:377
↓ 3 callersMethod_enable_context_parallel
(self)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:932
↓ 3 callersFunction_get_available_gpus
()
conftest.py:40
↓ 3 callersFunction_get_available_gpus
()
packages/cosmos-oss/conftest.py:40
↓ 3 callersMethod_get_data_batch_input
Prepares the input data batch for the diffusion model. Constructs a dictionary containing the video tensor, text embeddings,
cosmos_predict2/_src/predict2/action/inference/inference_pipeline.py:94
↓ 3 callersFunction_get_file_backend
Return a file backend based on the prefix or backend_args. Args: prefix (str): Prefix of uri. backend_args (dict): Arguments to i
cosmos_predict2/_src/imaginaire/utils/easy_io/easy_io.py:67
↓ 3 callersFunction_get_file_type
(file_path: str)
packages/cosmos-gradio/cosmos_gradio/gradio_app/gradio_file_server.py:56
↓ 3 callersFunction_get_marker
(item: pytest.Item, name: str)
conftest.py:122
↓ 3 callersFunction_get_marker
(item: pytest.Item, name: str)
packages/cosmos-oss/conftest.py:122
↓ 3 callersMethod_log
(self, msg: str)
cosmos_predict2/_src/imaginaire/utils/timer.py:139
↓ 3 callersFunction_optimizer_cls
(params: List[nn.Parameter], optimizer_kwargs: Dict[str, Any], name: str)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:34
↓ 3 callersFunction_reset_everything
()
cosmos_predict2/_src/imaginaire/attention/tests/torch_compile_test.py:75
↓ 3 callersMethod_test_against_manual_varlen
( self, batch: int, heads: int, head_dim: int, seqlens_Q_list: list[in
cosmos_predict2/_src/imaginaire/attention/tests/varlen_test.py:201
↓ 3 callersMethod_test_varlen_randsweep
(self, backend: str, max_tests: int = 1000)
cosmos_predict2/_src/imaginaire/attention/tests/varlen_test.py:512
↓ 3 callersMethod_to_gib
(self, memory_in_bytes)
cosmos_predict2/_src/reason1/parallelisms/metrics.py:59
↓ 3 callersMethod_translate_key
Translate an object key to an S3 URL for easy_io. Args: key (str): The key of the object. Returns: str: The
cosmos_predict2/_src/imaginaire/utils/object_store.py:60
↓ 3 callersFunction_universal_tensor_checks
(query: Tensor, key: Tensor, value: Tensor, raise_error: bool = True)
cosmos_predict2/_src/imaginaire/attention/checks.py:35
↓ 3 callersMethodadd_type_postfix_to_checkpoint_path
(self, key: str, checkpoint_path: str, model: ImaginaireModel)
cosmos_predict2/_src/imaginaire/checkpointer/ddp.py:98
↓ 3 callersFunctionapply_multimodal_rotary_pos_emb
Applies Rotary Position Embedding with Multimodal Sections to the query and key tensors (https://qwenlm.github.io/blog/qwen2-vl/). Explanation:
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:198
↓ 3 callersFunctionapply_multimodal_rotary_pos_emb
Applies Rotary Position Embedding with Multimodal Sections to the query and key tensors (https://qwenlm.github.io/blog/qwen2-vl/). Explanation:
cosmos_predict2/_src/reason1/networks/qwen2_5_vl.py:662
↓ 3 callersFunctionapply_rotary_pos_emb_vision
( q: torch.Tensor, k: torch.Tensor, cos: torch.Tensor, sin: torch.Tensor )
cosmos_predict2/_src/reason1/networks/qwen2_vl.py:241
↓ 3 callersFunctionattention
( q, k, v, q_lens=None, k_lens=None, dropout_p=0.0, softmax_scale=None, q_scal
cosmos_predict2/_src/predict2/networks/attention.py:90
↓ 3 callersFunctionbasic_clean
(text)
cosmos_predict2/_src/predict2/inference/get_umt5_emb.py:46
↓ 3 callersMethodbroadcast_split_for_model_parallelsim
Broadcast and split the input data and condition for model parallelism. Currently, we only support context parallelism. Comp
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:696
↓ 3 callersMethodbroadcast_split_for_model_parallelsim
Broadcast and split the input data and condition for model parallelism. Currently, we only support context parallelism.
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:412
↓ 3 callersMethodbroadcast_split_for_model_parallelsim
Broadcast and split the input data and condition for model parallelism. Currently, we only support context parallelism.
cosmos_predict2/_src/predict2/models/text2world_wan2pt1_model.py:356
↓ 3 callersMethodbuild_data_augmentor
r"""Function for building data augmentors from augmentor config.
cosmos_predict2/_src/imaginaire/datasets/webdataset/webdataset.py:218
↓ 3 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/model_14b_reason_1p1.py:53
↓ 3 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/model_7b_reason_1p1.py:55
↓ 3 callersFunctionbuild_gcp_config
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/model_7b_reason_1p1.py:86
↓ 3 callersFunctionbuild_model_and_forward
(tp, load_model_path=None, save_model_path=None)
cosmos_predict2/_src/reason1/parallelisms/dcp_checkpointer_test.py:39
↓ 3 callersMethodcache
(self, parameters: Any, is_cpu: bool = False)
cosmos_predict2/_src/predict2/utils/dtensor_helper.py:56
↓ 3 callersMethodcheck_mandatory_values
(self)
cosmos_predict2/_src/imaginaire/utils/env_parsers/env_parser.py:79
↓ 3 callersFunctionchoose_natten_backend
Chooses an FMHA backend in NATTEN (cutlass-fmha, hopper-fmha, blackwell-fmha) for the current use case based on features needed and current G
cosmos_predict2/_src/imaginaire/attention/natten/checks.py:64
↓ 3 callersFunctionclip_grad_norm_
Clip the gradient norm of an iterable of parameters. Gradient norm clipping requires computing the gradient norm over the entire model.
cosmos_predict2/_src/predict2/distill/utils/torch_future.py:38
↓ 3 callersMethodcompose_poses
Compose a sequence of camera transformations together. pose_new = compose_poses([pose_1, pose_2, ... pose_N]) pose_new(x) = pose_N o
cosmos_predict2/_src/imaginaire/modules/camera.py:142
↓ 3 callersFunctioncontext
(cp_context: Optional[Generator[None, None, None]] = None)
cosmos_predict2/_src/reason1/parallelisms/torchtitan_utilts.py:210
↓ 3 callersMethodcopy_to
(self, model: ImaginaireModel)
cosmos_predict2/_src/imaginaire/utils/ema.py:163
↓ 3 callersMethodcopyfile
Copy a file src to dst and return the destination file. src and dst should have the same prefix. If dst specifies a directory, the fi
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/local_backend.py:244
↓ 3 callersMethodcopytree
Recursively copy an entire directory tree rooted at src to a directory named dst and return the destination directory. src and dst sh
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/local_backend.py:283
↓ 3 callersMethodcreateFromCmd
(cls, cmd: str)
cosmos_predict2/_src/imaginaire/utils/validator_params.py:67
↓ 3 callersFunctioncreate_cuda_graph
( cuda_graphs_storage: dict, blocks: torch.nn.ModuleList, tensor_args: list[Any], tensor_kwarg
cosmos_predict2/_src/imaginaire/utils/graph.py:357
↓ 3 callersFunctiondefault
(val, d)
external/lam/modules/embeddings.py:17
↓ 3 callersFunctiondefault
(val, d)
external/lam_project/lam/modules/embeddings.py:17
↓ 3 callersMethoddelete
(self, filepath)
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:560
↓ 3 callersMethoddenoise
Performs denoising on the input noise data, noise level, and condition Args: xt (torch.Tensor): The input noise data.
cosmos_predict2/_src/predict2/models/text2world_model_rectified_flow.py:1086
↓ 3 callersMethoddenoise
Performs denoising on the input noise data, noise level, and condition with interpolation-specific noise handling for conditional fra
cosmos_predict2/_src/predict2/models/interpolator_model.py:165
↓ 3 callersMethoddenoise
Performs denoising on the input noise data, noise level, and condition Args: xt (torch.Tensor): The input noise data.
cosmos_predict2/_src/predict2/models/video2world_model.py:171
↓ 3 callersMethoddisable_context_parallel
(self)
cosmos_predict2/_src/predict2/networks/wan2pt1.py:956
↓ 3 callersMethoddisable_context_parallel
(self)
cosmos_predict2/_src/predict2/distill/networks/discriminator.py:226
↓ 3 callersFunctiondtype_supported
Helper determining whether dtype is supported with different sets of supported dtypes for training and inference (forward+backward and forwar
cosmos_predict2/_src/imaginaire/attention/natten/checks.py:40
↓ 3 callersMethodend
Ends time measurements. NOTE: must be done on the same CUDA device and stream as start().
cosmos_predict2/_src/imaginaire/utils/timer.py:267
↓ 3 callersMethodexists
Check whether a file path exists. Args: filepath (str or Path): Path to be checked whether exists. Returns:
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:215
← previousnext →301–400 of 3,821, ranked by callers