MCPcopy Create free account

hub / github.com/YunzeMan/Situation3D / functions

Functions1,152 in github.com/YunzeMan/Situation3D

↓ 143 callersMethodadd_argument
Assume the first argument is the name of the argument.
3DLLM_BLIP2-base/lavis/common/config.py:224
↓ 136 callersMethodget
r"""Get an item from registry with key 'name' Args: name (string): Key whose value needs to be retrieved. default: If
3DLLM_BLIP2-base/lavis/common/registry.py:264
↓ 130 callersFunctionprint
(*args, **kwargs)
3DLLM_BLIP2-base/lavis/common/dist_utils.py:25
↓ 76 callersMethodinfo
Print information about the VQA annotation file. :return:
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa.py:71
↓ 56 callersMethodmax
(self)
3DLLM_BLIP2-base/lavis/common/logger.py:65
↓ 26 callersFunction_n2p
(w, t=True)
3DLLM_BLIP2-base/lavis/models/vit.py:281
↓ 19 callersMethodget_path
(cls, name)
3DLLM_BLIP2-base/lavis/common/registry.py:260
↓ 19 callersMethodload_state_dict
Loads the schedulers state. Arguments: state_dict (dict): scheduler state. Should be an object returned from a cal
situation3d/utils/lr_scheduler.py:51
↓ 18 callersMethoddevice
(self)
3DLLM_BLIP2-base/lavis/models/base_model.py:26
↓ 16 callersMethodfrom_pretrained
Build a pretrained model from default configuration file, specified by model_type. Args: - model_type (str): model type,
3DLLM_BLIP2-base/lavis/models/base_model.py:57
↓ 14 callersMethod__init__
(self, config, layer_num)
3DLLM_BLIP2-base/lavis/models/med.py:344
↓ 14 callersMethod__init__
(self, config, layer_num)
3DLLM_BLIP2-base/lavis/models/blip2_models/Qformer.py:332
↓ 14 callersMethodstate_dict
Returns the state of the scheduler as a :class:`dict`. It contains an entry for every variable in self.__dict__ which is not the optim
situation3d/utils/lr_scheduler.py:41
↓ 13 callersMethod_log
(self, info_str)
lib/solver.py:563
↓ 12 callersMethod_make_layer
(self, block, planes, blocks,
situation3d/models/resnet_base.py:82
↓ 12 callersMethodupdate
(self, **kwargs)
3DLLM_BLIP2-base/lavis/common/logger.py:87
↓ 11 callersMethod__init__
(self, config, has_relative_attention_bias=False)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:646
↓ 11 callersMethodclip
(self, coords, center=None, trans_aug_ratio=None)
lib/openscene/voxelizer.py:78
↓ 9 callersMethod__init__
( self, in_size: int, out_size: int, *, activation
lib/pointnet2/pytorch_utils.py:227
↓ 9 callersMethodtokenize
(sent)
lib/sepdataset.py:124
↓ 9 callersMethodupdate
(self, val, n=1)
situation3d/utils/segmentation_util.py:260
↓ 8 callersMethod__init__
(self, in_size, out_size, pdrop=0., use_gelu=True)
situation3d/models/mcan_sqa_module.py:19
↓ 8 callersMethoddepth_to_skeleton
(self, ux, uy, depth)
lib/projection.py:18
↓ 8 callersFunctionget_rank
()
3DLLM_BLIP2-base/lavis/common/dist_utils.py:47
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:155
↓ 7 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
3DLLM_BLIP2-base/lavis/models/base_model.py:207
↓ 7 callersFunctionget_palette
(num_cls=21, colormap='scannet')
situation3d/utils/segmentation_util.py:358
↓ 7 callersFunctionis_dist_avail_and_initialized
()
3DLLM_BLIP2-base/lavis/common/dist_utils.py:33
↓ 7 callersMethodmaybe_autocast
(self, dtype=torch.float16)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2.py:39
↓ 7 callersMethodtranspose_for_scores
(self, x)
3DLLM_BLIP2-base/lavis/models/med.py:155
↓ 7 callersMethodtranspose_for_scores
(self, x)
3DLLM_BLIP2-base/lavis/models/blip2_models/Qformer.py:142
↓ 6 callersMethod__init__
( self, *, mlp: List[int], npoint: int = None, rad
lib/pointnet2/pointnet2_modules.py:144
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0)
3DLLM_BLIP2-base/lavis/models/eva_vit.py:50
↓ 6 callersFunctiondownload_cached_file
Download a file from a URL and cache it locally. If the file already exists, it is not downloaded again. If distributed, only the main proces
3DLLM_BLIP2-base/lavis/common/dist_utils.py:113
↓ 6 callersMethodvalue
(self)
3DLLM_BLIP2-base/lavis/common/logger.py:69
↓ 5 callersMethod__init__
(self, config: OPTConfig)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:744
↓ 5 callersFunction_is_tensor_video_clip
(clip)
3DLLM_BLIP2-base/lavis/processors/functional_video.py:13
↓ 5 callersMethodapply
(answer)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_t5.py:348
↓ 5 callersMethoddeparallelize
(self)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:897
↓ 5 callersMethodevaluate
(self, cur_epoch="best", skip_reload=False)
3DLLM_BLIP2-base/lavis/runners/runner_base.py:381
↓ 5 callersMethodfrom_config
(cls, cfg, from_pretrained=False)
3DLLM_BLIP2-base/lavis/models/med.py:1246
↓ 5 callersMethodget_model_class
(cls, name)
3DLLM_BLIP2-base/lavis/common/registry.py:216
↓ 5 callersFunctionis_main_process
()
3DLLM_BLIP2-base/lavis/common/dist_utils.py:53
↓ 5 callersFunctionnn_distance
Input: pc1: (B,N,C) torch tensor pc2: (B,M,C) torch tensor l1smooth: bool, whether to use l1smooth loss delta: sc
situation3d/utils/nn_distance.py:25
↓ 5 callersMethodparallelize
(self, device_map=None)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:876
↓ 5 callersFunctionprecision_recall
(TP, FP, FN)
situation3d/utils/metric_util.py:163
↓ 5 callersMethodregister_path
r"""Register a path to registry with key 'name' Args: name: Key with which the path will be registered. Usage:
3DLLM_BLIP2-base/lavis/common/registry.py:169
↓ 5 callersMethodsave_result
(result, result_dir, filename, remove_duplicate="")
3DLLM_BLIP2-base/lavis/tasks/base_task.py:238
↓ 5 callersMethodset_input_embeddings
(self, new_embeddings)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:911
↓ 5 callersFunctionsingle_scene_precision_recall
Compute P and R for predicted bounding boxes. Ignores classes! Args: labels: (N x bbox) ground-truth bounding boxes (6 dims) pred
situation3d/utils/metric_util.py:125
↓ 5 callersMethodunwrap_dist_model
(self, model)
3DLLM_BLIP2-base/lavis/runners/runner_base.py:448
↓ 4 callersMethod__init__
(self, inplanes, planes, stride=1)
3DLLM_BLIP2-base/lavis/models/clip_vit.py:19
↓ 4 callersFunction_build_proc_from_cfg
(cfg)
3DLLM_BLIP2-base/lavis/models/__init__.py:87
↓ 4 callersMethod_build_proc_from_cfg
(cfg)
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:78
↓ 4 callersFunctioncalc_iou
Computes IoU of two axis aligned bboxes. Args: box_a, box_b: 6D of center and lengths Returns: iou
situation3d/utils/metric_util.py:169
↓ 4 callersFunctioncreate_arrow
()
situation3d/utils/visualization.py:37
↓ 4 callersMethoddefault_config_path
(cls, model_type)
3DLLM_BLIP2-base/lavis/models/base_model.py:73
↓ 4 callersFunctiondownload_url
Download a file from a url and place it in root. Args: url (str): URL to download file from root (str): Directory to place downloa
3DLLM_BLIP2-base/lavis/common/utils.py:162
↓ 4 callersFunctionenhance_level_to_args
(MAX_LEVEL)
3DLLM_BLIP2-base/lavis/processors/randaugment.py:211
↓ 4 callersMethodforward
(self, input)
lib/enet.py:33
↓ 4 callersMethodgenerate
Args: samples (dict): A dictionary containing the following keys: - image (torch.Tensor): A tensor of shape (batc
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_t5.py:186
↓ 4 callersMethodget_processor_class
(cls, name)
3DLLM_BLIP2-base/lavis/common/registry.py:224
↓ 4 callersFunctionis_url
(url_or_filename)
3DLLM_BLIP2-base/lavis/common/utils.py:41
↓ 4 callersMethodlog_every
(self, iterable, print_freq, header=None)
3DLLM_BLIP2-base/lavis/common/logger.py:120
↓ 4 callersMethodpredict_answers
( self, samples, num_beams=5, inference_method="generate", max_len=200
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_t5.py:264
↓ 4 callersFunctionupdate_arrow_pos_rot_color
(arrow, position, rotation, color, situation_loss_tag)
situation3d/utils/visualization.py:48
↓ 4 callersMethodvoxelize
(self, coords, feats, labels, center=None, link=None, return_ind=False)
lib/openscene/voxelizer.py:97
↓ 3 callersMethod__init__
(self, dim, pad, value, index, nInputDim)
lib/enet.py:55
↓ 3 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_laye
3DLLM_BLIP2-base/lavis/models/vit.py:29
↓ 3 callersMethod__init__
(self, prompt="", max_words=50)
3DLLM_BLIP2-base/lavis/processors/blip_processors.py:30
↓ 3 callersMethod_convert_node_to_json
(self, node)
3DLLM_BLIP2-base/lavis/common/config.py:165
↓ 3 callersMethodattention
(self, x: torch.Tensor)
3DLLM_BLIP2-base/lavis/models/clip_vit.py:143
↓ 3 callersMethodbuild_processors
(self)
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:59
↓ 3 callersMethodclass2angle
Inverse function to angle2class. As ScanNet only has axis-alined boxes so angles are always 0.
assets/data/scannet/model_util_scannet.py:130
↓ 3 callersMethodclass2size
Inverse function to size2class
assets/data/scannet/model_util_scannet.py:148
↓ 3 callersMethodeval_epoch
Evaluate the model on a given split. Args: split_name (str): name of the split to evaluate on. cur_epoch (in
3DLLM_BLIP2-base/lavis/runners/runner_base.py:414
↓ 3 callersMethodforward_prepare
(self, input)
lib/enet.py:25
↓ 3 callersFunctionget_abs_path
(rel_path)
3DLLM_BLIP2-base/lavis/common/utils.py:50
↓ 3 callersMethodget_builder_class
(cls, name)
3DLLM_BLIP2-base/lavis/common/registry.py:212
↓ 3 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
3DLLM_BLIP2-base/lavis/models/blip2_models/Qformer.py:650
↓ 3 callersFunctionget_world_size
()
3DLLM_BLIP2-base/lavis/common/dist_utils.py:41
↓ 3 callersFunctionhuber_loss
Args: error: Torch tensor (d1,d2,...,dk) Returns: loss: Torch tensor (d1,d2,...,dk) x = error = pred - gt or dist(pred,g
situation3d/utils/nn_distance.py:6
↓ 3 callersMethodinit_Qformer
(cls, num_query_token, vision_width, cross_attention_freq=2)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2.py:50
↓ 3 callersMethodinit_tokenizer
(cls)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2.py:31
↓ 3 callersFunctioninside
(p)
situation3d/utils/box_util.py:20
↓ 3 callersMethoditos
(self, i)
lib/sepdataset.py:58
↓ 3 callersMethodloadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj)
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa.py:155
↓ 3 callersMethodload_checkpoint_from_config
Load checkpoint as specified in the config file. If load_finetuned is True, load the finetuned model; otherwise, load the pretrained
3DLLM_BLIP2-base/lavis/models/base_model.py:77
↓ 3 callersFunctionload_dataset_config
(cfg_path)
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:215
↓ 3 callersMethodlog_stats
(self, stats, split_name)
3DLLM_BLIP2-base/lavis/runners/runner_base.py:599
↓ 3 callersFunctionmakedir
Create the directory if it does not exist.
3DLLM_BLIP2-base/lavis/common/utils.py:64
↓ 3 callersFunctionpreprocess_annotations_and_read
(input_file, mapping_file)
3DLLM_BLIP2-base/scripts/split_3DLLM_dataset.py:28
↓ 3 callersMethodprocessPunctuation
(self, inText)
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa_eval.py:247
↓ 3 callersMethodregister
r"""Register an item to registry with key 'name' Args: name: Key with which the item will be registered. Usage::
3DLLM_BLIP2-base/lavis/common/registry.py:185
↓ 3 callersFunctionreorg_datasets_by_split
Organizes datasets by split. Args: datasets: dict of torch.utils.data.Dataset objects by name. Returns: Dict of dataset
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:85
↓ 3 callersMethodsetup_task
(cls, cfg)
3DLLM_BLIP2-base/lavis/tasks/vqa.py:48
↓ 3 callersMethodstep
Accumulate one batch of prediction and groundtruth. Args: batch_pred_map_cls: a list of lists [[(pred_cls, pred_box_para
lib/ap_helper.py:238
↓ 3 callersMethodstep
(self, cur_epoch, cur_step)
3DLLM_BLIP2-base/lavis/common/optims.py:29
↓ 3 callersMethodto_dict
(self)
3DLLM_BLIP2-base/lavis/common/config.py:169
↓ 3 callersMethodtrain
(self)
3DLLM_BLIP2-base/lavis/runners/runner_iter.py:67
next →1–100 of 1,152, ranked by callers