MCPcopy Create free account

hub / github.com/IDEA-Research/DINO / functions

Functions501 in github.com/IDEA-Research/DINO

↓ 55 callersFunctionprint
(*args, **kwargs)
util/misc.py:438
↓ 51 callersMethodto
(self, device)
util/misc.py:323
↓ 39 callersMethodmax
(self)
util/misc.py:80
↓ 39 callersMethodupdate
(self, model)
util/utils.py:392
↓ 19 callersFunctionget_shape
Get the shapes from a jit value object. Args: val (torch._C.Value): jit value object. Returns: list(int): return a list o
tools/benchmark.py:46
↓ 14 callersMethodcopy
(self)
util/slconfig.py:401
↓ 13 callersMethoddeepcopy
(self)
util/slconfig.py:404
↓ 12 callersFunctionmatch_name_keywords
(n: str, name_keywords: list)
util/get_param_dicts.py:6
↓ 9 callersFunctioninverse_sigmoid
(x, eps=1e-3)
util/misc.py:575
↓ 8 callersFunctionbox_cxcywh_to_xyxy
(x)
util/box_ops.py:9
↓ 8 callersMethoddump
(self, file=None)
util/slconfig.py:357
↓ 6 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
models/dino/swin_transformer.py:21
↓ 6 callersFunction_get_activation_fn
Return an activation function given a string
models/dino/utils.py:122
↓ 6 callersMethodget_loss
(self, loss, outputs, targets, indices, num_boxes, **kwargs)
models/dino/dino.py:464
↓ 5 callersFunctionfmt_res
(data)
tools/benchmark.py:597
↓ 5 callersMethodget
(self, key)
models/registry.py:34
↓ 5 callersFunctionpad
(image, target, padding)
datasets/transforms.py:136
↓ 5 callersMethodupdate
(self, **kwargs)
util/misc.py:171
↓ 4 callersMethod__init__
(self, d_model=256, nhead=8, num_encoder_layers=6, num_decoder_layers=6, dim_feedforward=1024
models/dino/transformer_deformable.py:30
↓ 4 callersMethod__init__
(self, encoder_layer, num_layers, norm=None, d_model=256, num_queries=300, deformabl
models/dino/deformable_transformer.py:436
↓ 4 callersMethod__init__
(self, detr, freeze_detr=False)
models/dino/segmentation.py:37
↓ 4 callersMethod__setattr__
(self, name, value)
util/slconfig.py:344
↓ 4 callersFunction_expand
(tensor, length: int)
models/dino/segmentation.py:77
↓ 4 callersFunctionbuild_dataset
(image_set, args)
datasets/__init__.py:18
↓ 4 callersFunctionelementwise_flop_counter
Count flops by input_tensor.numel() * input_scale + output_tensor.numel() * output_scale Args: input_scale: scale of the inp
tools/benchmark.py:353
↓ 4 callersFunctionis_dist_avail_and_initialized
()
util/misc.py:446
↓ 4 callersFunctionis_str
Whether the input is an string instance. Note: This method is deprecated since python 2 is no longer supported.
util/slio.py:98
↓ 4 callersFunctionnested_tensor_from_tensor_list
(tensor_list: List[Tensor])
util/misc.py:375
↓ 4 callersMethodsummary
(self)
util/utils.py:426
↓ 3 callersMethod__init__
(self, backbone, position_embedding)
models/dino/backbone.py:132
↓ 3 callersMethod_get_src_permutation_idx
(self, indices)
models/dino/dino.py:452
↓ 3 callersFunction_run
(command)
util/misc.py:268
↓ 3 callersMethodadd_meter
(self, name, meter)
util/misc.py:201
↓ 3 callersFunctionbox_iou
(boxes1, boxes2)
util/box_ops.py:24
↓ 3 callersFunctioncrop
(image, target, region)
datasets/transforms.py:16
↓ 3 callersMethoddecompose
(self)
util/misc.py:361
↓ 3 callersFunctionevaluate
(model, criterion, postprocessors, data_loader, base_ds, device, output_dir, wo_class_error=False, args=None,
engine.py:123
↓ 3 callersMethodfromfile
(filename)
util/slconfig.py:192
↓ 3 callersFunctiongen_sineembed_for_position
(pos_tensor)
models/dino/utils.py:138
↓ 3 callersFunctionget_world_size
()
util/misc.py:454
↓ 3 callersFunctioninterpolate
Equivalent to nn.functional.interpolate, but with support for empty batch sizes. This will eventually be supported natively by PyTorch, and t
util/misc.py:540
↓ 3 callersMethodlog_every
(self, iterable, print_freq, header=None, logger=None)
util/misc.py:204
↓ 3 callersFunctionnorm_flop_counter
Args: affine_arg_index: index of the affine argument in inputs
tools/benchmark.py:331
↓ 3 callersMethodwith_pos_embed
(tensor, pos)
models/dino/transformer_deformable.py:385
↓ 3 callersMethodwith_pos_embed
(tensor, pos)
models/dino/deformable_transformer.py:870
↓ 2 callersMethod__init__
(self, dim, drop_path=0., layer_scale_init_value=1e-6)
models/dino/convnext.py:29
↓ 2 callersMethod__init__
Initializes the model. Parameters: backbone: torch module of the backbone to be used. See backbone.py transformer: to
models/dino/dino.py:40
↓ 2 callersMethod__init__
(self, num_pos_feats=64, temperature=10000, normalize=False, scale=None)
models/dino/position_encoding.py:29
↓ 2 callersMethod__nice__
str: a "nice" summary string describing this module
util/utils.py:273
↓ 2 callersMethod_freeze_stages
(self)
models/dino/swin_transformer.py:557
↓ 2 callersFunction_get_clones
(module, N)
models/dino/transformer_deformable.py:575
↓ 2 callersFunction_get_clones
(module, N, layer_share=False)
models/dino/deformable_transformer.py:997
↓ 2 callersMethod_merge_a_into_b
merge dict `a` into dict `b` (non-inplace). values in `a` will overwrite `b`. copy first to avoid inplace modification
util/slconfig.py:148
↓ 2 callersMethod_set_aux_loss
(self, outputs_class, outputs_coord)
models/dino/dino.py:325
↓ 2 callersMethod_update
(self, model, update_fn)
util/utils.py:385
↓ 2 callersFunctionadd_box_to_img
[summary] Args: img ([type]): np.array, H,W,3 boxes ([type]): list of list(4) colorlist: list of colors. brands:
util/vis_utils.py:10
↓ 2 callersFunctionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
util/misc.py:96
↓ 2 callersMethodbackward
(ctx, grad_output)
models/dino/ops/functions/ms_deform_attn_func.py:32
↓ 2 callersFunctionbox_xyxy_to_cxcywh
(x)
util/box_ops.py:16
↓ 2 callersFunctionbuild_model_main
(args)
main.py:78
↓ 2 callersFunctionbuild_swin_transformer
(modelname, pretrain_img_size, **kw)
models/dino/swin_transformer.py:683
↓ 2 callersFunctioncheck_and_copy
(src_path, tgt_path)
datasets/data_util.py:103
↓ 2 callersFunctionconvert_to_xywh
(boxes)
datasets/coco_eval.py:178
↓ 2 callersMethoddevice
(self)
util/misc.py:358
↓ 2 callersMethodforward_raw
Forward function.
models/dino/swin_transformer.py:600
↓ 2 callersFunctiongen_encoder_output_proposals
Input: - memory: bs, \sum{hw}, d_model - memory_padding_mask: bs, \sum{hw} - spatial_shapes: nlevel, 2 - learnedw
models/dino/utils.py:15
↓ 2 callersFunctiongeneralized_box_iou
Generalized IoU from https://giou.stanford.edu/ The boxes should be in [x0, y0, x1, y1] format Returns a [N, M] pairwise matrix, where
util/box_ops.py:41
↓ 2 callersFunctionget_coco_api_from_dataset
(dataset)
datasets/__init__.py:8
↓ 2 callersFunctionget_gaussian_mean
Args: x (float): Input images(BxCxHxW) axis (int): The index for weighted mean other_axis (int): The other index Re
util/utils.py:77
↓ 2 callersFunctionget_shared_folder
()
run_with_submitit.py:33
↓ 2 callersFunctionis_main_process
()
util/misc.py:466
↓ 2 callersFunctionlabel2onehot
label: Tensor(K)
datasets/coco.py:277
↓ 2 callersFunctionmake_coco_transforms
(image_set, fix_size=False, strong_aug=False, args=None)
datasets/coco.py:454
↓ 2 callersMethodmerge_from_dict
Merge list into cfg_dict Merge the dict parsed by MultipleKVAction into this cfg. Examples: >>> options = {'model.backbo
util/slconfig.py:365
↓ 2 callersFunctionms_deform_attn_core_pytorch
(value, value_spatial_shapes, sampling_locations, attention_weights)
models/dino/ops/functions/ms_deform_attn_func.py:41
↓ 2 callersFunctionmulti_head_attention_forward
r""" Args: query, key, value: map a query and a set of key-value pairs to an output. See "Attention Is All You Need" for more
models/dino/attention.py:183
↓ 2 callersMethodprepare
(self, predictions, iou_type)
datasets/coco_eval.py:72
↓ 2 callersFunctionrandom_crop
image: A PIL image boxes: Bounding boxes, a tensor of dimensions (#objects, 4) labels: labels of object, a tensor of dimensio
datasets/random_crop.py:49
↓ 2 callersFunctionremove
(srcpath)
datasets/data_util.py:110
↓ 2 callersFunctionrenorm
(img: torch.FloatTensor, mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225])
util/utils.py:30
↓ 2 callersFunctionresize
(image, target, size, max_size=None)
datasets/transforms.py:77
↓ 2 callersFunctionsigmoid_focal_loss
Loss used in RetinaNet for dense detection: https://arxiv.org/abs/1708.02002. Args: inputs: A float tensor of arbitrary shape.
models/dino/utils.py:79
↓ 2 callersMethodsummary
(self)
util/utils.py:456
↓ 2 callersMethodsynchronize_between_processes
(self)
util/misc.py:197
↓ 2 callersFunctionto_device
(item, device)
util/utils.py:64
↓ 2 callersMethodto_img_list_single
(self, tensor, mask)
util/misc.py:334
↓ 2 callersMethodtrain
Convert the model into training mode while keep layers freezed.
models/dino/swin_transformer.py:676
↓ 2 callersMethodupdate
(self, value, n=1)
util/misc.py:45
↓ 2 callersMethodupdate
return if the results is the best.
util/utils.py:442
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
models/dino/swin_transformer.py:39
↓ 1 callersMethod__getattr__
(self, name)
util/slconfig.py:328
↓ 1 callersMethod__init__
(self)
datasets/coco.py:289
↓ 1 callersMethod__init__
Creates the matcher Params: cost_class: This is the relative weight of the classification error in the matching cost c
models/dino/matcher.py:32
↓ 1 callersMethod__init__
(self, cfg_dict=None, cfg_text=None, filename=None)
util/slconfig.py:197
↓ 1 callersMethod__init__
(self, **kwargs)
util/utils.py:124
↓ 1 callersMethod__repr__
str: the string of the module
util/utils.py:284
↓ 1 callersMethod__repr__
(self)
util/utils.py:466
↓ 1 callersMethod__str__
(self)
util/utils.py:420
↓ 1 callersFunction_cached_log_stream
(filename)
util/logger.py:94
↓ 1 callersMethod_file2dict
(filename)
util/slconfig.py:81
next →1–100 of 501, ranked by callers