MCPcopy Create free account

hub / github.com/YunzeMan/Situation3D / functions

Functions1,152 in github.com/YunzeMan/Situation3D

↓ 2 callersMethod__init__
(self, use_xyz=True, ret_grouped_xyz=False)
lib/pointnet2/pointnet2_utils.py:387
↓ 2 callersMethod__init__
vis_root (string): Root directory of images (e.g. coco/images/) ann_root (string): directory to store the annotation file
3DLLM_BLIP2-base/lavis/datasets/datasets/threedvqa_datasets.py:38
↓ 2 callersMethod_dump_log
(self, phase)
lib/solver.py:629
↓ 2 callersMethod_finish
(self, epoch_id)
lib/solver.py:648
↓ 2 callersMethod_load_checkpoint
Resume from a checkpoint.
3DLLM_BLIP2-base/lavis/runners/runner_base.py:576
↓ 2 callersMethod_save_checkpoint
(self, cur_iters, is_best=False)
3DLLM_BLIP2-base/lavis/runners/runner_iter.py:146
↓ 2 callersMethod_set_phase
(self, phase)
lib/solver.py:610
↓ 2 callersMethod_shift_right
(self, input_ids)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:829
↓ 2 callersMethod_train_inner_loop
An inner training loop compatible with both epoch-based and iter-based training. When using epoch-based, training stops after one ep
3DLLM_BLIP2-base/lavis/tasks/base_task.py:151
↓ 2 callersFunction_urlretrieve
(url: str, filename: str, chunk_size: int = 1024)
3DLLM_BLIP2-base/lavis/common/utils.py:151
↓ 2 callersMethodadd_meter
(self, name, meter)
3DLLM_BLIP2-base/lavis/common/logger.py:117
↓ 2 callersMethodbackward
(ctx, *grads)
3DLLM_BLIP2-base/lavis/models/base_model.py:183
↓ 2 callersFunctionbbox_corner_dist_measure
compute distance between box corners to replace iou Args: crnr1, crnr2: Nx3 points of box corners in camera axis (y points down)
situation3d/utils/pc_utils.py:319
↓ 2 callersMethodbuild_datasets
(self, cfg)
3DLLM_BLIP2-base/lavis/tasks/vqa.py:71
↓ 2 callersMethodbuild_model
(self, cfg)
3DLLM_BLIP2-base/lavis/tasks/base_task.py:29
↓ 2 callersFunctioncomputeIntersection
()
situation3d/utils/box_util.py:23
↓ 2 callersMethodcompute_itm
(self, image_inputs, text_ids, text_atts)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_qformer.py:312
↓ 2 callersFunctionconcat_datasets
Concatenates multiple datasets into a single dataset. It supports may-style datasets and DataPipeline from WebDataset. Currently, does not s
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:111
↓ 2 callersFunctionconvert_6d_to_rotvec
(rot)
situation3d/utils/metric_util.py:47
↓ 2 callersFunctionconvert_oriented_box_to_trimesh_fmt
(box)
situation3d/utils/pc_utils.py:403
↓ 2 callersFunctionconvert_weights_to_fp16
Convert applicable model parameters to fp16
3DLLM_BLIP2-base/lavis/models/eva_vit.py:464
↓ 2 callersMethodcreateIndex
(self)
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa.py:53
↓ 2 callersMethodcreate_loaders
Create dataloaders for training and validation.
3DLLM_BLIP2-base/lavis/runners/runner_base.py:454
↓ 2 callersFunctioncrop
Args: clip (torch.tensor): Video clip to be cropped. Size is (C, T, H, W)
3DLLM_BLIP2-base/lavis/processors/functional_video.py:23
↓ 2 callersFunctioneval_det_cls
Generic functions to compute precision/recall for object detection for a single class. Input: pred: map of {img_id: [(bbo
situation3d/utils/eval_det.py:57
↓ 2 callersFunctionexport
points are XYZ RGB (RGB in 0-255), semantic label as nyu40 ids, instance label as 1-#instance, box as (cx,cy,cz,dx,dy,dz,semantic_label)
assets/data/scannet/load_scannet_data.py:48
↓ 2 callersFunctionextract_clip_feature
(labelset, model_name="ViT-B/32")
situation3d/utils/segmentation_util.py:186
↓ 2 callersMethodformat_arguments
(self)
3DLLM_BLIP2-base/lavis/common/config.py:250
↓ 2 callersMethodformat_help
(self)
3DLLM_BLIP2-base/lavis/common/config.py:253
↓ 2 callersMethodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
3DLLM_BLIP2-base/lavis/models/med.py:370
↓ 2 callersMethodfrom_config
(cls, cfg=None)
3DLLM_BLIP2-base/lavis/processors/base_processor.py:20
↓ 2 callersMethodgetQuesIds
Get question ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get question ids f
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa.py:79
↓ 2 callersFunctionget_3d_box
box_size is array(l,w,h), heading_angle is radius clockwise from pos x axis, center is xyz of box center output (8,3) array for 3D box cornde
situation3d/utils/box_util.py:282
↓ 2 callersFunctionget_box3d_min_max
Compute min and max coordinates for 3D bounding box Note: only for axis-aligned bounding boxes Input: corners: numpy array (8,3)
situation3d/utils/box_util.py:127
↓ 2 callersFunctionget_box3d_min_max_batch
Compute min and max coordinates for 3D bounding box Note: only for axis-aligned bounding boxes Input: corners: numpy array (N,8,
situation3d/utils/box_util.py:173
↓ 2 callersFunctionget_dataloader
(args, sqa, all_scene_list, split, config, augment, answer_counter_list)
situation3d/train/train.py:111
↓ 2 callersFunctionget_lemma
(ss)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dllm.py:221
↓ 2 callersFunctionget_lemma
(ss)
3DLLM_BLIP2-base/calculate_scores/calculate_score_sqa3d.py:221
↓ 2 callersFunctionget_lemma
(ss)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dmvvqa.py:221
↓ 2 callersFunctionget_lemma
(ss)
3DLLM_BLIP2-base/calculate_scores/calculate_score_scanqa.py:221
↓ 2 callersFunctionheading2rotmat
(heading_angle)
situation3d/utils/pc_utils.py:394
↓ 2 callersFunctioninit_distributed_mode
(args)
3DLLM_BLIP2-base/lavis/common/dist_utils.py:57
↓ 2 callersMethodinit_vision_encoder
(cls, model_name, img_size, drop_path_rate, use_grad_checkpoint, precision)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2.py:63
↓ 2 callersMethodload_checkpoint
Load from a finetuned checkpoint. This should expect no mismatch in the model keys and the checkpoint keys.
3DLLM_BLIP2-base/lavis/models/base_model.py:29
↓ 2 callersMethodlog_config
(self)
3DLLM_BLIP2-base/lavis/runners/runner_base.py:608
↓ 2 callersMethodmake_mask
return a mask that is True for zero values and False for other values.
situation3d/models/sep_lang_module_bert.py:62
↓ 2 callersFunctionmetric_localization
gt_pos: [N, 3]; ground truth position, in xyz (unit is meter) gt_rot: [N, 4]; ground truth roation, in xyzw (quaternion) pred_pos: [N, 3]
situation3d/utils/metric_util.py:16
↓ 2 callersFunctionmove_to_cuda
(sample)
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:69
↓ 2 callersMethodnext
(self, it)
3DLLM_BLIP2-base/lavis/datasets/datasets/dataloader_utils.py:99
↓ 2 callersFunctionnms_2d_faster
(boxes, overlap_threshold, old_type=False)
situation3d/utils/nms.py:40
↓ 2 callersFunctionnormalize_v3
Normalize a numpy array of 3 component vectors shape=(n,3)
assets/data/scannet/scannet_utils.py:18
↓ 2 callersFunctionnow
()
3DLLM_BLIP2-base/lavis/common/utils.py:35
↓ 2 callersFunctionopt_n_threads
lib/pointnet2/_ext_src/include/cuda_utils.h:15
↓ 2 callersFunctionpoint_cloud_to_bbox
Extract the axis aligned box from a pcl or batch of pcls Args: points: Nx3 points or BxNx3 output is 6 dim: xyz pos of center and
situation3d/utils/pc_utils.py:342
↓ 2 callersFunctionpoint_cloud_to_spheres
(pcd, colors, sphere_radius=0.05)
situation3d/utils/visualization.py:226
↓ 2 callersMethodpreload
(self, it)
3DLLM_BLIP2-base/lavis/datasets/datasets/dataloader_utils.py:74
↓ 2 callersFunctionprep_ans
(answer)
lib/qa_helper.py:101
↓ 2 callersFunctionprepare_sample
(samples, cuda_enabled=True)
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:76
↓ 2 callersMethodpretty_print
(self)
3DLLM_BLIP2-base/lavis/common/config.py:147
↓ 2 callersMethodprocessDigitArticle
(self, inText)
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa_eval.py:257
↓ 2 callersMethodprune_heads
(self, heads)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:366
↓ 2 callersFunctionqclass1
(question)
3DLLM_BLIP2-base/calculate_scores/calculate_score_sqa3d.py:307
↓ 2 callersFunctionqclass1
(question)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dmvvqa.py:307
↓ 2 callersFunctionrandom_sampling
Input is NxC, output is num_samplexC
situation3d/utils/pc_utils.py:25
↓ 2 callersFunctionsetup_logger
()
3DLLM_BLIP2-base/lavis/common/logger.py:184
↓ 2 callersFunctionshear_level_to_args
(MAX_LEVEL, replace_value)
3DLLM_BLIP2-base/lavis/processors/randaugment.py:218
↓ 2 callersFunctionsimple_ratio
(numerator,denominator)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dllm.py:225
↓ 2 callersFunctionsimple_ratio
(numerator,denominator)
3DLLM_BLIP2-base/calculate_scores/calculate_score_sqa3d.py:225
↓ 2 callersFunctionsimple_ratio
(numerator,denominator)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dmvvqa.py:225
↓ 2 callersFunctionsimple_ratio
(numerator,denominator)
3DLLM_BLIP2-base/calculate_scores/calculate_score_scanqa.py:225
↓ 2 callersFunctionsoftmax
Numpy function for softmax
lib/ap_helper.py:33
↓ 2 callersFunctionsparse_quantize
r'''Given coordinates, and features (optionally labels), the function generates quantized (voxelized) coordinates. Args: coords (:att
lib/openscene/voxelization_utils.py:44
↓ 2 callersFunctiontranslate_level_to_args
(translate_const, MAX_LEVEL, replace_value)
3DLLM_BLIP2-base/lavis/processors/randaugment.py:228
↓ 2 callersFunctiontune_channel
(ch)
3DLLM_BLIP2-base/lavis/processors/randaugment.py:25
↓ 2 callersMethodupdate
(self, value, n=1)
3DLLM_BLIP2-base/lavis/common/logger.py:32
↓ 2 callersFunctionwarmup_lr_schedule
Warmup the learning rate
3DLLM_BLIP2-base/lavis/common/optims.py:87
↓ 1 callersFunctionM
(axis, theta)
lib/openscene/voxelizer.py:11
↓ 1 callersMethod__getitem__
(self, index)
3DLLM_BLIP2-base/lavis/datasets/datasets/threedvqa_datasets.py:63
↓ 1 callersMethod__init__
(self, feature_2d_extractor='openseg')
situation3d/models/mink_unet.py:295
↓ 1 callersMethod__init__
(self, num_answers, situation_loss_tag, # qa answer_pdrop=0.3, mcan_num_layers
situation3d/models/sqa_module.py:126
↓ 1 callersMethod__init__
(self, answers=None, unk_token='<unk>', ignore_idx=-100)
lib/sepdataset.py:50
↓ 1 callersMethod__init__
(self, vis_processor=None, text_processor=None, vis_root=None, ann_paths=[])
3DLLM_BLIP2-base/lavis/datasets/datasets/base_dataset.py:9
↓ 1 callersMethod__init__
(self, vis_processor, text_processor, vis_root, ann_paths)
3DLLM_BLIP2-base/lavis/datasets/datasets/vqa_datasets.py:7
↓ 1 callersMethod__init__
(self)
3DLLM_BLIP2-base/lavis/models/base_model.py:22
↓ 1 callersMethod_add_instance_ids
(self, key="instance_id")
3DLLM_BLIP2-base/lavis/datasets/datasets/base_dataset.py:37
↓ 1 callersFunction_apply
(x)
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:56
↓ 1 callersMethod_backward
(self)
lib/solver.py:618
↓ 1 callersMethod_best_report
(self)
lib/solver.py:729
↓ 1 callersMethod_build_opt_list
(self, opts)
3DLLM_BLIP2-base/lavis/common/config.py:60
↓ 1 callersFunction_cached_log_stream
(filename)
situation3d/utils/logger.py:89
↓ 1 callersFunction_check_and_coerce_cfg_value_type
Checks that `replacement`, which is intended to replace `original` is of the right type. The type is correct if it matches exactly or is one of a
lib/config.py:225
↓ 1 callersMethod_compute_corner_points
(self)
lib/projection.py:29
↓ 1 callersMethod_compute_loss
(self, data_dict)
lib/solver.py:503
↓ 1 callersMethod_convert_to_dot_list
(self, opts)
3DLLM_BLIP2-base/lavis/common/config.py:118
↓ 1 callersFunction_decode_cfg_value
Decodes a raw config value (e.g., from a yaml config files or command line argument) into a Python object.
lib/config.py:207
↓ 1 callersMethod_download_ann
Download annotation files if necessary. All the vision-language datasets should have annotations of unified format. storage_
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:89
↓ 1 callersMethod_download_vis
(self)
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:144
↓ 1 callersMethod_epoch_report
(self, epoch_id)
lib/solver.py:714
↓ 1 callersMethod_eval
(self, data_dict, phase, scene_number_to_id)
lib/solver.py:523
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:87
← previousnext →101–200 of 1,152, ranked by callers