SYMBOL INDEX (978 symbols across 66 files) FILE: data_schedule/__init__.py function build_schedule (line 9) | def build_schedule(configs, model_input_mapper, model_input_collate_fn): function composition (line 88) | def composition(data_dict, mappers): function evaluate_call (line 95) | def evaluate_call(evaluators, model, output_dir): function _infinite_indices (line 108) | def _infinite_indices(seed, dataset_length, shuffle=True,): function infinite_indices (line 118) | def infinite_indices(seed, FILE: data_schedule/registry.py class Mapper (line 7) | class Mapper: method __init__ (line 8) | def __init__(self, method _call (line 14) | def _call(self, data_dict): method __call__ (line 17) | def __call__(self, data_dict): FILE: data_schedule/utils/box_ops.py function box_cxcywh_to_xyxy (line 9) | def box_cxcywh_to_xyxy(x): function box_xyxy_to_cxcywh (line 16) | def box_xyxy_to_cxcywh(x): function box_iou (line 26) | def box_iou(boxes1, boxes2): function generalized_box_iou (line 42) | def generalized_box_iou(boxes1, boxes2): function masks_to_boxes (line 66) | def masks_to_boxes(masks): FILE: data_schedule/utils/sampler.py class TrainRandomSampler_ByEpoch (line 15) | class TrainRandomSampler_ByEpoch(Sampler[int]): method __init__ (line 16) | def __init__(self, method __iter__ (line 25) | def __iter__(self): method __len__ (line 36) | def __len__(self) -> int: method set_epoch (line 39) | def set_epoch(self, epoch: int) -> None: class Train_InfiniteSampler_Distributed (line 49) | class Train_InfiniteSampler_Distributed(Sampler[T_co]): method __init__ (line 50) | def __init__(self, method set_iter_first_sample_idx (line 62) | def set_iter_first_sample_idx(self, idx): method set_iter_last_sample_idx (line 65) | def set_iter_last_sample_idx(self, idx): method __iter__ (line 68) | def __iter__(self) -> Iterator[T_co]: class Evaluate_ExactSampler_Distributed (line 72) | class Evaluate_ExactSampler_Distributed(Sampler[T_co]): method __init__ (line 73) | def __init__(self, dataset) -> None: method __iter__ (line 81) | def __iter__(self): method __len__ (line 84) | def __len__(self): class TrainRandomSampler_ByEpoch_Distributed (line 88) | class TrainRandomSampler_ByEpoch_Distributed(Sampler[T_co]): method __init__ (line 89) | def __init__(self, method __iter__ (line 104) | def __iter__(self) -> Iterator[T_co]: method __len__ (line 124) | def __len__(self) -> int: method set_epoch (line 127) | def set_epoch(self, epoch: int) -> None: class InferenceSampler (line 139) | class InferenceSampler(Sampler): method __init__ (line 147) | def __init__(self, size: int): method _get_local_indices (line 159) | def _get_local_indices(total_size, world_size, rank): method __iter__ (line 168) | def __iter__(self): method __len__ (line 171) | def __len__(self): FILE: data_schedule/utils/segmentation.py function bounding_box_from_mask (line 4) | def bounding_box_from_mask(mask): FILE: data_schedule/vis/apis.py class VIS_Dataset (line 2) | class VIS_Dataset: class VIS_Aug_CallbackAPI (line 6) | class VIS_Aug_CallbackAPI: class VIS_Evaluator_OutAPI_EvalFn_API (line 10) | class VIS_Evaluator_OutAPI_EvalFn_API: class VIS_TrainAPI_clipped_video (line 14) | class VIS_TrainAPI_clipped_video: class VIS_EvalAPI_clipped_video_request_ann (line 18) | class VIS_EvalAPI_clipped_video_request_ann: class VIS_FrameSampler_InputOutput_API (line 22) | class VIS_FrameSampler_InputOutput_API: class GetFrames (line 26) | class GetFrames: FILE: data_schedule/vis/evaluator_fast.py class VIS_Evaluator_FrameFast (line 17) | class VIS_Evaluator_FrameFast: method __init__ (line 18) | def __init__(self, method visualize_path (line 41) | def visualize_path(self, meta_idxs, visualize, evaluator_path): method __call__ (line 45) | def __call__(self, model, output_dir): FILE: data_schedule/vis/evaluator_utils.py function register_vis_metric (line 3) | def register_vis_metric(fn): function vis_metric_entrypoint (line 11) | def vis_metric_entrypoint(vis_metric_name): function _prepare_data (line 21) | def _prepare_data(pred: np.ndarray, gt: np.ndarray) -> tuple: class Smeasure (line 31) | class Smeasure(object): method __init__ (line 32) | def __init__(self, length, alpha: float = 0.5): method step (line 36) | def step(self, pred: np.ndarray, gt: np.ndarray, idx): method cal_sm (line 42) | def cal_sm(self, pred: np.ndarray, gt: np.ndarray) -> float: method object (line 53) | def object(self, pred: np.ndarray, gt: np.ndarray) -> float: method s_object (line 60) | def s_object(self, pred: np.ndarray, gt: np.ndarray) -> float: method region (line 66) | def region(self, pred: np.ndarray, gt: np.ndarray) -> float: method centroid (line 79) | def centroid(self, matrix: np.ndarray) -> tuple: method divide_with_xy (line 97) | def divide_with_xy(self, pred: np.ndarray, gt: np.ndarray, x, y) -> dict: method ssim (line 120) | def ssim(self, pred: np.ndarray, gt: np.ndarray) -> float: method get_results (line 142) | def get_results(self): function mask_dice_iou (line 152) | def mask_dice_iou(frame_pred, dataset_meta, **kwargs): function mask_dice_iou_sen_mae_smeasure (line 173) | def mask_dice_iou_sen_mae_smeasure(frame_pred, dataset_meta, **kwargs): function web (line 223) | def web(frame_pred, output_dir, **kwargs): FILE: data_schedule/vis/fibroid/evals.py function fibroid_other_medi (line 17) | def fibroid_other_medi(model_preds, function fibroid_mask_dice_iou (line 82) | def fibroid_mask_dice_iou(frame_pred, dataset_meta, **kwargs): function fibroid_metric_aggregator (line 104) | def fibroid_metric_aggregator(metrics_by_vid_frame, dataset_meta, eval_m... FILE: data_schedule/vis/fibroid/fibroid_dataset.py function fibroid_train (line 16) | def fibroid_train(step_size, # none / int; 0, 6, 13, 19 ... function fibroid_evaluate (line 44) | def fibroid_evaluate(eval_video_ids, FILE: data_schedule/vis/fibroid/fibroid_utils.py function get_frames (line 21) | def get_frames(frames_path, video_id, frames): function get_frames_mask (line 25) | def get_frames_mask(mask_path, video_id, frames): FILE: data_schedule/vis/fibroid/metrics.py function get_stats (line 62) | def get_stats( function _get_stats_multiclass (line 165) | def _get_stats_multiclass( function _get_stats_multilabel (line 206) | def _get_stats_multilabel( function _handle_zero_division (line 228) | def _handle_zero_division(x, zero_division): function _compute_metric (line 238) | def _compute_metric( function _fbeta_score (line 312) | def _fbeta_score(tp, fp, fn, tn, beta=1): function _iou_score (line 319) | def _iou_score(tp, fp, fn, tn): function _accuracy (line 323) | def _accuracy(tp, fp, fn, tn): function _sensitivity (line 327) | def _sensitivity(tp, fp, fn, tn): function _specificity (line 331) | def _specificity(tp, fp, fn, tn): function _balanced_accuracy (line 335) | def _balanced_accuracy(tp, fp, fn, tn): function _dice (line 338) | def _dice(tp, fp, fn, tn): function _positive_predictive_value (line 341) | def _positive_predictive_value(tp, fp, fn, tn): function _negative_predictive_value (line 345) | def _negative_predictive_value(tp, fp, fn, tn): function _false_negative_rate (line 349) | def _false_negative_rate(tp, fp, fn, tn): function _false_positive_rate (line 353) | def _false_positive_rate(tp, fp, fn, tn): function _false_discovery_rate (line 357) | def _false_discovery_rate(tp, fp, fn, tn): function _false_omission_rate (line 361) | def _false_omission_rate(tp, fp, fn, tn): function _positive_likelihood_ratio (line 365) | def _positive_likelihood_ratio(tp, fp, fn, tn): function _negative_likelihood_ratio (line 369) | def _negative_likelihood_ratio(tp, fp, fn, tn): function fbeta_score (line 373) | def fbeta_score( function f1_score (line 397) | def f1_score( function dice (line 419) | def dice( function iou_score (line 440) | def iou_score( function accuracy (line 462) | def accuracy( function sensitivity (line 484) | def sensitivity( function specificity (line 506) | def specificity( function balanced_accuracy (line 528) | def balanced_accuracy( function positive_predictive_value (line 550) | def positive_predictive_value( function negative_predictive_value (line 572) | def negative_predictive_value( function false_negative_rate (line 594) | def false_negative_rate( function false_positive_rate (line 616) | def false_positive_rate( function false_discovery_rate (line 638) | def false_discovery_rate( function false_omission_rate (line 660) | def false_omission_rate( function positive_likelihood_ratio (line 682) | def positive_likelihood_ratio( function negative_likelihood_ratio (line 704) | def negative_likelihood_ratio( FILE: data_schedule/vis/mapper.py class VIS_Video_EvalMapper (line 21) | class VIS_Video_EvalMapper(VIS_EvalMapper): method __init__ (line 22) | def __init__(self, method _call (line 36) | def _call(self, data_dict): class VIS_Video_or_Step_To_Clip_TrainMapper (line 60) | class VIS_Video_or_Step_To_Clip_TrainMapper(VIS_TrainMapper): method __init__ (line 61) | def __init__(self, method _call (line 79) | def _call(self, data_dict): FILE: data_schedule/vis/mapper_utils.py class VIS_Mapper (line 8) | class VIS_Mapper(Mapper): method __init__ (line 9) | def __init__(self, class VIS_TrainMapper (line 15) | class VIS_TrainMapper(VIS_Mapper): method __init__ (line 17) | def __init__(self, method map_to_frame_targets (line 26) | def map_to_frame_targets(self, clip_targets): method map_global_targets_to_local_targets (line 51) | def map_global_targets_to_local_targets(self, ret): class VIS_EvalMapper (line 62) | class VIS_EvalMapper(VIS_Mapper): method __init__ (line 63) | def __init__(self, FILE: data_schedule/vis/polyp/evals.py function polyp_metric_aggregator (line 10) | def polyp_metric_aggregator(metrics_by_vid_frame, dataset_meta, eval_met... FILE: data_schedule/vis/polyp/polyp_dataset.py function polyp_train (line 14) | def polyp_train(step_size, function polyp_evaluate (line 46) | def polyp_evaluate(eval_video_ids, FILE: data_schedule/vis/polyp/polyp_utils.py function get_frames (line 103) | def get_frames(frames_path, video_id, frames): function get_frames_mask (line 105) | def get_frames_mask(mask_path, video_id, frames): FILE: data_schedule/vis/vis_aug_eval.py class RandomResize (line 10) | class RandomResize: method __init__ (line 11) | def __init__(self, sizes, max_size=None): method __call__ (line 16) | def __call__(self, ret): class VideoToPIL (line 46) | class VideoToPIL: method __call__ (line 47) | def __call__(self, ret): class VideoToTensor (line 56) | class VideoToTensor: method __call__ (line 57) | def __call__(self, ret): class WeakPolyP_EvalAug (line 70) | class WeakPolyP_EvalAug: method __init__ (line 71) | def __init__(self, configs) -> None: method __call__ (line 77) | def __call__(self, ret): FILE: data_schedule/vis/vis_aug_train.py class RandomRotate90 (line 22) | class RandomRotate90: method __init__ (line 23) | def __init__(self) -> None: method __call__ (line 28) | def __call__(self, ret): class ComputeBox (line 51) | class ComputeBox: method __call__ (line 52) | def __call__(self, ret): class VideoToTensor (line 64) | class VideoToTensor: method __call__ (line 65) | def __call__(self, ret): class Compose (line 71) | class Compose: method __init__ (line 72) | def __init__(self, transforms): method __call__ (line 75) | def __call__(self, ret): method __repr__ (line 80) | def __repr__(self): class WeakPolyP_TrainAug (line 90) | class WeakPolyP_TrainAug: method __init__ (line 91) | def __init__(self, configs) -> None: method __call__ (line 102) | def __call__(self, ret): class WeakPolyP_TrainAug_RotateImageToClip (line 131) | class WeakPolyP_TrainAug_RotateImageToClip: method __init__ (line 132) | def __init__(self, configs) -> None: method apply_random_sequence_shuffle (line 149) | def apply_random_sequence_shuffle(self, images, instance_masks): method __call__ (line 156) | def __call__(self, ret): class ImageToSeqAugmenter (line 197) | class ImageToSeqAugmenter(object): method __init__ (line 198) | def __init__(self, perspective=True, affine=True, motion_blur=True, method condense_masks (line 233) | def condense_masks(instance_masks): method expand_masks (line 241) | def expand_masks(condensed_mask, num_instances): method __call__ (line 244) | def __call__(self, image, masks=None, boxes=None): # n h w FILE: data_schedule/vis/vis_aug_utils.py function get_size_with_aspect_ratio (line 11) | def get_size_with_aspect_ratio(image_size, size, max_size=None): function get_tgt_size (line 31) | def get_tgt_size(image_size, size, max_size=None): function pil_torch_to_numpy (line 37) | def pil_torch_to_numpy(video, masks, has_ann, float_image=True): function numpy_to_pil_torch (line 62) | def numpy_to_pil_torch(video, masks, has_ann): FILE: data_schedule/vis/vis_frame_sampler.py class Naive_ReferenceFrame_FrameSampler (line 14) | class Naive_ReferenceFrame_FrameSampler: method __init__ (line 15) | def __init__(self, sampler_configs, dataset_meta, **kwargs): method __call__ (line 26) | def __call__(self, FILE: handle_vps.py function get_frames_mask (line 80) | def get_frames_mask(mask_path, video_id, frames): FILE: main.py function _highlight (line 13) | def _highlight(code, filename): class _ColorfulFormatter (line 26) | class _ColorfulFormatter(logging.Formatter): method __init__ (line 27) | def __init__(self, *args, **kwargs): method formatMessage (line 33) | def formatMessage(self, record): function set_logging_file (line 46) | def set_logging_file(output_dir, file_name, mode='a'): function init_process_group_and_set_device (line 63) | def init_process_group_and_set_device(world_size, process_id, device_id): function run (line 81) | def run(rank, configs, world_size): FILE: models/VIS/BackboneEncoderDecoder_WithScaleConsistency.py class BackboneEncoderDecoder_WithScaleConsistency (line 24) | class BackboneEncoderDecoder_WithScaleConsistency(nn.Module): method __init__ (line 25) | def __init__( method device (line 52) | def device(self): method model_preds (line 55) | def model_preds(self, videos, video_aux_dict,): method forward (line 72) | def forward(self, batch_dict): method sample (line 89) | def sample(self, batch_dict): method get_optim_params_group (line 121) | def get_optim_params_group(model, configs): function backbone_encoder_decoder_withScaleConsistency (line 180) | def backbone_encoder_decoder_withScaleConsistency(configs, device): FILE: models/VIS/aux_mapper.py class AUXMapper_v1 (line 12) | class AUXMapper_v1: method __init__ (line 13) | def __init__(self, aux_configs): method mapper (line 23) | def mapper(self, data_dict, mode,): method collate (line 40) | def collate(self, batch_dict, mode, max_stride): method collate_video_dict (line 82) | def collate_video_dict(self, batch_dict, max_stride): method collate_frame_targets (line 105) | def collate_frame_targets(self, frame_targets, frame_has_ann, pad_H, p... method collate_targets (line 124) | def collate_targets(self, targets, pad_H, pad_W, pad_T): method visualize_input_target_for_debug_data (line 144) | def visualize_input_target_for_debug_data(self, ret): FILE: models/backbone/pvtv2.py class DWConv (line 8) | class DWConv(nn.Module): method __init__ (line 9) | def __init__(self, dim): method forward (line 13) | def forward(self, x, H, W): class Mlp (line 20) | class Mlp(nn.Module): method __init__ (line 21) | def __init__(self, in_features, hidden_features): method forward (line 27) | def forward(self, x, H, W): class Attention (line 33) | class Attention(nn.Module): method __init__ (line 34) | def __init__(self, dim, num_heads, sr_ratio): method forward (line 48) | def forward(self, x, H, W): class Block (line 67) | class Block(nn.Module): method __init__ (line 68) | def __init__(self, dim, num_heads, mlp_ratio, drop_path, sr_ratio): method forward (line 76) | def forward(self, x, H, W): class OverlapPatchEmbed (line 81) | class OverlapPatchEmbed(nn.Module): method __init__ (line 82) | def __init__(self, patch_size, stride, in_chans, embed_dim): method forward (line 87) | def forward(self, x): class PVT (line 94) | class PVT(nn.Module): method __init__ (line 95) | def __init__(self, embed_dims, mlp_ratios, depths, snapshot, sr_ratios... method no_weight_decay (line 129) | def no_weight_decay(self): method forward (line 132) | def forward(self, x): class PVT_V2 (line 168) | class PVT_V2(nn.Module): method __init__ (line 169) | def __init__(self, configs) -> None: method forward (line 189) | def forward(self, x): method num_parameters (line 212) | def num_parameters(self): class Video2D_PVT_V2 (line 216) | class Video2D_PVT_V2(nn.Module): method __init__ (line 217) | def __init__(self, configs) -> None: method forward (line 231) | def forward(self, x): method num_parameters (line 240) | def num_parameters(self): FILE: models/backbone/res2net.py class Bottle2neck (line 10) | class Bottle2neck(nn.Module): method __init__ (line 12) | def __init__(self, inplanes, planes, stride=1, downsample=None, baseWi... method forward (line 33) | def forward(self, x): class Res2Net (line 51) | class Res2Net(nn.Module): method __init__ (line 52) | def __init__(self, layers, snapshot, baseWidth=26, scale=4): method _make_layer (line 77) | def _make_layer(self, block, planes, blocks, stride=1): method forward (line 92) | def forward(self, x): method initialize (line 101) | def initialize(self): class Res2Net_50_EachFrame (line 105) | class Res2Net_50_EachFrame(nn.Module): method __init__ (line 106) | def __init__(self, configs) -> None: method forward (line 129) | def forward(self, x): method num_parameters (line 142) | def num_parameters(self): FILE: models/backbone/utils.py class VideoMultiscale_Shape (line 2) | class VideoMultiscale_Shape: method __init__ (line 3) | def __init__(self, temporal_stride, spatial_stride, dim) -> None: method set_multiscale_same_dim (line 9) | def set_multiscale_same_dim(shape_by_dim, same_dim): class ImageMultiscale_Shape (line 16) | class ImageMultiscale_Shape: method __init__ (line 17) | def __init__(self, spatial_stride, dim) -> None: FILE: models/decoder/mask2former_video.py function calculate_uncertainty (line 26) | def calculate_uncertainty(logits): class Video_SetMatchingLoss (line 43) | class Video_SetMatchingLoss(nn.Module): method __init__ (line 44) | def __init__(self, method device (line 61) | def device(self,): method compute_loss (line 64) | def compute_loss(self, method matching (line 131) | def matching(self, layer_out, targets): method loss_mask_dice_ce (line 193) | def loss_mask_dice_ce(self, outputs, targets, indices, num_objs, loss_... method loss_point_mask_dice_ce (line 207) | def loss_point_mask_dice_ce(self, outputs, targets, indices, num_objs,... method loss_class_ce (line 256) | def loss_class_ce(self, outputs, targets, indices, num_objs, loss_extr... method loss_box_l1_giou (line 274) | def loss_box_l1_giou(self, outputs, targets, indices, num_objs, loss_e... method _get_src_permutation_idx (line 296) | def _get_src_permutation_idx(self, indices): method _get_tgt_permutation_idx (line 302) | def _get_tgt_permutation_idx(self, indices): class Video_MaskedAttn_MultiscaleMaskDecoder_v3 (line 309) | class Video_MaskedAttn_MultiscaleMaskDecoder_v3(nn.Module): method __init__ (line 310) | def __init__(self, method device (line 362) | def device(self,): method get_memories_and_mask_features (line 365) | def get_memories_and_mask_features(self, multiscales): method forward (line 375) | def forward(self, method forward_heads (line 425) | def forward_heads(self, temporal_query_feats, mask_features, attn_mas... method compute_loss (line 448) | def compute_loss(self, outputs, targets, video_aux_dict, **kwargs): FILE: models/encoder/input_projs.py class VideoConv3d_TextLinear (line 10) | class VideoConv3d_TextLinear(nn.Module): method __init__ (line 15) | def __init__(self, method forward (line 50) | def forward(self, multiscales, text_dict): class VideoConv2d_TextLinear (line 70) | class VideoConv2d_TextLinear(nn.Module): method __init__ (line 75) | def __init__(self, method forward (line 109) | def forward(self, multiscales, text_dict): class ImageConv_MultiscaleProj (line 131) | class ImageConv_MultiscaleProj(nn.Module): method __init__ (line 132) | def __init__(self, method forward (line 159) | def forward(self, multiscales): class Video2D_ImageConv_MultiscaleProj (line 171) | class Video2D_ImageConv_MultiscaleProj(nn.Module): method __init__ (line 172) | def __init__(self, method forward (line 180) | def forward(self, multiscales): class VideoConv_MultiscaleProj (line 190) | class VideoConv_MultiscaleProj(nn.Module): method __init__ (line 191) | def __init__(self, method forward (line 218) | def forward(self, multiscales): class FrameQueryLinear_TextLinear (line 234) | class FrameQueryLinear_TextLinear(nn.Module): method __init__ (line 235) | def __init__(self, method forward (line 253) | def forward(self, frame_query, text_dict): class VideoConv3d_FrameQueryLinear_TextLinear (line 268) | class VideoConv3d_FrameQueryLinear_TextLinear(nn.Module): method __init__ (line 269) | def __init__(self, method forward (line 289) | def forward(self, mask_feat, frame_query, text_dict): class VideoConv3d_FrameQueryLinear (line 302) | class VideoConv3d_FrameQueryLinear(nn.Module): method __init__ (line 307) | def __init__(self, method forward (line 342) | def forward(self, multiscales, frame_queries): class FrameQueryLinear (line 358) | class FrameQueryLinear(nn.Module): method __init__ (line 359) | def __init__(self, method forward (line 370) | def forward(self, frame_query): FILE: models/encoder/localGlobal.py class MSDeformAttnTransformerEncoderOnly (line 21) | class MSDeformAttnTransformerEncoderOnly(nn.Module): method __init__ (line 22) | def __init__(self, d_model=256, nhead=8, method _reset_parameters (line 57) | def _reset_parameters(self): method get_valid_ratio (line 66) | def get_valid_ratio(self, mask): method forward (line 75) | def forward(self, class MSDeformAttnTransformerEncoderLayer (line 115) | class MSDeformAttnTransformerEncoderLayer(nn.Module): method __init__ (line 116) | def __init__(self, method with_pos_embed (line 160) | def with_pos_embed(tensor, pos): method forward_ffn (line 163) | def forward_ffn(self, src): method get_attn_mask (line 170) | def get_attn_mask(self, frame_query_feats, src, spatial_shapes, level_... method forward (line 185) | def forward(self, class MSDeformAttnTransformerEncoder (line 238) | class MSDeformAttnTransformerEncoder(nn.Module): method __init__ (line 239) | def __init__(self, method get_reference_points (line 252) | def get_reference_points(spatial_shapes, valid_ratios, device): method forward (line 267) | def forward(self, class Video_Deform2D_DividedTemporal_MultiscaleEncoder_localGlobal (line 305) | class Video_Deform2D_DividedTemporal_MultiscaleEncoder_localGlobal(nn.Mo... method __init__ (line 306) | def __init__( method forward (line 369) | def forward(self, FILE: models/encoder/neighborhood_qk.py class NeighborhoodAttention2D_qk (line 13) | class NeighborhoodAttention2D_qk(nn.Module): method __init__ (line 18) | def __init__( method forward (line 57) | def forward(self, method extra_repr (line 99) | def extra_repr(self) -> str: class NA_qk_Layer (line 107) | class NA_qk_Layer(nn.Module): method __init__ (line 109) | def __init__(self, d_model, configs): method forward (line 122) | def forward(self, tgt=None, scale_shapes=None, level_start_idxs=None, ... class NA_qk_Layer_v2 (line 146) | class NA_qk_Layer_v2(nn.Module): method __init__ (line 148) | def __init__(self, configs): method forward (line 158) | def forward(self, FILE: models/encoder/ops/attention.py function exists (line 11) | def exists(val): function uniq (line 15) | def uniq(arr): function default (line 19) | def default(val, d): function max_neg_value (line 25) | def max_neg_value(t): function init_ (line 29) | def init_(tensor): class GEGLU (line 37) | class GEGLU(nn.Module): method __init__ (line 38) | def __init__(self, dim_in, dim_out): method forward (line 42) | def forward(self, x): class FeedForward (line 47) | class FeedForward(nn.Module): method __init__ (line 48) | def __init__(self, dim, dim_out=None, mult=4, glu=False, dropout=0.): method forward (line 63) | def forward(self, x): function zero_module (line 67) | def zero_module(module): function Normalize (line 76) | def Normalize(in_channels): class LinearAttention (line 80) | class LinearAttention(nn.Module): method __init__ (line 81) | def __init__(self, dim, heads=4, dim_head=32): method forward (line 88) | def forward(self, x): class SpatialSelfAttention (line 99) | class SpatialSelfAttention(nn.Module): method __init__ (line 100) | def __init__(self, in_channels): method forward (line 126) | def forward(self, x): class CrossAttention (line 152) | class CrossAttention(nn.Module): method __init__ (line 153) | def __init__(self, query_dim, context_dim=None, heads=8, dim_head=64, ... method forward (line 170) | def forward(self, x, context=None, mask=None): class BasicTransformerBlock (line 195) | class BasicTransformerBlock(nn.Module): method __init__ (line 196) | def __init__(self, dim, n_heads, d_head, dropout=0., context_dim=None,... method forward (line 206) | def forward(self, x, context=None): function _is_power_of_2 (line 213) | def _is_power_of_2(n): class DeformAttn (line 218) | class DeformAttn(nn.Module): method __init__ (line 219) | def __init__(self, method _reset_parameters (line 253) | def _reset_parameters(self): method forward (line 269) | def forward(self, query, reference_points, class ContextuallSelfAttention (line 323) | class ContextuallSelfAttention(nn.Module): method __init__ (line 324) | def __init__(self, method forward (line 355) | def forward(self, class BasicTransformerBlock_v2 (line 412) | class BasicTransformerBlock_v2(nn.Module): method __init__ (line 413) | def __init__(self, dim, n_heads, d_head, dropout=0., context_dim=None,... method forward (line 420) | def forward(self, x, context=None): class SpatialTransformer (line 427) | class SpatialTransformer(nn.Module): method __init__ (line 435) | def __init__(self, in_channels, n_heads, d_head, method forward (line 459) | def forward(self, x, context=None): FILE: models/encoder/ops/build/lib.linux-x86_64-cpython-311/functions/ms_deform_attn_func.py class MSDeformAttnFunction (line 21) | class MSDeformAttnFunction(Function): method forward (line 23) | def forward(ctx, value, value_spatial_shapes, value_level_start_index,... method backward (line 32) | def backward(ctx, grad_output): function ms_deform_attn_core_pytorch (line 41) | def ms_deform_attn_core_pytorch(value, value_spatial_shapes, sampling_lo... FILE: models/encoder/ops/build/lib.linux-x86_64-cpython-311/modules/ms_deform_attn.py function _is_power_of_2 (line 25) | def _is_power_of_2(n): class MSDeformAttn (line 31) | class MSDeformAttn(nn.Module): method __init__ (line 32) | def __init__(self, d_model=256, n_levels=4, n_heads=8, n_points=4): method _reset_parameters (line 63) | def _reset_parameters(self): method forward (line 79) | def forward(self, query, reference_points, input_flatten, input_spatia... FILE: models/encoder/ops/build/lib.linux-x86_64-cpython-38/functions/ms_deform_attn_func.py class MSDeformAttnFunction (line 21) | class MSDeformAttnFunction(Function): method forward (line 23) | def forward(ctx, value, value_spatial_shapes, value_level_start_index,... method backward (line 32) | def backward(ctx, grad_output): function ms_deform_attn_core_pytorch (line 41) | def ms_deform_attn_core_pytorch(value, value_spatial_shapes, sampling_lo... FILE: models/encoder/ops/build/lib.linux-x86_64-cpython-38/modules/ms_deform_attn.py function _is_power_of_2 (line 25) | def _is_power_of_2(n): class MSDeformAttn (line 31) | class MSDeformAttn(nn.Module): method __init__ (line 32) | def __init__(self, d_model=256, n_levels=4, n_heads=8, n_points=4): method _reset_parameters (line 63) | def _reset_parameters(self): method forward (line 79) | def forward(self, query, reference_points, input_flatten, input_spatia... FILE: models/encoder/ops/functions/ms_deform_attn_func.py class MSDeformAttnFunction (line 21) | class MSDeformAttnFunction(Function): method forward (line 23) | def forward(ctx, value, value_spatial_shapes, value_level_start_index,... method backward (line 32) | def backward(ctx, grad_output): function ms_deform_attn_core_pytorch (line 41) | def ms_deform_attn_core_pytorch(value, value_spatial_shapes, sampling_lo... FILE: models/encoder/ops/modules/frame_query_ss2d.py class SS2D (line 20) | class SS2D(nn.Module): method __init__ (line 21) | def __init__( method dt_init (line 93) | def dt_init(dt_rank, d_inner, dt_scale=1.0, dt_init="random", dt_min=0... method A_log_init (line 120) | def A_log_init(d_state, d_inner, copies=1, device=None, merge=True): method D_init (line 137) | def D_init(d_inner, copies=1, device=None, merge=True): method forward_corev0 (line 148) | def forward_corev0(self, x: torch.Tensor): method forward (line 187) | def forward(self, x: torch.Tensor, **kwargs): class SS2D_FrameQuery (line 205) | class SS2D_FrameQuery(nn.Module): method __init__ (line 206) | def __init__(self, configs,): method forward (line 225) | def forward(self, class FrameQuery_SS2DLayer (line 247) | class FrameQuery_SS2DLayer(nn.Module): method __init__ (line 248) | def __init__(self, method forward (line 264) | def forward(self, class TemporalQuery_CrossSelf (line 281) | class TemporalQuery_CrossSelf(nn.Module): method __init__ (line 282) | def __init__(self, configs) -> None: method forward (line 299) | def forward(self, class SS2D_FrameQuery_v2 (line 326) | class SS2D_FrameQuery_v2(nn.Module): method __init__ (line 327) | def __init__(self, configs,): method forward (line 348) | def forward(self, class FrameQuery_SS2DLayer_v2 (line 375) | class FrameQuery_SS2DLayer_v2(nn.Module): method __init__ (line 376) | def __init__(self, method forward (line 390) | def forward(self, class Hilbert_2DSelectiveScan (line 405) | class Hilbert_2DSelectiveScan(nn.Module): method __init__ (line 406) | def __init__( method dt_init (line 476) | def dt_init(dt_rank, d_inner, dt_scale=1.0, dt_init="random", dt_min=0... method A_log_init (line 503) | def A_log_init(d_state, d_inner, copies=1, device=None, merge=True): method D_init (line 520) | def D_init(d_inner, copies=1, device=None, merge=True): method forward_corev0 (line 531) | def forward_corev0(self, x: torch.Tensor, hilbert_curve): method forward (line 653) | def forward(self, x: torch.Tensor, hilbert_curve, **kwargs): class SS2D_FrameQuery_hilbert (line 672) | class SS2D_FrameQuery_hilbert(nn.Module): method __init__ (line 673) | def __init__(self, configs,): method forward (line 695) | def forward(self, class FrameQuery_SS2DLayer_hilbert (line 724) | class FrameQuery_SS2DLayer_hilbert(nn.Module): method __init__ (line 725) | def __init__(self, method forward (line 738) | def forward(self, FILE: models/encoder/ops/modules/ms_deform_attn.py function _is_power_of_2 (line 25) | def _is_power_of_2(n): class MSDeformAttn (line 31) | class MSDeformAttn(nn.Module): method __init__ (line 32) | def __init__(self, d_model=256, n_levels=4, n_heads=8, n_points=4): method _reset_parameters (line 63) | def _reset_parameters(self): method forward (line 79) | def forward(self, query, reference_points, input_flatten, input_spatia... FILE: models/encoder/ops/setup.py function get_extensions (line 23) | def get_extensions(): FILE: models/encoder/ops/src/cpu/ms_deform_attn_cpu.cpp function ms_deform_attn_cpu_forward (line 17) | at::Tensor function ms_deform_attn_cpu_backward (line 29) | std::vector FILE: models/encoder/ops/src/ms_deform_attn.h function im2col_step (line 27) | int im2col_step) FILE: models/encoder/ops/src/vision.cpp function PYBIND11_MODULE (line 13) | PYBIND11_MODULE(TORCH_EXTENSION_NAME, m) { FILE: models/encoder/ops/test.py function check_forward_equal_with_pytorch_double (line 32) | def check_forward_equal_with_pytorch_double(): function check_forward_equal_with_pytorch_float (line 48) | def check_forward_equal_with_pytorch_float(): function check_gradient_numerical (line 63) | def check_gradient_numerical(channels=4, grad_value=True, grad_sampling_... FILE: models/layers/anyc_trans.py class MLP (line 10) | class MLP(nn.Module): method __init__ (line 12) | def __init__(self, input_dim, hidden_dim, output_dim, num_layers): method forward (line 18) | def forward(self, x): class Linear_NormAct (line 23) | class Linear_NormAct(nn.Linear): method __init__ (line 24) | def __init__(self, *args, **kwargs): method forward (line 38) | def forward(self, x): class Conv2d_NormAct (line 46) | class Conv2d_NormAct(torch.nn.Conv2d): method __init__ (line 47) | def __init__(self, *args, **kwargs): method forward (line 65) | def forward(self, x): class Conv3d_NormAct (line 74) | class Conv3d_NormAct(torch.nn.Conv3d): method __init__ (line 75) | def __init__(self, *args, **kwargs): method forward (line 89) | def forward(self, x): FILE: models/layers/decoder_layers.py class SelfAttentionLayer (line 10) | class SelfAttentionLayer(nn.Module): method __init__ (line 12) | def __init__(self, d_model, nhead, dropout=0.0, method _reset_parameters (line 25) | def _reset_parameters(self): method with_pos_embed (line 30) | def with_pos_embed(self, tensor, pos: Optional[Tensor]): method forward_post (line 33) | def forward_post(self, tgt, method forward_pre (line 48) | def forward_pre(self, tgt, method forward (line 63) | def forward(self, tgt, class CrossAttentionLayer (line 73) | class CrossAttentionLayer(nn.Module): method __init__ (line 75) | def __init__(self, d_model, nhead, dropout=0.0, method _reset_parameters (line 88) | def _reset_parameters(self): method with_pos_embed (line 93) | def with_pos_embed(self, tensor, pos: Optional[Tensor]): method forward_post (line 96) | def forward_post(self, tgt, memory, method forward_pre (line 112) | def forward_pre(self, tgt, memory, method forward (line 126) | def forward(self, tgt, memory, class FFNLayer (line 138) | class FFNLayer(nn.Module): method __init__ (line 140) | def __init__(self, d_model, dim_feedforward=2048, dropout=0.0, method _reset_parameters (line 155) | def _reset_parameters(self): method with_pos_embed (line 160) | def with_pos_embed(self, tensor, pos: Optional[Tensor]): method forward_post (line 163) | def forward_post(self, tgt): method forward_pre (line 169) | def forward_pre(self, tgt): method forward (line 175) | def forward(self, tgt): FILE: models/layers/gilbert/demo/script.js function download (line 25) | function download(filename, text) { function dl_svg (line 37) | function dl_svg() { function update_color (line 50) | function update_color() { function update_wh (line 57) | function update_wh(w,h) { function update_preset (line 71) | function update_preset() { function update_num (line 106) | function update_num() { function draw_curve (line 123) | function draw_curve() { function init (line 214) | function init() { FILE: models/layers/gilbert/demo/two.js function decomposeMatrix (line 92) | function decomposeMatrix(matrix, b, c, d, e, f) { function setMatrix (line 112) | function setMatrix(matrix) { function getComputedMatrix (line 115) | function getComputedMatrix(object, matrix) { function lerp (line 142) | function lerp(a, b, t) { function getPoT (line 146) | function getPoT(value) { function mod (line 153) | function mod(v, l) { function toFixed (line 161) | function toFixed(v) { method constructor (line 184) | constructor() { method addEventListener (line 186) | addEventListener(name, handler) { method on (line 192) | on() { method bind (line 195) | bind() { method removeEventListener (line 198) | removeEventListener(name, handler) { method off (line 227) | off() { method unbind (line 230) | unbind() { method dispatchEvent (line 233) | dispatchEvent(name) { method trigger (line 246) | trigger() { method listen (line 249) | listen(obj, name, handler) { method ignore (line 262) | ignore(obj, name, handler) { method constructor (line 325) | constructor(x = 0, y = 0) { method add (line 333) | static add(v1, v2) { method sub (line 336) | static sub(v1, v2) { method subtract (line 339) | static subtract(v1, v2) { method ratioBetween (line 342) | static ratioBetween(v1, v2) { method angleBetween (line 345) | static angleBetween(v1, v2) { method distanceBetween (line 355) | static distanceBetween(v1, v2) { method distanceBetweenSquared (line 358) | static distanceBetweenSquared(v1, v2) { method set (line 363) | set(x, y) { method copy (line 368) | copy(v) { method clear (line 373) | clear() { method clone (line 378) | clone() { method add (line 381) | add(x, y) { method addSelf (line 398) | addSelf(v) { method sub (line 401) | sub(x, y) { method subtract (line 418) | subtract() { method subSelf (line 421) | subSelf(v) { method subtractSelf (line 424) | subtractSelf(v) { method multiply (line 427) | multiply(x, y) { method multiplySelf (line 444) | multiplySelf(v) { method multiplyScalar (line 447) | multiplyScalar(s) { method divide (line 450) | divide(x, y) { method divideSelf (line 473) | divideSelf(v) { method divideScalar (line 476) | divideScalar(s) { method negate (line 479) | negate() { method dot (line 482) | dot(v) { method length (line 485) | length() { method lengthSquared (line 488) | lengthSquared() { method normalize (line 491) | normalize() { method distanceTo (line 494) | distanceTo(v) { method distanceToSquared (line 497) | distanceToSquared(v) { method setLength (line 502) | setLength(l) { method equals (line 505) | equals(v, eps) { method lerp (line 509) | lerp(v, t) { method isZero (line 514) | isZero(eps) { method toString (line 518) | toString() { method toObject (line 521) | toObject() { method rotate (line 524) | rotate(radians) { method constructor (line 554) | constructor(x = 0, y = 0, ax = 0, ay = 0, bx = 0, by = 0, command = Comm... method makeBroadcast (line 565) | static makeBroadcast(scope) { method copy (line 573) | copy(v) { method clone (line 607) | clone() { method toObject (line 610) | toObject() { method toString (line 627) | toString() { function getComponentOnCubicBezier (line 796) | function getComponentOnCubicBezier(t, a, b, c, d) { function subdivide (line 800) | function subdivide(x1, y1, x2, y2, x3, y3, x4, y4, limit) { function getCurveLength (line 815) | function getCurveLength(x1, y1, x2, y2, x3, y3, x4, y4, limit) { function getCurveBoundingBox (line 833) | function getCurveBoundingBox(x1, y1, x2, y2, x3, y3, x4, y4) { function integrate (line 890) | function integrate(f, a, b, n) { function getCurveFromPoints (line 898) | function getCurveFromPoints(points, closed2) { function getControlPoints (line 911) | function getControlPoints(a, b, c) { function getReflection (line 944) | function getReflection(a, b, relative) { function getAnchorsFromArcData (line 950) | function getAnchorsFromArcData(center, xAxisRotation, rx, ry, ts, td, cc... function getBackingStoreRatio (line 969) | function getBackingStoreRatio(ctx) { function getRatio (line 972) | function getRatio(ctx) { function isArrayLike (line 978) | function isArrayLike(collection) { method constructor (line 1038) | constructor() { method flagReset (line 1044) | flagReset() { method constructor (line 1096) | constructor(a, b, c, d, e, f) { method Multiply (line 1107) | static Multiply(A, B, C) { method set (line 1135) | set(a, b, c, d, e, f, g, h, i) { method copy (line 1159) | copy(m) { method identity (line 1172) | identity() { method multiply (line 1184) | multiply(a, b, c, d, e, f, g, h, i) { method inverse (line 1229) | inverse(out) { method scale (line 1254) | scale(sx, sy) { method rotate (line 1261) | rotate(Number2) { method translate (line 1266) | translate(x, y) { method skewX (line 1269) | skewX(Number2) { method skewY (line 1273) | skewY(Number2) { method toString (line 1277) | toString(fullMatrix) { method toTransformArray (line 1282) | toTransformArray(fullMatrix, output) { method toArray (line 1337) | toArray(fullMatrix, output) { method toObject (line 1392) | toObject() { method clone (line 1398) | clone() { method constructor (line 1427) | constructor() { method renderer (line 1443) | get renderer() { method renderer (line 1446) | set renderer(v) { method translation (line 1449) | get translation() { method translation (line 1452) | set translation(v) { method addTo (line 1455) | addTo(group) { method remove (line 1459) | remove() { method clone (line 1466) | clone(parent) { method _update (line 1481) | _update(bubbles) { method flagReset (line 1500) | flagReset() { function FlagMatrix (line 1589) | function FlagMatrix() { method _bound (line 1596) | get _bound() { method _bound (line 1599) | set _bound(v) { method addEventListener (line 1602) | addEventListener() { method on (line 1605) | on() { method bind (line 1608) | bind() { method removeEventListener (line 1611) | removeEventListener() { method off (line 1614) | off() { method unbind (line 1617) | unbind() { method dispatchEvent (line 1620) | dispatchEvent() { method trigger (line 1623) | trigger() { method listen (line 1626) | listen() { method ignore (line 1629) | ignore() { method constructor (line 1632) | constructor() { method pop (line 1642) | pop() { method shift (line 1647) | shift() { method push (line 1652) | push() { method unshift (line 1657) | unshift() { method splice (line 1662) | splice() { method sort (line 1672) | sort() { method reverse (line 1677) | reverse() { method indexOf (line 1682) | indexOf() { method map (line 1685) | map(func, scope) { method constructor (line 1704) | constructor(children) { method attach (line 1711) | attach(children) { method detach (line 1720) | detach(children) { method constructor (line 1755) | constructor(children) { method InsertChildren (line 1765) | static InsertChildren(children) { method RemoveChildren (line 1770) | static RemoveChildren(children) { method OrderChildren (line 1775) | static OrderChildren(children) { method clone (line 1778) | clone(parent) { method toObject (line 1800) | toObject() { method corner (line 1818) | corner() { method center (line 1831) | center() { method getById (line 1848) | getById(id) { method getByClassName (line 1865) | getByClassName(className) { method getByType (line 1881) | getByType(type) { method add (line 1897) | add(objects) { method remove (line 1916) | remove(objects) { method getBoundingClientRect (line 1939) | getBoundingClientRect(shallow) { method noFill (line 1983) | noFill() { method noStroke (line 1989) | noStroke() { method subdivide (line 1995) | subdivide() { method _update (line 2002) | _update() { method flagReset (line 2035) | flagReset() { function replaceParent (line 2274) | function replaceParent(child, newParent) { method constructor (line 3040) | constructor(params) { method setSize (line 3052) | setSize(width, height, ratio) { method render (line 3066) | render() { function renderArcEstimate (line 3083) | function renderArcEstimate(ctx, ox, oy, rx, ry, startAngle, endAngle, cl... function svgAngle (line 3118) | function svgAngle(ux, uy, vx, vy) { function isDefaultMatrix (line 3127) | function isDefaultMatrix(m) { function fallbackRequest (line 3174) | function fallbackRequest(callback, element) { method constructor (line 3204) | constructor(message) { method constructor (line 3213) | constructor() { method add (line 3215) | add(id, obj) { method remove (line 3219) | remove(id) { method get (line 3223) | get(id) { method contains (line 3226) | contains(id) { function contains (line 3232) | function contains(path, t) { function getIdByLength (line 3248) | function getIdByLength(path, target) { function getCurveLength2 (line 3264) | function getCurveLength2(a, b, limit) { function getSubdivisions (line 3286) | function getSubdivisions(a, b, limit) { method constructor (line 3317) | constructor(offset, color, opacity) { method clone (line 3328) | clone(parent) { method toObject (line 3338) | toObject() { method flagReset (line 3345) | flagReset() { method constructor (line 3403) | constructor(stops) { method clone (line 3420) | clone(parent) { method toObject (line 3433) | toObject() { method _update (line 3444) | _update() { method flagReset (line 3450) | flagReset() { function FlagStops (line 3497) | function FlagStops() { function BindStops (line 3500) | function BindStops(items) { function UnbindStops (line 3508) | function UnbindStops(items) { method constructor (line 3522) | constructor(x1, y1, x2, y2, stops) { method clone (line 3544) | clone(parent) { method toObject (line 3563) | toObject() { method _update (line 3569) | _update() { method flagReset (line 3575) | flagReset() { function FlagEndPoints (line 3614) | function FlagEndPoints() { method constructor (line 3626) | constructor(cx, cy, r, stops, fx, fy) { method clone (line 3651) | clone(parent) { method toObject (line 3671) | toObject() { method _update (line 3680) | _update() { method flagReset (line 3686) | flagReset() { function FlagCenter (line 3735) | function FlagCenter() { function FlagFocal (line 3738) | function FlagFocal() { method constructor (line 3766) | constructor(src, callback) { method getAbsoluteURL (line 3799) | static getAbsoluteURL(path) { method loadHeadlessBuffer (line 3806) | static loadHeadlessBuffer(texture, loaded) { method getTag (line 3810) | static getTag(image) { method getImage (line 3813) | static getImage(src) { method load (line 3835) | static load(texture, callback) { method clone (line 3855) | clone() { method toObject (line 3862) | toObject() { method _update (line 3870) | _update() { method flagReset (line 3886) | flagReset() { function FlagOffset (line 4067) | function FlagOffset() { function FlagScale (line 4070) | function FlagScale() { method constructor (line 4110) | constructor(vertices, closed2, curved, manual) { method clone (line 4141) | clone(parent) { method toObject (line 4164) | toObject() { method noFill (line 4190) | noFill() { method noStroke (line 4194) | noStroke() { method corner (line 4198) | corner() { method center (line 4219) | center() { method getBoundingClientRect (line 4234) | getBoundingClientRect(shallow) { method getPointAt (line 4320) | getPointAt(t, obj) { method plot (line 4421) | plot() { method subdivide (line 4431) | subdivide(limit) { method _updateLength (line 4483) | _updateLength(limit, silent) { method _update (line 4514) | _update() { method flagReset (line 4601) | flagReset() { function FlagVertices (line 4839) | function FlagVertices() { function BindVertices (line 4846) | function BindVertices(items) { function UnbindVertices (line 4853) | function UnbindVertices(items) { function FlagFill (line 4860) | function FlagFill() { function FlagStroke (line 4863) | function FlagStroke() { method constructor (line 4869) | constructor(x, y, width, height) { method _update (line 4896) | _update() { method flagReset (line 4914) | flagReset() { method clone (line 4919) | clone(parent) { method toObject (line 4938) | toObject() { method constructor (line 5005) | constructor(path, ox, oy, cols, rows, frameRate) { method play (line 5030) | play(firstFrame, lastFrame, onLastFrame) { method pause (line 5051) | pause() { method stop (line 5055) | stop() { method clone (line 5060) | clone(parent) { method toObject (line 5078) | toObject() { method _update (line 5090) | _update() { method flagReset (line 5154) | flagReset() { method constructor (line 5227) | constructor(ox, oy, r, resolution) { method _update (line 5248) | _update() { method flagReset (line 5276) | flagReset() { method clone (line 5281) | clone(parent) { method toObject (line 5300) | toObject() { method constructor (line 5332) | constructor(x, y, rx, ry, resolution) { method _update (line 5359) | _update() { method flagReset (line 5387) | flagReset() { method clone (line 5392) | clone(parent) { method toObject (line 5414) | toObject() { method constructor (line 5450) | constructor(x1, y1, x2, y2) { method constructor (line 5503) | constructor(x, y, width, height, radius) { method _update (line 5545) | _update() { method flagReset (line 5613) | flagReset() { method clone (line 5618) | clone(parent) { method toObject (line 5640) | toObject() { function FlagRadius (line 5690) | function FlagRadius() { method constructor (line 5735) | constructor(message, x, y, styles) { method Measure (line 5762) | static Measure(text) { method clone (line 5787) | clone(parent) { method toObject (line 5804) | toObject() { method noFill (line 5819) | noFill() { method noStroke (line 5823) | noStroke() { method getBoundingClientRect (line 5828) | getBoundingClientRect(shallow) { method flagReset (line 5874) | flagReset() { function FlagFill2 (line 6087) | function FlagFill2() { function FlagStroke2 (line 6090) | function FlagStroke2() { function getAlignment (line 6107) | function getAlignment(anchor2) { function getBaseline (line 6110) | function getBaseline(node) { function getTagName (line 6115) | function getTagName(tag) { function applyTransformsToVector (line 6118) | function applyTransformsToVector(transforms, vector2) { function extractCSSText (line 6129) | function extractCSSText(text, styles) { function getSvgStyles (line 6145) | function getSvgStyles(node) { function getSvgAttributes (line 6161) | function getSvgAttributes(node) { function applySvgViewBox (line 6172) | function applySvgViewBox(node, value) { function applySvgAttributes (line 6213) | function applySvgAttributes(node, elem, parentStyles) { function updateDefsCache (line 6445) | function updateDefsCache(node, defsCache) { function getScene (line 6456) | function getScene(node) { function xhr (line 7075) | function xhr(path, callback) { method constructor (line 7103) | constructor(paths, ox, oy, frameRate) { method play (line 7127) | play(firstFrame, lastFrame, onLastFrame) { method pause (line 7148) | pause() { method stop (line 7152) | stop() { method clone (line 7157) | clone(parent) { method toObject (line 7173) | toObject() { method _update (line 7185) | _update() { method flagReset (line 7247) | flagReset() { function FlagTextures (line 7298) | function FlagTextures() { function BindTextures (line 7301) | function BindTextures(items) { function UnbindTextures (line 7308) | function UnbindTextures(items) { function GenerateTexture (line 7315) | function GenerateTexture(obj) { method constructor (line 7333) | constructor(x, y, ir, or, sa, ea, res) { method _update (line 7363) | _update() { method flagReset (line 7467) | flagReset() { method clone (line 7472) | clone(parent) { method toObject (line 7496) | toObject() { method constructor (line 7574) | constructor(vertices) { method clone (line 7598) | clone(parent) { method toObject (line 7621) | toObject() { method subdivide (line 7646) | subdivide(limit) { method _update (line 7666) | _update() { method flagReset (line 7693) | flagReset() { method constructor (line 7867) | constructor(x, y, radius, sides) { method _update (line 7889) | _update() { method flagReset (line 7914) | flagReset() { method clone (line 7919) | clone(parent) { method toObject (line 7940) | toObject() { method constructor (line 8007) | constructor(x, y, innerRadius, outerRadius, sides) { method _update (line 8038) | _update() { method flagReset (line 8064) | flagReset() { method clone (line 8069) | clone(parent) { method toObject (line 8091) | toObject() { method constructor (line 8893) | constructor(params) { method setSize (line 8904) | setSize(width, height) { method render (line 8913) | render() { method constructor (line 10040) | constructor(params) { method setSize (line 10107) | setSize(width, height, ratio) { method render (line 10132) | render() { method _bound (line 10154) | get _bound() { method _bound (line 10157) | set _bound(v) { method addEventListener (line 10160) | addEventListener() { method on (line 10163) | on() { method bind (line 10166) | bind() { method removeEventListener (line 10169) | removeEventListener() { method off (line 10172) | off() { method unbind (line 10175) | unbind() { method dispatchEvent (line 10178) | dispatchEvent() { method trigger (line 10181) | trigger() { method listen (line 10184) | listen() { method ignore (line 10187) | ignore() { method constructor (line 10198) | constructor(options) { method appendTo (line 10263) | appendTo(elem) { method play (line 10274) | play() { method pause (line 10279) | pause() { method setPlaying (line 10283) | setPlaying(p) { method release (line 10286) | release(obj) { method update (line 10324) | update() { method render (line 10345) | render() { method add (line 10349) | add(objects) { method remove (line 10356) | remove(objects) { method clear (line 10363) | clear() { method makeLine (line 10367) | makeLine(x1, y1, x2, y2) { method makeArrow (line 10372) | makeArrow(x1, y1, x2, y2, size) { method makeRectangle (line 10405) | makeRectangle(x, y, width, height) { method makeRoundedRectangle (line 10410) | makeRoundedRectangle(x, y, width, height, sides) { method makeCircle (line 10415) | makeCircle(x, y, radius, resolution) { method makeEllipse (line 10420) | makeEllipse(x, y, rx, ry, resolution) { method makeStar (line 10425) | makeStar(x, y, outerRadius, innerRadius, sides) { method makeCurve (line 10430) | makeCurve(points) { method makePolygon (line 10450) | makePolygon(x, y, radius, sides) { method makeArcSegment (line 10455) | makeArcSegment(x, y, innerRadius, outerRadius, startAngle, endAngle, res... method makePoints (line 10468) | makePoints(p) { method makePath (line 10486) | makePath(p) { method makeText (line 10509) | makeText(message, x, y, styles) { method makeLinearGradient (line 10514) | makeLinearGradient(x1, y1, x2, y2) { method makeRadialGradient (line 10520) | makeRadialGradient(x1, y1, radius) { method makeSprite (line 10526) | makeSprite(pathOrTexture, x, y, columns, rows, frameRate, autostart) { method makeImageSequence (line 10534) | makeImageSequence(pathsOrTextures, x, y, frameRate, autostart) { method makeTexture (line 10542) | makeTexture(pathOrSource, callback) { method makeGroup (line 10546) | makeGroup(objects) { method interpret (line 10555) | interpret(svg2, shallow, add) { method load (line 10569) | load(pathOrSVGContent, callback) { function fitToWindow (line 10635) | function fitToWindow() { function fitToParent (line 10641) | function fitToParent() { function updateDimensions (line 10652) | function updateDimensions(width, height) { function loop (line 10658) | function loop() { FILE: models/layers/gilbert/gilbert2d.py function gilbert2d (line 6) | def gilbert2d(width, height): function gilbert2d_widthBigger (line 18) | def gilbert2d_widthBigger(width, height): function sgn (line 27) | def sgn(x): function generate2d (line 31) | def generate2d(x, y, ax, ay, bx, by): FILE: models/layers/gilbert/gilbert3d.py function gilbert3d (line 6) | def gilbert3d(width, height, depth): function sgn (line 32) | def sgn(x): function generate3d (line 36) | def generate3d(x, y, z, FILE: models/layers/gilbert/gilbert_d2xy.py function gilbert_d2xy (line 5) | def gilbert_d2xy(idx, w, h): function sgn (line 16) | def sgn(x): function gilbert_d2xy_r (line 19) | def gilbert_d2xy_r(dst_idx, cur_idx, x,y, ax,ay, bx,by): FILE: models/layers/gilbert/gilbert_d2xyz.py function gilbert_d2xyz (line 5) | def gilbert_d2xyz(idx, width, height, depth): function sgn (line 33) | def sgn(x): function gilbert_d2xyz_r (line 36) | def gilbert_d2xyz_r(dst_idx, cur_idx, FILE: models/layers/gilbert/gilbert_xy2d.py function gilbert_xy2d (line 5) | def gilbert_xy2d(x, y, w, h): function sgn (line 17) | def sgn(x): function in_bounds (line 21) | def in_bounds(x, y, x_s, y_s, ax, ay, bx, by): function gilbert_xy2d_r (line 39) | def gilbert_xy2d_r(cur_idx, x_dst, y_dst, x, y, ax, ay, bx, by): FILE: models/layers/gilbert/gilbert_xyz2d.py function gilbert_xyz2d (line 5) | def gilbert_xyz2d(x, y, z, width, height, depth): function sgn (line 34) | def sgn(x): function in_bounds (line 37) | def in_bounds(x, y, z, x_s, y_s, z_s, ax, ay, az, bx, by, bz, cx, cy, cz): function gilbert_xyz2d_r (line 61) | def gilbert_xyz2d_r(cur_idx, FILE: models/layers/gilbert/ports/gilbert.c function gilbert_xy2d (line 19) | int gilbert_xy2d(int x, int y, int w, int h) { function gilbert_d2xy (line 26) | int gilbert_d2xy(int *x, int *y, int idx,int w,int h) { function gilbert_xyz2d (line 50) | int gilbert_xyz2d(int x, int y, int z, int width, int height, int depth) { function gilbert_d2xyz (line 74) | int gilbert_d2xyz(int *x, int *y, int *z, int idx, int width, int height... function sgn (line 105) | static int sgn(int x) { function in_bounds2 (line 111) | int in_bounds2(int x, int y, function in_bounds3 (line 137) | int in_bounds3(int x, int y, int z, function gilbert_d2xy_r (line 174) | int gilbert_d2xy_r(int dst_idx, int cur_idx, function gilbert_xy2d_r (line 279) | int gilbert_xy2d_r(int cur_idx, function gilbert_d2xyz_r (line 362) | int gilbert_d2xyz_r(int dst_idx, int cur_idx, function gilbert_xyz2d_r (line 612) | int gilbert_xyz2d_r(int cur_idx, function main (line 869) | int main(int argc, char **argv) { FILE: models/layers/gilbert/ports/gilbert.js function sgn (line 15) | function sgn(x) { function in_bounds2 (line 21) | function in_bounds2(p, s, a, b) { function in_bounds3 (line 37) | function in_bounds3(p, s, a, b, c) { function gilbert_xy2d (line 58) | function gilbert_xy2d(x,y,w,h) { function gilbert_d2xy (line 71) | function gilbert_d2xy(idx,w,h) { function gilbert_xyz2d (line 83) | function gilbert_xyz2d(x,y,z,w,h,d) { function gilbert_d2xyz (line 99) | function gilbert_d2xyz(idx,w,h,d) { function gilbert_d2xy_r (line 113) | function gilbert_d2xy_r( dst_idx,cur_idx, p, a, b) { function gilbert_xy2d_r (line 187) | function gilbert_xy2d_r(idx, q, p, a, b) { function gilbert_xyz2d_r (line 254) | function gilbert_xyz2d_r(cur_idx, q, p, a, b, c) { function gilbert_d2xyz_r (line 414) | function gilbert_d2xyz_r(dst_idx, cur_idx, p, a, b, c) { function _main (line 596) | function _main(argv) { FILE: models/layers/matching.py function dice_loss (line 7) | def dice_loss(inputs, targets, num_boxes): function ber_loss (line 24) | def ber_loss(inputs, targets, num_boxes): function ce_mask_loss (line 32) | def ce_mask_loss(inputs, targets, num_boxes, function sigmoid_focal_loss (line 51) | def sigmoid_focal_loss(inputs, targets, num_boxes, alpha: float = 0.25, ... function batch_sigmoid_focal_loss (line 78) | def batch_sigmoid_focal_loss(inputs, targets, alpha: float = 0.25, gamma... function batch_dice_loss (line 94) | def batch_dice_loss(inputs: torch.Tensor, targets: torch.Tensor): function batch_sigmoid_ce_loss (line 111) | def batch_sigmoid_ce_loss(inputs: torch.Tensor, targets: torch.Tensor,): function get_src_permutation_idx (line 137) | def get_src_permutation_idx(indices): function get_tgt_permutation_idx (line 143) | def get_tgt_permutation_idx(indices): FILE: models/layers/position_encoding.py class PositionEmbeddingSine (line 11) | class PositionEmbeddingSine(nn.Module): method __init__ (line 16) | def __init__(self, num_pos_feats=64, temperature=10000, normalize=Fals... method forward (line 27) | def forward(self, tensor_list: NestedTensor): class PositionEmbeddingLearned (line 50) | class PositionEmbeddingLearned(nn.Module): method __init__ (line 54) | def __init__(self, num_pos_feats=256): method reset_parameters (line 60) | def reset_parameters(self): method forward (line 64) | def forward(self, tensor_list: NestedTensor): class PositionEmbeddingSine1D (line 78) | class PositionEmbeddingSine1D(nn.Module): method __init__ (line 83) | def __init__(self, temperature=10000, normalize=True, scale=None): method forward (line 93) | def forward(self, mask, hidden_dim): class PositionEmbeddingSine3D (line 113) | class PositionEmbeddingSine3D(nn.Module): method __init__ (line 119) | def __init__(self, num_pos_feats=64, temperature=10000, normalize=Fals... method forward (line 130) | def forward(self, x, mask=None): class PositionEmbeddingSine2D (line 161) | class PositionEmbeddingSine2D(nn.Module): method __init__ (line 166) | def __init__(self, temperature=10000, normalize=True, scale=None): method forward (line 176) | def forward(self, mask, hidden_dim: int): class PositionEmbeddingLearned1D (line 203) | class PositionEmbeddingLearned1D(nn.Module): method __init__ (line 207) | def __init__(self, num_pos_feats=256): method reset_parameters (line 212) | def reset_parameters(self): method forward (line 215) | def forward(self, tensor_list: NestedTensor): function build_position_encoding (line 228) | def build_position_encoding(hidden_dim=None, position_embedding_name='2d'): FILE: models/layers/utils.py function zero_module (line 6) | def zero_module(module): function _get_clones (line 14) | def _get_clones(module, N): function _get_activation_fn (line 17) | def _get_activation_fn(activation): function _get_activation_layer (line 29) | def _get_activation_layer(activation): function pad_1d_feats (line 40) | def pad_1d_feats(feat_list): FILE: models/modality_input_mappers/hilbert_curve.py class HilbertCurve_FrameQuery (line 7) | class HilbertCurve_FrameQuery: method __init__ (line 8) | def __init__(self, method mapper (line 14) | def mapper(self, video): method collate (line 19) | def collate(self, list_of_haosen, batch_videos): FILE: models/optimization/optimizer.py class GradientClipType (line 13) | class GradientClipType(Enum): function maybe_add_full_model_gradient_clipping (line 18) | def maybe_add_full_model_gradient_clipping(optim, configs): function _create_gradient_clipper (line 36) | def _create_gradient_clipper(cfg) -> _GradientClipper: function _generate_optimizer_class_with_gradient_clipping (line 55) | def _generate_optimizer_class_with_gradient_clipping( function maybe_add_gradient_clipping (line 88) | def maybe_add_gradient_clipping( function get_optimizer (line 122) | def get_optimizer(params, configs): FILE: models/optimization/scheduler.py function build_scheduler (line 7) | def build_scheduler(configs, optimizer): FILE: models/registry.py function register_model (line 3) | def register_model(fn): function model_entrypoint (line 11) | def model_entrypoint(model_name): FILE: trainers/Trainer.py class Trainer (line 19) | class Trainer: method __init__ (line 20) | def __init__(self, configs): method train (line 68) | def train(self): method save_ckpt (line 99) | def save_ckpt(self): method evaluate (line 129) | def evaluate(self): method load_ckpt (line 164) | def load_ckpt(self, method _log (line 202) | def _log(self, method device (line 256) | def device(self): method iteration_dir (line 260) | def iteration_dir(self): method epoch (line 264) | def epoch(self): method log_header (line 270) | def log_header(self, iteration_time, sample_idxs): method visualize_path (line 275) | def visualize_path(self, meta_idxs, visualize): method register_metric_logger (line 278) | def register_metric_logger(self, log_keys): FILE: utils/misc.py class SmoothedValue (line 31) | class SmoothedValue(object): method __init__ (line 36) | def __init__(self, window_size=1, fmt='{value:.6f}', handler='value'): method update (line 45) | def update(self, value, n=1): method synchronize_between_processes (line 50) | def synchronize_between_processes(self): method median (line 64) | def median(self): method avg (line 69) | def avg(self): method global_avg (line 74) | def global_avg(self): method max (line 78) | def max(self): method value (line 82) | def value(self): method wandb_log_property (line 86) | def wandb_log_property(self): method __str__ (line 94) | def __str__(self): function all_gather (line 103) | def all_gather(data): function all_gather_cpu (line 145) | def all_gather_cpu(data): function reduce_dict (line 181) | def reduce_dict(input_dict, average=True): function reduce_scalar (line 207) | def reduce_scalar(input, average=True): class MetricLogger (line 226) | class MetricLogger(object): method __init__ (line 227) | def __init__(self, delimiter="\t"): method update (line 231) | def update(self, **kwargs): method __getattr__ (line 238) | def __getattr__(self, attr): method __str__ (line 246) | def __str__(self): method to_dict (line 254) | def to_dict(self): method synchronize_between_processes (line 260) | def synchronize_between_processes(self): method add_meter (line 264) | def add_meter(self, name, meter): method log_every (line 267) | def log_every(self, iterable, print_freq, header=None): function get_sha (line 322) | def get_sha(): function collate_fn (line 342) | def collate_fn(batch): function _max_by_axis (line 348) | def _max_by_axis(the_list): class NestedTensor (line 357) | class NestedTensor(object): method __init__ (line 358) | def __init__(self, tensors, mask: Optional[Tensor]): method to (line 362) | def to(self, device): method decompose (line 373) | def decompose(self): method __repr__ (line 376) | def __repr__(self): function nested_tensor_from_tensor_list (line 405) | def nested_tensor_from_tensor_list(tensor_list: List[Tensor]): function nested_tensor_from_tensor_list_visiblility (line 423) | def nested_tensor_from_tensor_list_visiblility(tensor_list: List[Tensor]... function nested_tensor_from_tensor_list_with_stride (line 459) | def nested_tensor_from_tensor_list_with_stride(tensor_list: List[Tensor]... function _get_nearest_scale_number (line 484) | def _get_nearest_scale_number(num, scale): function nested_tensor_from_videos_list (line 491) | def nested_tensor_from_videos_list(videos_list: List[Tensor]): function _onnx_nested_tensor_from_tensor_list (line 516) | def _onnx_nested_tensor_from_tensor_list(tensor_list: List[Tensor]) -> N... function setup_for_distributed (line 544) | def setup_for_distributed(is_master): function is_dist_avail_and_initialized (line 559) | def is_dist_avail_and_initialized(): function get_world_size (line 567) | def get_world_size(): function get_rank (line 573) | def get_rank(): function is_main_process (line 579) | def is_main_process(): function save_on_master (line 583) | def save_on_master(*args, **kwargs): function init_distributed_mode (line 588) | def init_distributed_mode(args): function accuracy (line 614) | def accuracy(output, target, topk=(1,)): function interpolate (line 632) | def interpolate(input, size=None, scale_factor=None, mode="nearest", ali... function inverse_sigmoid (line 651) | def inverse_sigmoid(x, eps=1e-5): function to_device (line 657) | def to_device(sample, device): function nested_tensor_from_videos_list_with_stride (line 667) | def nested_tensor_from_videos_list_with_stride(videos_list, max_stride):