MCPcopy Create free account

hub / github.com/ayushjain1144/odin / functions

Functions721 in github.com/ayushjain1144/odin

↓ 58 callersMethodto
(self, device)
odin/utils/misc.py:33
↓ 44 callersFunction_summarize
( ap=1, iouThr=None, areaRng='all', maxDets=100 )
odin/data_video/cocoeval.py:434
↓ 37 callersMethodinfo
Print information about the annotation file. :return:
odin/data_video/coco.py:118
↓ 24 callersMethodstep
(self, action: Union[str, Dict[str, Any]]=None, **action_args)
data_preparation/ai2thor/controller_custom.py:933
↓ 22 callersFunction_summarize
( ap=1, iouThr=None, areaRng='all', maxDets=100 )
odin/data_video/fast_eval_api.py:130
↓ 15 callersMethodload
(self, file_handle)
data_preparation/scannet/SensorData.py:13
↓ 9 callersMethodbackward
input: grad_out: (m, c, nsample) output: (n, c), None
libs/pointops2/functions/pointops.py:68
↓ 8 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
odin/utils/misc.py:133
↓ 7 callersMethod__init__
( self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.0 )
odin/modeling/backbone/swin.py:30
↓ 7 callersFunctionget_detection_dataset_dicts
Load and prepare dataset dicts for instance detection/segmentation and semantic segmentation. Args: dataset_names (str or list[str])
odin/data_video/build.py:113
↓ 7 callersFunctionget_world_size
()
odin/utils/misc.py:117
↓ 7 callersMethodkey_for_point
(self, point)
data_preparation/ai2thor/controller_custom.py:1492
↓ 7 callersMethodstop
(self)
data_preparation/ai2thor/controller_custom.py:1371
↓ 6 callersFunctionis_dist_avail_and_initialized
()
odin/utils/misc.py:109
↓ 6 callersFunctionmap_fig_to_img
(fig)
odin/utils/util_3d.py:275
↓ 6 callersFunctionregister_all_dataset_single
(root, dataset_name="ai2thor")
odin/data_video/datasets/builtin.py:205
↓ 5 callersMethod_load_yaml
(cls, filepath)
data_preparation/base_preprocessing.py:182
↓ 5 callersMethodgetAnnIds
Get ann ids that satisfy given filter conditions. default skips that filter :param imgIds (int array) : get anns for given imgs
odin/data_video/coco.py:126
↓ 5 callersFunctioninterpolate_feats_3d
Inputs: source_feats: tensor [B*V, C, H1, W1] or B, N, C source_xyz: tensor [B, V, H1, W1, 3] or B, N, 3 source_p2v: tens
odin/modeling/backproject/backproject.py:306
↓ 5 callersMethodloadAnns
Load anns with the specified ids. :param ids (int array) : integer ids specifying anns :return: anns (object array) : l
odin/data_video/coco.py:203
↓ 5 callersMethodsave_mat_to_file
(self, matrix, filename)
data_preparation/scannet/SensorData.py:116
↓ 5 callersFunctionsetup
Create configs and perform basic setups.
train_odin.py:562
↓ 4 callersMethod__init__
Args: stem (nn.Module): a stem module stages (list[list[CNNBlockBase]]): several (typically 4) stages,
odin/modeling/backbone/resnet.py:372
↓ 4 callersMethod__init__
(self, input_dim, hidden_dim, output_dim, num_layers)
odin/modeling/meta_arch/self_cross_attention_layers.py:202
↓ 4 callersMethod__init__
(self, num_channels: int, eps: float = 1e-6)
odin/modeling/pixel_decoder/msdeformattn.py:43
↓ 4 callersFunction_get_activation_fn
Return an activation function given a string
odin/modeling/meta_arch/self_cross_attention_layers.py:188
↓ 4 callersMethod_save_yaml
(cls, path, file)
data_preparation/base_preprocessing.py:165
↓ 4 callersMethoddevice
(self)
odin/odin_model.py:234
↓ 4 callersMethodenqueue_point
(self, point)
data_preparation/ai2thor/controller_custom.py:1599
↓ 4 callersFunctionget_color_pc_from_mask
(_mask, label, pcd, instance=False, color_map=SCANNET_COLOR_MAP_20)
odin/utils/util_3d.py:83
↓ 4 callersFunctionget_color_pc_from_mask
(_mask, label, pcd, instance=False, color_map=SCANNET_COLOR_MAP_20)
odin/utils/vis_utils.py:171
↓ 4 callersMethodreset
(self, scene=None, **init_params)
data_preparation/ai2thor/controller_custom.py:655
↓ 4 callersMethodsave_database
(self, database, mode)
data_preparation/base_preprocessing.py:147
↓ 4 callersMethodupsample_pred_masks
( self, mask_pred_results, batched_inputs, multiview_data, shape, downsample=False, in
odin/odin_model.py:605
↓ 4 callersMethodwith_pos_embed
(self, tensor, pos: Optional[Tensor])
odin/modeling/meta_arch/self_cross_attention_layers.py:98
↓ 3 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
odin/modeling/transformer_decoder/position_encoding.py:21
↓ 3 callersMethod_cache_commit_filename
(self, branch)
data_preparation/ai2thor/controller_custom.py:1109
↓ 3 callersMethod_get_cache_commit_history
(self, branch)
data_preparation/ai2thor/controller_custom.py:1118
↓ 3 callersMethod_read_json
(cls, path)
data_preparation/base_preprocessing.py:159
↓ 3 callersFunctiondistance
(point1, point2)
data_preparation/ai2thor/controller_custom.py:361
↓ 3 callersMethodenqueue_points
(self, agent_position)
data_preparation/ai2thor/controller_custom.py:1611
↓ 3 callersFunctioninpaint_depth
inpaints depth using opencv Input: torch tensor with depthvalues: H, W Output: torch tensor with depthvalues: H, W
data_preparation/inpaint_depth.py:16
↓ 3 callersFunctionkey_for_point
(x, z)
data_preparation/ai2thor/controller_custom.py:367
↓ 3 callersMethodmake_stage
Create a list of blocks of the same type that forms one ResNet stage. Args: block_class (type): a subclass of CNNBlockBa
odin/modeling/backbone/resnet.py:567
↓ 3 callersFunctionms_deform_attn_core_pytorch
(value, value_spatial_shapes, sampling_locations, attention_weights)
odin/modeling/pixel_decoder/ops/functions/ms_deform_attn_func.py:52
↓ 3 callersMethodrobothor_scenes
(self, include_train=True, include_val=True)
data_preparation/ai2thor/controller_custom.py:783
↓ 2 callersMethod_derive_coco_results
Derive the desired score numbers from summarized COCOeval. Args: coco_eval (None or COCOEval): None represents no predic
odin/data_video/coco_evaluation.py:424
↓ 2 callersMethod_eval_predictions_batched
(self, predictions, img_ids=None)
odin/data_video/coco_evaluation.py:275
↓ 2 callersFunction_evaluate_predictions_on_coco
Evaluate the coco results using COCOEval API.
odin/data_video/coco_evaluation.py:674
↓ 2 callersMethod_freeze_stages
(self)
odin/modeling/backbone/swin.py:697
↓ 2 callersFunction_get_dataset_instances_meta
(dataset='ai2thor')
odin/data_video/datasets/scannet_context.py:33
↓ 2 callersMethod_get_src_permutation_idx
(self, indices)
odin/modeling/criterion.py:320
↓ 2 callersFunction_ignore_torch_cuda_oom
A context which ignores CUDA OOM exception from pytorch.
odin/utils/memory.py:13
↓ 2 callersMethod_prepare
Prepare ._gts and ._dts for evaluation based on params :return: None
odin/data_video/cocoeval.py:84
↓ 2 callersFunction_read_json
(path)
data_preparation/matterport3d/process_matterport_3d.py:75
↓ 2 callersMethodaddPoint
libs/pointgroup_ops/src/bfs_cluster.cpp:26
↓ 2 callersFunctionaggregate_images_by_sceneid
Takes in all scannet images, and add its multiview images as contexts.
odin/data_video/datasets/scannet_context.py:122
↓ 2 callersMethodannToRLE
Convert annotation which can be polygons, uncompressed RLE to RLE. :return: binary mask (numpy 2D array)
odin/data_video/coco.py:424
↓ 2 callersFunctionbatch_dice_loss
Compute the DICE loss, similar to generalized IOU for masks Args: inputs: A float tensor of arbitrary shape. The pred
odin/modeling/matcher.py:18
↓ 2 callersFunctionbuild_detection_test_loader
Similar to `build_detection_train_loader`, but uses a batch size of 1. This interface is experimental. Args: dataset (list or to
odin/data_video/build.py:403
↓ 2 callersFunctionbuild_detection_train_loader
Build a dataloader for object detection with some default features. This interface is experimental. Args: dataset (list or torch
odin/data_video/build.py:339
↓ 2 callersFunctionclean_name
(name)
odin/data_video/sentence_utils.py:11
↓ 2 callersFunctionconvert_od_to_grounding_simple
Convert object detection data into grounding data format, on the fly. ind_to_class: {0: "__background__", 1 : "person" ...}, contiguous id
odin/data_video/sentence_utils.py:90
↓ 2 callersFunctionconvert_video_instances_to_3d
( instances_all, num_frames, h_pad, w_pad, device, convert_point_semantic_instance=False, skip_classes=Non
odin/utils/util_video_to_3d.py:8
↓ 2 callersMethodcreateIndex
(self)
odin/data_video/coco.py:87
↓ 2 callersFunctioncreate_color_palette
()
odin/data_video/segmentation_benchmark/util.py:82
↓ 2 callersFunctiondump_scene
(scene, scene_id)
data_preparation/ai2thor/ai2thor_datagen.py:33
↓ 2 callersFunctionembedding_to_3d_color
Project high-dimension embeddings to RGB colors. Args: embeddings: A 3-D float tensor with shape `[batch_size, embedding_dim, num_
odin/utils/feature_vis.py:78
↓ 2 callersMethodencode_pe
(self, xyz=None)
odin/modeling/meta_arch/cross_view_attention.py:64
↓ 2 callersMethodfix_bugs_in_labels
(self)
data_preparation/base_preprocessing.py:144
↓ 2 callersMethodfreeze
Freeze the first several stages of the ResNet. Commonly used in fine-tuning. Layers that produce the same feature map spatia
odin/modeling/backbone/resnet.py:542
↓ 2 callersMethodgetCatIds
filtering parameters. default skips that filter. :param catNms (str array) : get cats for given cat names :param supNms (str
odin/data_video/coco.py:157
↓ 2 callersMethodgetImgIds
Get img ids that satisfy given filter conditions. :param imgIds (int array) : get imgs for given ids :param catIds (int array
odin/data_video/coco.py:182
↓ 2 callersMethodget_loss
(self, loss, outputs, targets, indices, num_masks, decoder_3d=False)
odin/modeling/criterion.py:332
↓ 2 callersFunctionget_scenes
takes in a video dataset and retuns dict of scene to images mapping returns : dict{scene_id: str, image_dataset_ids: []}
odin/data_video/datasets/scannet_context.py:93
↓ 2 callersFunctiongrouping
(idx, feat, xyz, new_xyz=None, with_xyz=False)
libs/pointops/functions/grouping.py:36
↓ 2 callersFunctioninstances_to_coco_json
Dump an "Instances" object to a COCO-format json that's used for evaluation. Args: instances (Instances): img_id (int): the
odin/data_video/coco_evaluation.py:499
↓ 2 callersMethodithor_scenes
( self, include_kitchens=True, include_living_rooms=True, include_bedrooms=Tru
data_preparation/ai2thor/controller_custom.py:758
↓ 2 callersMethodjoint_database
(self, train_modes=["train", "validation"])
data_preparation/base_preprocessing.py:152
↓ 2 callersFunctionload_ply
(filepath)
data_preparation/base_preprocessing.py:16
↓ 2 callersFunctionload_scannet_json
(json_file, image_root, dataset_name=None)
odin/data_video/datasets/scannet_context.py:140
↓ 2 callersFunctionmaybe_to_cpu
(x)
odin/utils/memory.py:52
↓ 2 callersMethodopen_vocab_class_pred
(self, decoder_output, text_feats, positive_map_od=None, num_classes=None)
odin/modeling/transformer_decoder/odin_transformer_decoder.py:252
↓ 2 callersFunctionopt_n_threads
libs/pointops2/src/cuda_utils.h:11
↓ 2 callersFunctionopt_n_threads
libs/pointops/src/cuda_utils.h:11
↓ 2 callersMethodparse_gt
Args: inputs['all_instances']: all k-frames instances in detectron2 format Returns: [{ "masks": list of g
odin/data_video/scannet_3d_eval.py:142
↓ 2 callersFunctionparse_scenes
(area)
data_preparation/s3dis/convert_dataset.py:198
↓ 2 callersFunctionparse_scenes
(area)
data_preparation/s3dis/convert_dataset_raw.py:181
↓ 2 callersFunctionpca
Conducts principal component analysis on the embedding features. This function is used to reduce the dimensionality of the embedding. Args:
odin/utils/feature_vis.py:18
↓ 2 callersFunctionplot_masks
(masks, xdata, ydata, zdata, color)
odin/utils/util_3d.py:32
↓ 2 callersFunctionprepare_feats_for_pointops
(xyz, shape, feats=None, voxelize=False, p2v=None)
odin/modeling/backproject/backproject.py:267
↓ 2 callersFunctionprocess_alive
Use kill(0) to determine if pid is alive :param pid: process id :rtype: bool
data_preparation/ai2thor/controller_custom.py:347
↓ 2 callersMethodqueue_step
(self)
data_preparation/ai2thor/controller_custom.py:1934
↓ 2 callersFunctionregister_scannet_context_instances_single
(name, metadata, json_file, image_root)
odin/data_video/datasets/scannet_context.py:203
↓ 2 callersMethodstart
( self, port=0, start_unity=True, width=300, height=300, x_dis
data_preparation/ai2thor/controller_custom.py:1301
↓ 2 callersFunctionsummarize
Compute and display summary metrics for evaluation results. Note this functin can *only* be applied on the default parameter setting
odin/data_video/cocoeval.py:429
↓ 2 callersMethodsummarize
Compute and display summary metrics for evaluation results given a custom value for max_dets_per_image
odin/data_video/coco_evaluation.py:743
↓ 2 callersMethodtarget_point
(self)
data_preparation/ai2thor/controller_custom.py:1400
↓ 2 callersFunctionvoxelization
Inputs: xyz: tensor [B, N, 3] voxel_size: float Outputs: point_to_voxel_all: tensor [B, N], is the mapping from orig
odin/modeling/backproject/backproject.py:247
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
odin/modeling/backbone/swin.py:50
next →1–100 of 721, ranked by callers