MCPcopy Create free account

hub / github.com/NVIDIA/DreamDojo / functions

Functions3,821 in github.com/NVIDIA/DreamDojo

↓ 10 callersMethodprint
Print message to the console. Include the parallelism rank information when verbose is set to True.
cosmos_predict2/_src/imaginaire/checkpointer/ddp.py:86
↓ 10 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`):
cosmos_predict2/_src/predict2/models/fm_solvers_unipc.py:150
↓ 10 callersMethodupdate
Update the loss record with new values. Args: loss: The loss value to add nan_mask_gradient_ratio: NaN ratio in gradi
cosmos_predict2/_src/predict2/distill/callbacks/wandb_log_rcm.py:54
↓ 9 callersMethod__init__
(self, dim, out_dim, patch_size, eps=1e-6)
cosmos_predict2/_src/predict2/networks/wan2pt1.py:578
↓ 9 callersMethod_check_path
(self, filepath: str)
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_client.py:637
↓ 9 callersFunction_make_pose
(R: torch.Tensor, t: torch.Tensor)
cosmos_predict2/_src/imaginaire/modules/camera_test.py:13
↓ 9 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/action/configs/action_conditioned/experiment/exp_2B_action_conditioned_rectify_flow_gr00t.py:58
↓ 9 callersMethodcopy_to
(self, src_model: torch.nn.Module, tgt_model: torch.nn.Module)
cosmos_predict2/_src/predict2/utils/dtensor_helper.py:37
↓ 9 callersFunctionfind_split
Find the shape of input tensor for post-CP split, taking into account both temporal and spatial split, as well as patching values. The split
cosmos_predict2/_src/imaginaire/utils/context_parallel.py:212
↓ 9 callersMethodinitialize_model_parallel
(self, **kwargs)
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:43
↓ 9 callersMethodon_save_checkpoint_success
Called when checkpoint saving is fully finished, and succeeded. Not called if checkpoint failed. For synchronous checkpoint, it is ca
cosmos_predict2/_src/imaginaire/utils/callback.py:288
↓ 9 callersMethodset_video_condition
Sets the video conditioning frames for video-to-video generation. This method creates a conditioning mask for the input video frames
cosmos_predict2/_src/predict2/action/configs/action_conditioned/conditioner.py:42
↓ 9 callersMethodstart
Start time measurements. Args: cuda_device (torch.device | None): CUDA device. Will use default CUDA device if not indic
cosmos_predict2/_src/imaginaire/utils/timer.py:240
↓ 9 callersMethodstate_dict
(self)
cosmos_predict2/_src/reason1/parallelisms/optimizer.py:101
↓ 9 callersMethodto_tensor
Convert numpy array to tensor efficiently. Args: frames: numpy array of shape [T, H, W, C] in uint8 format Returns:
groot_dreams/data/transform/video.py:539
↓ 8 callersMethod__init__
( self, z_dim=16, vae_pth="s3://bucket/cosmos_diffusion_v2/pretrain_weights/tokenizer/
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:702
↓ 8 callersMethod__init__
( self, vocab_size, dim, dim_attn, dim_ffn, num_heads,
cosmos_predict2/_src/predict2/inference/get_umt5_emb.py:411
↓ 8 callersMethod_check_checkpoint_exists
If the file checkpoint_path does not exist, raise an error. Args: checkpoint_path (str): full path to the checkpoint.
cosmos_predict2/_src/imaginaire/utils/checkpointer.py:281
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
cosmos_predict2/_src/predict2/models/fm_solvers_unipc.py:259
↓ 8 callersMethod_write_latest_checkpoint_file
Track the file name of the latest saved checkpoint. Args: checkpoint_file (str): file name of the latest saved checkpoint.
cosmos_predict2/_src/imaginaire/utils/checkpointer.py:266
↓ 8 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/model_2B_reason_1p1_rectified_flow.py:54
↓ 8 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/model_14b_reason_1p1_rectified_flow.py:47
↓ 8 callersMethoddenoise
( self, xt_B_C_T_H_W: torch.Tensor, time: torch.Tensor, condition: Video2World
cosmos_predict2/_src/predict2/distill/models/distillation_base_mixin.py:619
↓ 8 callersFunctionexists
(val)
external/lam/modules/embeddings.py:13
↓ 8 callersFunctionexists
(val)
external/lam_project/lam/modules/embeddings.py:13
↓ 8 callersMethodget
Read bytes from a given ``filepath`` with 'rb' mode in range [offset, offset + size). Args: filepath (str or Path): Path to read
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:213
↓ 8 callersMethodgreen
(x: str)
cosmos_predict2/_src/imaginaire/utils/misc.py:400
↓ 8 callersMethodhas
(self, entry)
cosmos_predict2/_src/imaginaire/utils/registry.py:57
↓ 8 callersMethodjoin_path
r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:299
↓ 8 callersMethodload_state_dict
(self, state_dict, strict=True, assign=False)
cosmos_predict2/_src/predict2/networks/wan2pt1.py:1012
↓ 8 callersMethodload_state_dict
(self, state_dict: Dict[str, Any])
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:257
↓ 8 callersMethodon_load_checkpoint
Called when checkpoint loading is about to start, but after on_save_checkpoint_start(). FIXME - why do we need this callback, can't w
cosmos_predict2/_src/imaginaire/utils/callback.py:265
↓ 8 callersMethodon_save_checkpoint
(self, model: ImaginaireModel, state_dict: dict[Any])
cosmos_predict2/_src/imaginaire/utils/callback.py:300
↓ 8 callersFunctionoverride
:param config: the instance of class `Config` (usually from `make_config`) :param overrides: list of overrides for config :return: the co
cosmos_predict2/_src/imaginaire/utils/config_helper.py:70
↓ 8 callersMethodprofile_section
(self, name: str, section_enabled: bool, profile_cuda: bool = True)
cosmos_predict2/_src/imaginaire/utils/misc.py:572
↓ 8 callersMethodreset_parameters
(self)
cosmos_predict2/_src/predict2/networks/minimal_v4_dit.py:1247
↓ 8 callersMethodreset_parameters
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera.py:1098
↓ 8 callersMethodreset_parameters
(self)
cosmos_predict2/_src/predict2/camera/networks/dit_multiview_camera_ar.py:1099
↓ 8 callersMethodrun_safety_check
Run the safety check on the input.
cosmos_predict2/_src/imaginaire/auxiliary/guardrail/common/core.py:50
↓ 8 callersFunctionsave_img_or_video
Save a tensor as an image or video file based on shape Args: sample_C_T_H_W_in01 (Tensor): Input tensor with shape (C, T, H, W)
cosmos_predict2/_src/imaginaire/visualize/video.py:45
↓ 8 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
cosmos_predict2/_src/predict2/utils/fused_adam_dtensor.py:122
↓ 8 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
cosmos_predict2/_src/imaginaire/utils/fused_adam.py:121
↓ 7 callersMethod__init__
(self, dim, mid_dim)
cosmos_predict2/_src/predict2/networks/clip.py:85
↓ 7 callersMethod__init__
(self, model_dim: int, num_heads: int, dropout: float = 0.0)
external/lam_project/lam/modules/blocks.py:94
↓ 7 callersMethod_read_latest_checkpoint_file
Get the file name of the latest saved checkpoint. If it doesn't exist, return None. Returns: checkpoint_file (str | None): file n
cosmos_predict2/_src/imaginaire/utils/checkpointer.py:249
↓ 7 callersFunctionbroadcast_with_shape_check
Broadcast a tensor and check if the shape is the same across CP/TP ranks. If not, create a new tensor matching rank 0 and broadcast it. Args:
cosmos_predict2/_src/reason1/utils/parallelism.py:33
↓ 7 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/resume_text2world/sparse_14B.py:149
↓ 7 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/reason_embeddings/stage3_14B_index_3.py:48
↓ 7 callersMethodbuild_net
(self, net_config_dict, no_fsdp=False)
cosmos_predict2/_src/predict2/interactive/models/action_video2world_self_forcing.py:62
↓ 7 callersMethoddestroy_model_parallel
(self)
cosmos_predict2/_src/predict2/interactive/inference/action_video2world.py:46
↓ 7 callersMethodedit_for_inference
( self, is_cfg_conditional: bool = True, num_conditional_frames: int = 1 )
cosmos_predict2/_src/predict2/configs/video2world/defaults/conditioner.py:132
↓ 7 callersMethodenable_context_parallel
(self, process_group: Optional[ProcessGroup] = None)
cosmos_predict2/_src/predict2/networks/wan2pt1.py:969
↓ 7 callersFunctionget_frame_indices_w_lowered_fps
Generates frame indices for video sampling with FPS control. This function determines valid stride lengths for sampling frames from a video,
cosmos_predict2/_src/predict2/datasets/decoders/video_decoder.py:226
↓ 7 callersFunctionget_world_size
Get world size. How many GPUs are available in this job. Returns: world_size (int): The total number of GPUs available in this job.
cosmos_predict2/_src/imaginaire/utils/distributed.py:97
↓ 7 callersMethodimage2camera
Given the camera intrinsics, calibrate input 3D points from image (pixel) frame to camera frame. Args: points (torch.Tensor/np.nd
cosmos_predict2/_src/imaginaire/modules/camera.py:359
↓ 7 callersFunctionis_attrs
(x: Any)
cosmos_predict2/_src/imaginaire/serialization.py:85
↓ 7 callersFunctionis_hopper
(device: torch.device | None = None)
cosmos_predict2/_src/imaginaire/attention/utils/__init__.py:66
↓ 7 callersFunctionobtain_augmentation_size
r"""Function for obtaining size of the augmentation. When dealing with multi-aspect ratio dataloaders, we need to find the augmentation size f
cosmos_predict2/_src/imaginaire/datasets/webdataset/augmentors/image/misc.py:44
↓ 7 callersMethodon_load_checkpoint_end
( self, model: ImaginaireModel, iteration: int = 0, checkpoint_path: Optional[str] = None )
cosmos_predict2/_src/imaginaire/utils/callback.py:260
↓ 7 callersMethodon_load_checkpoint_start
(self, model: ImaginaireModel)
cosmos_predict2/_src/imaginaire/utils/callback.py:257
↓ 7 callersMethodon_save_checkpoint_start
Called when checkpoint saving is about to start.
cosmos_predict2/_src/imaginaire/utils/callback.py:272
↓ 7 callersFunctionregister_checkpoint
()
cosmos_predict2/_src/predict2/configs/common/defaults/checkpoint.py:65
↓ 7 callersFunctionregister_ema
()
cosmos_predict2/_src/predict2/configs/common/defaults/ema.py:27
↓ 7 callersFunctionregister_optimizer
()
cosmos_predict2/_src/predict2/configs/common/defaults/optimizer.py:44
↓ 7 callersFunctionregister_scheduler
()
cosmos_predict2/_src/predict2/configs/common/defaults/scheduler.py:21
↓ 7 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the sample with the multistep UniPC.
cosmos_predict2/_src/predict2/models/fm_solvers_unipc.py:630
↓ 6 callersMethod__init__
( self, embed_dim: int, # vision image_resolution: int, vision_layers:
cosmos_predict2/_src/imaginaire/modules/image_embeddings.py:341
↓ 6 callersMethod_check_valid_pose
Checks whether the input tensor is a valid camera pose. Args: cam_pose (torch.Tensor [...,3,4]): Input camera pose in world2cam [
cosmos_predict2/_src/imaginaire/modules/camera.py:95
↓ 6 callersMethod_check_valid_quaternion
Checks whether the input tensor is a valid quaternion. Args: q (torch.Tensor [...,4]): Input quaternion(s) in (x, y, z, w) order.
cosmos_predict2/_src/imaginaire/modules/camera.py:477
↓ 6 callersMethod_retry_with_backoff
Execute an operation with exponential backoff retry logic. Args: operation_func: Function to execute *args:
cosmos_predict2/_src/imaginaire/checkpointer/s3_filesystem.py:84
↓ 6 callersMethod_test_backend_against_torch_sdpa
( self, batch: int, heads: int, head_dim: int, seqlen_q: int,
cosmos_predict2/_src/imaginaire/attention/tests/sdpa_test.py:385
↓ 6 callersMethod_test_randsweep
(self, num_dims: int, backend: str, max_tests: int = 1000, max_seqlen: int = 2**17)
cosmos_predict2/_src/imaginaire/attention/tests/multi_dim_test.py:416
↓ 6 callersFunctionbroadcast
Broadcast the item from the minimum rank in the specified group(s).
cosmos_predict2/_src/imaginaire/utils/context_parallel.py:178
↓ 6 callersFunctionbuild_debug_runs
(job)
cosmos_predict2/_src/predict2/configs/video2world/experiment/resume_text2world/stage3.py:65
↓ 6 callersMethodcenter_crop
(frames: torch.Tensor)
groot_dreams/data/transform/video.py:278
↓ 6 callersMethodcreate
(cls, kwargs)
cosmos_predict2/_src/imaginaire/utils/validator_params.py:44
↓ 6 callersFunctionfrom_dict
( x: dict, clazz: str | type | None = None, force_construct_target: bool | None = None, field_name: str =
cosmos_predict2/_src/imaginaire/serialization.py:36
↓ 6 callersMethodget
Read bytes from a given ``filepath`` with 'rb' mode in range [offset, offset + size). Args: filepath (str or Path): Path to read
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/boto3_backend.py:123
↓ 6 callersFunctionget_base_scheduler
( optimizer: torch.optim.Optimizer, model: nn.Module, scheduler_config: dict, )
cosmos_predict2/_src/predict2/utils/optim_instantiate.py:75
↓ 6 callersMethodget_pixel_num_frames
(self, num_latent_frames: int)
cosmos_predict2/_src/predict2/tokenizers/wan2pt1.py:1035
↓ 6 callersMethodget_storage_reader
(self, checkpoint_path: str)
cosmos_predict2/_src/predict2/distill/checkpointer/dcp.py:651
↓ 6 callersFunctionhas_method
(obj, method)
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/base_backend.py:33
↓ 6 callersMethodintrinsic_params_to_matrices
Convert (fx, fy, cx, cy) parameters to camera intrinsic matrix/matrices. Args: params (torch.Tensor/np.ndarray [...,4]): Intrinsi
cosmos_predict2/_src/imaginaire/modules/camera.py:378
↓ 6 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_model_rectified_flow.py:1075
↓ 6 callersFunctionis_rank0
()
cosmos_predict2/config.py:36
↓ 6 callersFunctionis_tp_cp_pp_rank0
()
cosmos_predict2/_src/imaginaire/utils/parallel_state_helper.py:30
↓ 6 callersMethodjoin_path
r"""Concatenate all file paths. Join one or more filepath components intelligently. The return value is the concatenation of filepath
cosmos_predict2/_src/imaginaire/utils/easy_io/backends/msc_backend.py:401
↓ 6 callersMethodlist_dir_or_file
Scan a directory to find the interested directories or files in arbitrary order. Note: :meth:`list_dir_or_file` returns t
cosmos_predict2/_src/imaginaire/utils/easy_io/file_client.py:433
↓ 6 callersMethodload_from_fileobj
(self, file, **kwargs)
cosmos_predict2/_src/imaginaire/utils/easy_io/handlers/base.py:27
↓ 6 callersFunctionload_from_s3_with_cache
Loads data from S3 with optional caching. This function first attempts to load the data from a local cache file. If the cache file doesn't ex
cosmos_predict2/_src/imaginaire/utils/s3_utils.py:100
↓ 6 callersMethodload_object
Helper function for loading object from storage. Args: key (str): The key of the object. type (str): Specified for so
cosmos_predict2/_src/imaginaire/utils/object_store.py:71
↓ 6 callersMethodload_state_dict
(self, state_dict: Dict[str, Any])
cosmos_predict2/_src/predict2/checkpointer/dcp.py:311
↓ 6 callersMethodload_state_dict
(self, state_dict: Dict[str, Any])
cosmos_predict2/_src/reason1/parallelisms/dcp_checkpointer.py:94
↓ 6 callersFunctionmake_experiment
( name: str, dataset_name: str | None = None, model: str = "fsdp_video2world_dmd2_distillation_mod
cosmos_predict2/_src/predict2/distill/configs/experiment/experiments_dmd2_predict2p5.py:41
↓ 6 callersFunctionmake_experiment
( name: str, data: str, model: str = "action_video2world_self_forcing_fsdp", net: str = "actio
cosmos_predict2/_src/predict2/interactive/configs/experiment/exp_action_self_forcing.py:26
↓ 6 callersFunctionmake_experiment
( name: str, data: str, model: str = "action_video2world_warmup_fsdp", net: str = "action_caus
cosmos_predict2/_src/predict2/interactive/configs/experiment/exp_action_warmup.py:22
↓ 6 callersFunctionmaybe_idx
(x: Any, idx: int)
cosmos_predict2/_src/imaginaire/serialization.py:79
↓ 6 callersFunctionobtain_image_size
r"""Function for obtaining the image size from the data dict. Args: data_dict (dict): Input data dict input_keys (list): List of
cosmos_predict2/_src/imaginaire/datasets/webdataset/augmentors/image/misc.py:22
↓ 6 callersMethodon_save_checkpoint_end
Called when the synchronous part of checkpointing is finished, this function can be used along with on_save_checkpoint_start() to mea
cosmos_predict2/_src/imaginaire/utils/callback.py:278
↓ 6 callersFunctionprint_error
(message)
packages/cosmos-oss/scripts/check_environment.py:72
← previousnext →101–200 of 3,821, ranked by callers