Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YunzeMan/Situation3D
/ functions
Functions
1,152 in github.com/YunzeMan/Situation3D
⨍
Functions
1,152
◇
Types & classes
257
↳
Endpoints
2
↓ 1 callers
Method
_feed
(self, dataloader, phase, epoch_id)
lib/solver.py:315
↓ 1 callers
Method
_forward
(self, data_dict)
lib/solver.py:496
↓ 1 callers
Function
_get_google_drive_file_id
(url: str)
3DLLM_BLIP2-base/lavis/common/utils.py:138
↓ 1 callers
Method
_get_nyu40id2class
(self)
assets/data/scannet/model_util_scannet.py:100
↓ 1 callers
Method
_lemmatize
(self, answers)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_t5.py:347
↓ 1 callers
Method
_load_checkpoint
Resume from a checkpoint.
3DLLM_BLIP2-base/lavis/runners/runner_iter.py:161
↓ 1 callers
Method
_load_data
(self)
lib/sepdataset.py:415
↓ 1 callers
Function
_load_weights
Load weights from .npz checkpoints for official Google Brain Flax implementation
3DLLM_BLIP2-base/lavis/models/vit.py:277
↓ 1 callers
Function
_make_causal_mask
Make causal mask used for bi-directional self-attention.
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:72
↓ 1 callers
Function
_ntuple
(n)
3DLLM_BLIP2-base/lavis/models/clip_vit.py:212
↓ 1 callers
Method
_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:530
↓ 1 callers
Method
_progress
(self, cur_iters)
3DLLM_BLIP2-base/lavis/runners/runner_iter.py:64
↓ 1 callers
Method
_relative_position_bucket
Adapted from Mesh Tensorflow: https://github.com/tensorflow/mesh/blob/0cb87fe07da627bf0b7e60475d59f95ed6b5be3d/mesh_tensorflow/transf
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:381
↓ 1 callers
Method
_reload_best_model
Load the best checkpoint for evaluation.
3DLLM_BLIP2-base/lavis/runners/runner_base.py:556
↓ 1 callers
Method
_report_metrics
(scores_i2t, scores_t2i, txt2img, img2txt)
3DLLM_BLIP2-base/lavis/tasks/retrieval.py:54
↓ 1 callers
Method
_report_metrics
(self, eval_result_file, split_name)
3DLLM_BLIP2-base/lavis/tasks/multimodal_classification.py:64
↓ 1 callers
Method
_report_metrics
TODO: add other evaluation metrics for GQA
3DLLM_BLIP2-base/lavis/tasks/vqa_reading_comprehension.py:195
↓ 1 callers
Method
_report_metrics
Use official VQA evaluation script to report metrics.
3DLLM_BLIP2-base/lavis/tasks/vqa.py:125
↓ 1 callers
Method
_reset_log
(self, phase)
lib/solver.py:568
↓ 1 callers
Method
_save_checkpoint
Save the checkpoint at the current epoch.
3DLLM_BLIP2-base/lavis/runners/runner_base.py:531
↓ 1 callers
Method
_save_result_leaderboard
Saving the results in the format required for leaderboard evaluation.
3DLLM_BLIP2-base/lavis/tasks/vqa_reading_comprehension.py:232
↓ 1 callers
Method
_start
(self)
lib/solver.py:308
↓ 1 callers
Method
_train_report
(self, epoch_id)
lib/solver.py:676
↓ 1 callers
Method
_tranform_text_glove
(self, token_type='token')
lib/sepdataset.py:360
↓ 1 callers
Method
_visualize_scene_wandb
(self, data_dict, scene_number_to_id, phase)
lib/solver.py:555
↓ 1 callers
Method
after_evaluation
(self, val_result, split_name, epoch)
3DLLM_BLIP2-base/lavis/tasks/vqa.py:112
↓ 1 callers
Function
all_gather_with_grad
Performs all_gather operation on the provided tensors. Graph remains connected for backward grad computation.
3DLLM_BLIP2-base/lavis/models/base_model.py:189
↓ 1 callers
Function
apply_to_sample
(f, sample)
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:52
↓ 1 callers
Method
att
(self, value, key, query, mask)
situation3d/models/mcan_sqa_module.py:167
↓ 1 callers
Method
backward
(ctx, grad_output)
lib/projection.py:308
↓ 1 callers
Method
backward
(ctx, a=None, b=None)
lib/pointnet2/pointnet2_utils.py:145
↓ 1 callers
Function
ball_query
lib/pointnet2/_ext_src/src/ball_query.cpp:8
↓ 1 callers
Function
batch_export
()
assets/data/scannet/batch_load_scannet_data.py:66
↓ 1 callers
Method
before_evaluation
(self, model, dataset, **kwargs)
3DLLM_BLIP2-base/lavis/tasks/base_task.py:70
↓ 1 callers
Function
box3d_iou
Compute 3D bounding box IoU. Input: corners1: numpy array (8,3), assume up direction is Z corners2: numpy array (8,3), assume up
situation3d/utils/box_util.py:87
↓ 1 callers
Method
build
Create by split datasets inheriting torch.utils.data.Datasets. # build() can be dataset-specific. Overwrite to customize.
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:157
↓ 1 callers
Method
build_dataset_config
(config)
3DLLM_BLIP2-base/lavis/common/config.py:96
↓ 1 callers
Method
build_datasets
(self)
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:43
↓ 1 callers
Method
build_model_config
(config, **kwargs)
3DLLM_BLIP2-base/lavis/common/config.py:65
↓ 1 callers
Method
build_runner_config
(config)
3DLLM_BLIP2-base/lavis/common/config.py:92
↓ 1 callers
Method
class2angle_batch
Inverse function to angle2class. As ScanNet only has axis-alined boxes so angles are always 0.
assets/data/scannet/model_util_scannet.py:136
↓ 1 callers
Method
class2size_batch
Inverse function to size2class
assets/data/scannet/model_util_scannet.py:152
↓ 1 callers
Function
coco_caption_eval
(coco_gt_root, results_file, split)
3DLLM_BLIP2-base/lavis/tasks/captioning.py:105
↓ 1 callers
Function
coco_dialogue_eval
(coco_gt_root, results_file, split)
3DLLM_BLIP2-base/lavis/tasks/dialogue.py:90
↓ 1 callers
Method
collater
(self, samples)
3DLLM_BLIP2-base/lavis/datasets/datasets/base_dataset.py:24
↓ 1 callers
Function
compute_answer_classification_loss
Compute answer loss Args: data_dict: dict (read-only) Returns: answer_loss
lib/loss_helper.py:213
↓ 1 callers
Function
compute_aux_situation_loss
(data_dict, situation_loss_tag)
lib/loss_helper.py:195
↓ 1 callers
Method
compute_bias
Compute binned relative position bias
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_t5.py:429
↓ 1 callers
Function
compute_box_and_sem_cls_loss
Compute 3D bounding box and semantic classification loss. Args: data_dict: dict (read-only) Returns: center_loss he
lib/loss_helper.py:118
↓ 1 callers
Method
compute_frustum_corners
Computes the coordinates of the viewing frustum corresponding to one image and given camera parameters :param camera_to_world: torch
lib/projection.py:49
↓ 1 callers
Method
compute_frustum_normals
Computes the normal vectors (pointing inwards) to the 6 planes that bound the viewing frustum :param corner_coords: torch tensor of
lib/projection.py:79
↓ 1 callers
Function
compute_normal
(vertices, faces)
assets/data/scannet/scannet_utils.py:26
↓ 1 callers
Function
compute_objectness_loss
Compute objectness loss for the proposals. Args: data_dict: dict (read-only) Returns: objectness_loss: scalar Tensor
lib/loss_helper.py:72
↓ 1 callers
Function
compute_sim_matrix
(model, data_loader, **kwargs)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2.py:109
↓ 1 callers
Method
compute_sim_matrix
Compute similarity i2t, t2i matrix for the given data loader.
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_qformer.py:455
↓ 1 callers
Function
compute_vote_loss
Compute vote loss: Match predicted votes to GT votes. Args: data_dict: dict (read-only) Returns: vote_loss: scalar Tensor
lib/loss_helper.py:25
↓ 1 callers
Function
conditional_cast
(from_type, to_type)
lib/config.py:240
↓ 1 callers
Function
confusion_matrix
calculate the confusion matrix.
situation3d/utils/segmentation_util.py:50
↓ 1 callers
Function
constructor3d
(**kwargs)
situation3d/models/mink_unet.py:288
↓ 1 callers
Function
convert_box_to_trimesh_fmt
(box)
situation3d/utils/pc_utils.py:366
↓ 1 callers
Function
cosine_lr_schedule
Decay the learning rate
3DLLM_BLIP2-base/lavis/common/optims.py:80
↓ 1 callers
Function
count_parameters
(model)
situation3d/utils/count_parameters.py:3
↓ 1 callers
Function
create_clip_vit_L
(img_size=224, use_checkpoint=False, precision="fp16")
3DLLM_BLIP2-base/lavis/models/clip_vit.py:260
↓ 1 callers
Function
create_enet
(num_classes)
lib/enet.py:130
↓ 1 callers
Function
create_eva_vit_g
(img_size=224, drop_path_rate=0.4, use_checkpoint=False, precision="fp16")
3DLLM_BLIP2-base/lavis/models/eva_vit.py:482
↓ 1 callers
Function
create_runner_config_validator
()
3DLLM_BLIP2-base/lavis/common/config.py:263
↓ 1 callers
Function
create_sinusoidal_embeddings
(n_pos, dim, out)
situation3d/models/sqa_module.py:67
↓ 1 callers
Function
decode_eta
(eta_sec)
situation3d/utils/eta.py:18
↓ 1 callers
Method
default_config_path
(cls, type="default")
3DLLM_BLIP2-base/lavis/datasets/builders/base_dataset_builder.py:82
↓ 1 callers
Function
demo_nn_distance
()
situation3d/utils/nn_distance.py:54
↓ 1 callers
Method
elastic_distortion
Apply elastic distortion on sparse coordinate space. pointcloud: numpy array of (number of points, at least 3 spatial dims) granu
lib/openscene/augmentation.py:164
↓ 1 callers
Function
eval_det_multiprocessing
Generic functions to compute precision/recall for object detection for multiple classes. Input: pred_all: map of {img_id:
situation3d/utils/eval_det.py:190
↓ 1 callers
Function
eval_pycoco
(gold_data, preds, use_spice=False)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dllm.py:268
↓ 1 callers
Function
eval_pycoco
(gold_data, preds, use_spice=False)
3DLLM_BLIP2-base/calculate_scores/calculate_score_sqa3d.py:268
↓ 1 callers
Function
eval_pycoco
(gold_data, preds, use_spice=False)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dmvvqa.py:268
↓ 1 callers
Function
eval_pycoco
(gold_data, preds, use_spice=False)
3DLLM_BLIP2-base/calculate_scores/calculate_score_scanqa.py:268
↓ 1 callers
Function
evals_json
(gold_data,preds)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dllm.py:243
↓ 1 callers
Function
evals_json
(gold_data,preds)
3DLLM_BLIP2-base/calculate_scores/calculate_score_sqa3d.py:243
↓ 1 callers
Function
evals_json
(gold_data,preds)
3DLLM_BLIP2-base/calculate_scores/calculate_score_3dmvvqa.py:243
↓ 1 callers
Function
evals_json
(gold_data,preds)
3DLLM_BLIP2-base/calculate_scores/calculate_score_scanqa.py:243
↓ 1 callers
Method
evaluate
(self, quesIds=None)
3DLLM_BLIP2-base/lavis/common/vqa_tools/vqa_eval.py:193
↓ 1 callers
Method
evaluation
(self, model, data_loader, cuda_enabled=True)
3DLLM_BLIP2-base/lavis/tasks/base_task.py:79
↓ 1 callers
Function
export_one_scan
(scan_name, output_filename_prefix)
assets/data/scannet/batch_load_scannet_data.py:24
↓ 1 callers
Function
extract_archive
Extract archive. Args: from_path: the path of the archive. to_path: the root path of the extracted files (directory of from_path)
3DLLM_BLIP2-base/lavis/datasets/data_utils.py:164
↓ 1 callers
Function
extract_pc_in_box3d
pc: (N,3), box3d: (8,3)
assets/data/scannet/model_util_scannet.py:19
↓ 1 callers
Function
extract_text_feature
extract CLIP text features.
situation3d/utils/segmentation_util.py:210
↓ 1 callers
Method
fix_init_weight
(self)
3DLLM_BLIP2-base/lavis/models/eva_vit.py:365
↓ 1 callers
Function
fnv_hash_vec
FNV64-1A
lib/openscene/voxelization_utils.py:9
↓ 1 callers
Method
forward
(self, x)
3DLLM_BLIP2-base/lavis/models/vit.py:45
↓ 1 callers
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
3DLLM_BLIP2-base/lavis/models/blip2_models/modeling_opt.py:767
↓ 1 callers
Method
forward_features
(self, x)
3DLLM_BLIP2-base/lavis/models/eva_vit.py:389
↓ 1 callers
Method
forward_image
(self, image)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_qformer.py:290
↓ 1 callers
Method
forward_text
(self, text_tokens)
3DLLM_BLIP2-base/lavis/models/blip2_models/blip2_qformer.py:304
↓ 1 callers
Method
generate
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_opt.py:168
↓ 1 callers
Function
get_answer_cands
(args, answer_counter_list)
situation3d/eval/eval.py:87
↓ 1 callers
Function
get_answer_cands
(args, answer_counter_list)
situation3d/train/train.py:98
↓ 1 callers
Function
get_answer_score
(freq)
lib/sepdataset.py:38
↓ 1 callers
Function
get_cache_path
(rel_path)
3DLLM_BLIP2-base/lavis/common/utils.py:46
↓ 1 callers
Function
get_cached_file_path
()
3DLLM_BLIP2-base/lavis/common/dist_utils.py:119
↓ 1 callers
Function
get_dataloader
(args, sqa, all_scene_list, split, config, augment, answer_counter_list, test=False)
situation3d/eval/eval.py:100
← previous
next →
201–300 of 1,152, ranked by callers