MCPcopy Create free account

hub / github.com/MrZihan/Dynam3D / functions

Functions4,346 in github.com/MrZihan/Dynam3D

↓ 10 callersFunctionconstruct_envs
r"""Create VectorEnv object with specified config and env class type. To allow better performance, dataset are split into small ones for each
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/common/env_utils.py:35
↓ 10 callersFunctionconstruct_envs
r"""Create VectorEnv object with specified config and env class type. To allow better performance, dataset are split into small ones for each
Dynam3D_VLN/vlnce_baselines/common/env_utils.py:35
↓ 10 callersFunctionde_parallel
De-parallelize a model: returns single-GPU model if model is of type DP or DDP.
Dynam3D_VLN/ultralytics/yolo/utils/torch_utils.py:304
↓ 10 callersFunctionde_parallel
De-parallelize a model: returns single-GPU model if model is of type DP or DDP.
Dynam3D_Pretrain/ultralytics/yolo/utils/torch_utils.py:304
↓ 10 callersFunctionextract_instruction_tokens
Extracts instruction tokens from an instruction sensor if the tokens exist and are in a dict structure.
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/common/utils.py:8
↓ 10 callersFunctionextract_instruction_tokens
Extracts instruction tokens from an instruction sensor if the tokens exist and are in a dict structure.
Dynam3D_VLN/vlnce_baselines/common/utils.py:8
↓ 10 callersFunctionextract_instruction_tokens
Extracts instruction tokens from an instruction sensor if the tokens exist and are in a dict structure.
Dynam3D_Pretrain/src_3dff/common/utils.py:8
↓ 10 callersMethodinfo
Logs model info. Args: detailed (bool): Show detailed information about model. verbose (bool): Controls verb
Dynam3D_Pretrain/ultralytics/vit/sam/model.py:51
↓ 10 callersFunctionis_git_dir
Determines whether the current file is part of a git repository. If the current file is not part of a git repository, returns None. Retu
Dynam3D_VLN/ultralytics/yolo/utils/__init__.py:453
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor
Dynam3D_VLN/ultralytics/yolo/engine/trainer.py:501
↓ 10 callersMethodlabel_loss_items
Returns a loss dict with labelled training loss items tensor
Dynam3D_Pretrain/ultralytics/yolo/engine/trainer.py:501
↓ 10 callersMethodnew
Return a new Results object with the same image, path, and names.
Dynam3D_VLN/ultralytics/yolo/engine/results.py:156
↓ 10 callersMethodreset
(self)
Dynam3D_Pretrain/src_3dff/common/environments.py:356
↓ 10 callersMethodupdate
Update the boxes, masks, and probs attributes of the Results object.
Dynam3D_VLN/ultralytics/yolo/engine/results.py:114
↓ 10 callersMethodupdate
Update the boxes, masks, and probs attributes of the Results object.
Dynam3D_Pretrain/ultralytics/yolo/engine/results.py:114
↓ 10 callersFunctionxyxy2xywh
Convert bounding box coordinates from (x1, y1, x2, y2) format to (x, y, width, height) format. Args: x (np.ndarray | torch.Tensor):
Dynam3D_VLN/ultralytics/yolo/utils/ops.py:345
↓ 10 callersFunctionxyxy2xywh
Convert bounding box coordinates from (x1, y1, x2, y2) format to (x, y, width, height) format. Args: x (np.ndarray | torch.Tensor):
Dynam3D_Pretrain/ultralytics/yolo/utils/ops.py:345
↓ 9 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
Dynam3D_VLN/ultralytics/nn/modules/transformer.py:157
↓ 9 callersMethod__init__
( self, sim: Simulator, config: Config, *args: Any, **kwargs: Any )
Dynam3D_VLN/habitat_extensions/measures.py:287
↓ 9 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
Dynam3D_Pretrain/ultralytics/nn/modules/transformer.py:157
↓ 9 callersMethod__init__
( self, sim: Simulator, config: Config, *args: Any, **kwargs: Any )
Dynam3D_Pretrain/habitat_extensions/measures.py:287
↓ 9 callersFunctioncheck_imgsz
Verify image size is a multiple of the given stride in each dimension. If the image size is not a multiple of the stride, update it to the ne
Dynam3D_VLN/ultralytics/yolo/utils/checks.py:44
↓ 9 callersMethodconvert_bbox
Convert bounding box format.
Dynam3D_VLN/ultralytics/yolo/utils/instance.py:208
↓ 9 callersMethodconvert_bbox
Convert bounding box format.
Dynam3D_Pretrain/ultralytics/yolo/utils/instance.py:208
↓ 9 callersMethodcuda
Return a copy of the Results object with all tensors on GPU memory.
Dynam3D_Pretrain/ultralytics/yolo/engine/results.py:137
↓ 9 callersFunctionis_colab
Check if the current script is running inside a Google Colab notebook. Returns: (bool): True if running inside a Colab notebook, Fal
Dynam3D_VLN/ultralytics/yolo/utils/__init__.py:328
↓ 9 callersFunctionis_colab
Check if the current script is running inside a Google Colab notebook. Returns: (bool): True if running inside a Colab notebook, Fal
Dynam3D_Pretrain/ultralytics/yolo/utils/__init__.py:328
↓ 9 callersFunctionis_git_dir
Determines whether the current file is part of a git repository. If the current file is not part of a git repository, returns None. Retu
Dynam3D_Pretrain/ultralytics/yolo/utils/__init__.py:453
↓ 9 callersMethodnew
Return a new Results object with the same image, path, and names.
Dynam3D_Pretrain/ultralytics/yolo/engine/results.py:156
↓ 9 callersFunctionselect_device
Selects PyTorch Device. Options are device = None or 'cpu' or 0 or '0' or '0,1,2,3'.
Dynam3D_VLN/ultralytics/yolo/utils/torch_utils.py:56
↓ 9 callersFunctionselect_device
Selects PyTorch Device. Options are device = None or 'cpu' or 0 or '0' or '0,1,2,3'.
Dynam3D_Pretrain/ultralytics/yolo/utils/torch_utils.py:56
↓ 9 callersMethodtrain
Function trains models but raises an error as NAS models do not support training.
Dynam3D_VLN/ultralytics/yolo/nas/model.py:82
↓ 9 callersMethodtrain
Function trains models but raises an error as NAS models do not support training.
Dynam3D_Pretrain/ultralytics/yolo/nas/model.py:82
↓ 9 callersFunctionxywh2xyxy
Convert bounding box coordinates from (x, y, width, height) format to (x1, y1, x2, y2) format where (x1, y1) is the top-left corner and (x2,
Dynam3D_VLN/ultralytics/yolo/utils/ops.py:362
↓ 9 callersFunctionxywh2xyxy
Convert bounding box coordinates from (x, y, width, height) format to (x1, y1, x2, y2) format where (x1, y1) is the top-left corner and (x2,
Dynam3D_Pretrain/ultralytics/yolo/utils/ops.py:362
↓ 9 callersFunctionyaml_save
Save YAML data to a file. Args: file (str, optional): File name. Default is 'data.yaml'. data (dict): Data to save in YAML f
Dynam3D_VLN/ultralytics/yolo/utils/__init__.py:254
↓ 9 callersFunctionyaml_save
Save YAML data to a file. Args: file (str, optional): File name. Default is 'data.yaml'. data (dict): Data to save in YAML f
Dynam3D_Pretrain/ultralytics/yolo/utils/__init__.py:254
↓ 8 callersMethod_check_is_pytorch_model
Raises TypeError is model is not a PyTorch model
Dynam3D_VLN/ultralytics/yolo/engine/model.py:168
↓ 8 callersMethod_check_is_pytorch_model
Raises TypeError is model is not a PyTorch model
Dynam3D_Pretrain/ultralytics/yolo/engine/model.py:168
↓ 8 callersMethodadd
Args: offset (tuple | list | int): the offset for four coords.
Dynam3D_Pretrain/ultralytics/yolo/utils/instance.py:116
↓ 8 callersFunctionattempt_load_one_weight
Loads a single model weights.
Dynam3D_VLN/ultralytics/nn/tasks.py:576
↓ 8 callersFunctionattempt_load_one_weight
Loads a single model weights.
Dynam3D_Pretrain/ultralytics/nn/tasks.py:576
↓ 8 callersFunctioncheck_imgsz
Verify image size is a multiple of the given stride in each dimension. If the image size is not a multiple of the stride, update it to the ne
Dynam3D_Pretrain/ultralytics/yolo/utils/checks.py:44
↓ 8 callersFunctionconstruct_envs
r"""Create VectorEnv object with specified config and env class type. To allow better performance, dataset are split into small ones for each
Dynam3D_Pretrain/src_3dff/common/env_utils.py:35
↓ 8 callersMethodfilter
Filter the MaskData object based on the given boolean tensor.
Dynam3D_VLN/ultralytics/vit/sam/amg.py:43
↓ 8 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
Dynam3D_VLN/ultralytics/yolo/utils/metrics.py:268
↓ 8 callersMethodplot
Plot the confusion matrix using seaborn and save it to a file. Args: normalize (bool): Whether to normalize the confusio
Dynam3D_Pretrain/ultralytics/yolo/utils/metrics.py:268
↓ 8 callersMethodprocess_batch
Update confusion matrix for object detection task. Args: detections (Array[N, 6]): Detected bounding boxes and their ass
Dynam3D_VLN/ultralytics/yolo/utils/metrics.py:209
↓ 8 callersMethodprocess_batch
Update confusion matrix for object detection task. Args: detections (Array[N, 6]): Detected bounding boxes and their ass
Dynam3D_Pretrain/ultralytics/yolo/utils/metrics.py:209
↓ 8 callersMethodrectangle
Add rectangle to image (PIL-only).
Dynam3D_VLN/ultralytics/yolo/utils/plotting.py:191
↓ 8 callersMethodrectangle
Add rectangle to image (PIL-only).
Dynam3D_Pretrain/ultralytics/yolo/utils/plotting.py:191
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:532
↓ 7 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/common/transformer.py:20
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
Dynam3D_VLN/vlnce_baselines/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:532
↓ 7 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
Dynam3D_VLN/vlnce_baselines/common/transformer.py:20
↓ 7 callersMethod__init__
Conv1D layer as defined by Radford et al. for OpenAI GPT (and also used in GPT-2) Basically works like a Linear layer but the weights are
Dynam3D_Pretrain/src_3dff/waypoint_pred/transformer/pytorch_transformer/modeling_utils.py:532
↓ 7 callersMethod__init__
(self, d_model=512, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=2048
Dynam3D_Pretrain/src_3dff/common/transformer.py:20
↓ 7 callersFunctionclean_url
Strip auth from URL, i.e. https://url.com/file.txt?auth -> https://url.com/file.txt.
Dynam3D_VLN/ultralytics/yolo/utils/__init__.py:751
↓ 7 callersFunctionclean_url
Strip auth from URL, i.e. https://url.com/file.txt?auth -> https://url.com/file.txt.
Dynam3D_Pretrain/ultralytics/yolo/utils/__init__.py:751
↓ 7 callersMethodfilter
Filter the MaskData object based on the given boolean tensor.
Dynam3D_Pretrain/ultralytics/vit/sam/amg.py:43
↓ 7 callersMethodget_agent_info
(self)
Dynam3D_VLN/habitat_extensions/nav.py:383
↓ 7 callersFunctionget_config
r"""Create a unified config with default values. Initialized from the habitat_baselines default config. Overwritten by values from `config_pat
Dynam3D_Pretrain/src_3dff/config/default.py:190
↓ 7 callersFunctionincrement_path
Increments a file or directory path, i.e. runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc. If the path exists and exist_ok is not set t
Dynam3D_VLN/ultralytics/yolo/utils/files.py:28
↓ 7 callersFunctionincrement_path
Increments a file or directory path, i.e. runs/exp --> runs/exp{sep}2, runs/exp{sep}3, ... etc. If the path exists and exist_ok is not set t
Dynam3D_Pretrain/ultralytics/yolo/utils/files.py:28
↓ 7 callersMethodload
Load the weights into the model. Args: weights (dict | torch.nn.Module): The pre-trained weights to be loaded. verbos
Dynam3D_Pretrain/ultralytics/nn/tasks.py:189
↓ 7 callersMethodmean_results
Mean of results, return mp, mr, map50, map.
Dynam3D_VLN/ultralytics/yolo/utils/metrics.py:606
↓ 7 callersMethodmean_results
Mean of results, return mp, mr, map50, map.
Dynam3D_Pretrain/ultralytics/yolo/utils/metrics.py:606
↓ 7 callersMethodrender_view_3d_patch
(self, batch_position=None, batch_heading=None, batch_camera_intrinsic=None, batch_rot=None, batch_trans=None,
Dynam3D_Pretrain/src_3dff/models/feature_fields.py:494
↓ 6 callersMethod__init__
(self, config)
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/waypoint_pred/transformer/waypoint_bert.py:175
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/models/encoders/clip/model.py:242
↓ 6 callersMethod__init__
(self, config)
Dynam3D_VLN/vlnce_baselines/waypoint_pred/transformer/waypoint_bert.py:175
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
Dynam3D_VLN/vlnce_baselines/models/encoders/clip/model.py:242
↓ 6 callersMethod__init__
(self, config)
Dynam3D_Pretrain/src_3dff/waypoint_pred/transformer/waypoint_bert.py:175
↓ 6 callersMethod__init__
(self, embed_dim: int, # vision image_resolution: int,
Dynam3D_Pretrain/src_3dff/models/encoders/clip/model.py:242
↓ 6 callersMethodclass_result
class-aware result, return p[i], r[i], ap50[i], ap[i].
Dynam3D_VLN/ultralytics/yolo/utils/metrics.py:610
↓ 6 callersMethodclass_result
class-aware result, return p[i], r[i], ap50[i], ap[i].
Dynam3D_Pretrain/ultralytics/yolo/utils/metrics.py:610
↓ 6 callersMethodcls
Return the class values of the boxes.
Dynam3D_VLN/ultralytics/yolo/engine/results.py:407
↓ 6 callersMethodconvert
Converts bounding box format from one type to another.
Dynam3D_VLN/ultralytics/yolo/utils/instance.py:67
↓ 6 callersMethodconvert
Converts bounding box format from one type to another.
Dynam3D_Pretrain/ultralytics/yolo/utils/instance.py:67
↓ 6 callersMethodencode_text
(self, text)
Dynam3D_Pretrain/src_3dff/models/encoders/clip/model.py:341
↓ 6 callersMethodget_agent_info
(self)
Dynam3D_Pretrain/habitat_extensions/nav.py:332
↓ 6 callersFunctionmodel_info
Model information. imgsz may be int or list, i.e. imgsz=640 or imgsz=[640, 320].
Dynam3D_VLN/ultralytics/yolo/utils/torch_utils.py:163
↓ 6 callersFunctionmodel_info_for_loggers
Return model info dict with useful model information. Example for YOLOv8n: {'model/parameters': 3151904, 'model/GFLOPs': 8.
Dynam3D_VLN/ultralytics/yolo/utils/torch_utils.py:197
↓ 6 callersFunctionmodel_info_for_loggers
Return model info dict with useful model information. Example for YOLOv8n: {'model/parameters': 3151904, 'model/GFLOPs': 8.
Dynam3D_Pretrain/ultralytics/yolo/utils/torch_utils.py:197
↓ 6 callersMethodreset
(self, batch_size=1)
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/models/feature_fields.py:186
↓ 6 callersMethodreset
(self, batch_size=1)
Dynam3D_VLN/vlnce_baselines/models/feature_fields.py:186
↓ 6 callersFunctionsafe_download
Downloads files from a URL, with options for retrying, unzipping, and deleting the downloaded file. Args: url (str): The URL of the
Dynam3D_VLN/ultralytics/yolo/utils/downloads.py:108
↓ 6 callersFunctionsafe_download
Downloads files from a URL, with options for retrying, unzipping, and deleting the downloaded file. Args: url (str): The URL of the
Dynam3D_Pretrain/ultralytics/yolo/utils/downloads.py:108
↓ 6 callersFunctionsmart_request
Makes an HTTP request using the 'requests' library, with exponential backoff retries up to a specified timeout. Args: method (str):
Dynam3D_VLN/ultralytics/hub/utils.py:88
↓ 6 callersFunctionsmart_request
Makes an HTTP request using the 'requests' library, with exponential backoff retries up to a specified timeout. Args: method (str):
Dynam3D_Pretrain/ultralytics/hub/utils.py:88
↓ 6 callersMethodtranspose_for_scores
(self, x)
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:293
↓ 6 callersMethodtranspose_for_scores
(self, x)
Dynam3D_VLN/vlnce_baselines/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:293
↓ 6 callersMethodtranspose_for_scores
(self, x)
Dynam3D_Pretrain/src_3dff/waypoint_pred/transformer/pytorch_transformer/modeling_bert.py:293
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
Dynam3D_VLN/vlnce_baselines/vlnce_baselines/common/transformer.py:215
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
Dynam3D_VLN/vlnce_baselines/common/transformer.py:215
↓ 6 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
Dynam3D_Pretrain/src_3dff/common/transformer.py:215
↓ 5 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
Dynam3D_VLN/ultralytics/vit/sam/modules/encoders.py:317
↓ 5 callersMethod__init__
Initialize the BboxLoss module with regularization maximum and DFL settings.
Dynam3D_VLN/ultralytics/yolo/utils/loss.py:57
↓ 5 callersMethod__init__
Initialize an ensemble of models.
Dynam3D_VLN/ultralytics/nn/tasks.py:485
↓ 5 callersMethod__init__
Args: dim (int): Number of input channels. num_heads (int): Number of attention heads in each ViT block.
Dynam3D_Pretrain/ultralytics/vit/sam/modules/encoders.py:317
← previousnext →101–200 of 4,346, ranked by callers