MCPcopy Create free account

hub / github.com/SebastianJanampa/DT-LSD / functions

Functions532 in github.com/SebastianJanampa/DT-LSD

Methodcompact2origin
(self, idx)
util/utils.py:61
Methoddict
(self)
evaluation/lcnn/box.py:1097
Methoddraw_vecl
(lines, sline, juncs, junts, fn)
evaluation/lcnn/trainer.py:244
Methoddump_to_fileobj
(self, obj, file, **kwargs)
util/slio.py:64
Methoddump_to_fileobj
(self, obj, file, **kwargs)
util/slio.py:78
Methoddump_to_path
(self, obj, filepath, mode='w', **kwargs)
util/slio.py:36
Methoddump_to_str
(self, obj, **kwargs)
util/slio.py:29
Methoddump_to_str
(self, obj, **kwargs)
util/slio.py:60
Methoddump_to_str
(self, obj, **kwargs)
util/slio.py:82
Methodfilename
(self)
util/slconfig.py:220
MethodformatMessage
(self, record)
util/logger.py:17
Methodforward
(self, x)
models/dtlsd/utils.py:116
Methodforward
Input: - srcs: List of multi features [bs, ci, hi, wi] - masks: List of multi masks [bs, hi, wi] - refpoi
models/dtlsd/deformable_transformer.py:174
Methodforward
Input: - src: [bs, sum(hi*wi), 256] - pos: pos embed for src. [bs, sum(hi*wi), 256] - spatial_shapes: h,w
models/dtlsd/deformable_transformer.py:380
Methodforward
Input: - tgt: nq, bs, d_model - memory: hw, bs, d_model - pos: hw, bs, d_model - refpoints_un
models/dtlsd/deformable_transformer.py:504
Methodforward
(self, src, pos, reference_points, spatial_shapes, level_start_index, key_padding_mask=None)
models/dtlsd/deformable_transformer.py:616
Methodforward
(self, # for tgt tgt: Optional[Tensor], # nq, bs, d_model tgt
models/dtlsd/deformable_transformer.py:748
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tenso
models/dtlsd/matcher.py:47
Methodforward
Performs the matching Params: outputs: This is a dict that contains at least these entries: "pred_logits": Tenso
models/dtlsd/matcher.py:116
Methodforward
(self, x)
models/dtlsd/swin_transformer.py:30
Methodforward
Forward function. Args: x: input features with shape of (num_windows*B, N, C) mask: (0/-inf) mask with shape of (num_
models/dtlsd/swin_transformer.py:116
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/dtlsd/swin_transformer.py:191
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/dtlsd/swin_transformer.py:262
Methodforward
Forward function. Args: x: Input feature, tensor size (B, H*W, C). H, W: Spatial resolution of the input feature.
models/dtlsd/swin_transformer.py:351
Methodforward
Forward function.
models/dtlsd/swin_transformer.py:416
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/swin_transformer.py:633
Methodforward
(self, x)
models/dtlsd/backbone.py:62
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/backbone.py:97
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/backbone.py:135
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/position_encoding.py:40
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/position_encoding.py:79
Methodforward
(self, tensor_list: NestedTensor)
models/dtlsd/position_encoding.py:121
Methodforward
The forward expects a NestedTensor, which consists of: - samples.tensor: batched images, of shape [batch_size x 3 x H x W]
models/dtlsd/dtlsd.py:168
Methodforward
This performs the loss computation. Parameters: outputs: dict of tensors, see the output specification of the model for the form
models/dtlsd/dtlsd.py:377
Methodforward
Perform the computation Parameters: outputs: raw outputs of the model target_sizes: tensor of dimension [batch_size x
models/dtlsd/dtlsd.py:533
Methodforward
:param query (N, Length_{query}, C) :param reference_points (N, Length_{query}, n_levels, 2), range
models/dtlsd/ops/modules/ms_deform_attn.py:78
Methodforward
(ctx, value, value_spatial_shapes, value_level_start_index, sampling_locations, attention_weights, im2col_step
models/dtlsd/ops/functions/ms_deform_attn_func.py:23
Methodforward
(self, input_dict)
evaluation/lcnn/models/line_vectorizer.py:45
Methodforward
(self, x)
evaluation/lcnn/models/line_vectorizer.py:271
Methodforward
(self, x)
evaluation/lcnn/models/multitask_learner.py:28
Methodforward
(self, input_dict)
evaluation/lcnn/models/multitask_learner.py:40
Methodforward
(self, x)
evaluation/lcnn/models/hourglass_pose.py:30
Methodforward
(self, x)
evaluation/lcnn/models/hourglass_pose.py:91
Methodforward
(self, x)
evaluation/lcnn/models/hourglass_pose.py:162
Methodfrom_json
Transform a json object string into a Box object. If the incoming json is a list, you must use BoxList.from_json. :param jso
evaluation/lcnn/box.py:690
Methodfrom_json
Transform a json object string into a BoxList object. If the incoming json is a dict, you must use Box.from_json. :param jso
evaluation/lcnn/box.py:885
Methodfrom_yaml
Transform a yaml object string into a BoxList object. :param yaml_string: string to pass to `yaml.load` :param f
evaluation/lcnn/box.py:931
Methodfrozen
(*args, **kwargs)
evaluation/lcnn/box.py:777
Functionfscore
(tp, fp)
evaluation/lcnn/metric.py:23
Functiongeneralized_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
Functiongeneralized_box_iou_pairwise
Generalized IoU from https://giou.stanford.edu/ Input: - boxes1, boxes2: N,4 Output: - giou: N, 4
util/box_ops.py:84
Methodget
(self, key)
models/registry.py:34
Functionget_embedder
(multires, i=0)
util/utils.py:156
Functionget_expected_points_from_map
get_gaussian_map_from_points B,C,H,W -> B,N,2 float(0, 1) float(0, 1) softargmax function Args: hm (float): Input images(
util/utils.py:102
Functionget_raw_dict
return the dicf contained in args. e.g: >>> with open(path, 'w') as f: json.dump(get_raw_dict(args), f, indent=2
util/utils.py:206
Functionget_sha
()
util/misc.py:265
Methodgetboolean
(self, item, default=None)
evaluation/lcnn/box.py:1074
Methodgetfloat
(self, item, default=None)
evaluation/lcnn/box.py:1080
Methodgetint
(self, item, default=None)
evaluation/lcnn/box.py:1077
Methodglobal_avg
(self)
util/misc.py:76
Functionhandle
(allname)
evaluation/eval-aph-post-wireframe.py:75
Functionhandle
(allname)
evaluation/eval-aph-post-york.py:77
Functionhg
(**kwargs)
evaluation/lcnn/models/hourglass_pose.py:192
Methodimgsize
(self)
util/misc.py:314
Functioninit_distributed_mode
(args)
util/misc.py:475
Methodinit_ref_points
(self, use_num_queries)
models/dtlsd/dtlsd.py:165
Functioninterpolate
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
Functioninverse_sigmoid
(x, eps=1e-5)
util/utils.py:198
Methodjson
(self)
evaluation/lcnn/box.py:1101
Functionkill
()
evaluation/lcnn/trainer.py:328
Methodkillme
()
evaluation/lcnn/trainer.py:64
Functionl2loss
(input, target)
evaluation/lcnn/models/multitask_learner.py:93
Methodlist
Return value of key as a list :param item: key of value to transform :param mod: function to map against list :param default
evaluation/lcnn/box.py:1049
Methodload_from_fileobj
(self, file, **kwargs)
util/slio.py:53
Methodload_from_fileobj
(self, file, **kwargs)
util/slio.py:74
Methodload_from_path
(self, filepath, mode='r', **kwargs)
util/slio.py:32
Methodloss_cardinality
Compute the cardinality error, ie the absolute error in the number of predicted non-empty boxes This is not really a loss, it is intended for
models/dtlsd/dtlsd.py:326
Methodloss_labels
Classification loss (Binary focal loss) targets dicts must contain the key "labels" containing a tensor of dim [nb_target_boxes]
models/dtlsd/dtlsd.py:303
Methodloss_lines
Compute the losses related to the bounding boxes, the L1 regression loss and the GIoU loss targets dicts must contain the key "boxes" conta
models/dtlsd/dtlsd.py:339
FunctionmAPJ
(pred, truth, distances, im_ids)
evaluation/lcnn/metric.py:82
Functionmasks_to_boxes
Compute the bounding boxes around the provided masks The masks should be in format [N, H, W] where N is the number of masks, (H, W) are the spati
util/box_ops.py:108
Methodmedian
(self)
util/misc.py:64
Methodmodule_dict
(self)
models/registry.py:31
FunctionmsAP
(line_pred, line_gt, threshold)
evaluation/lcnn/metric.py:213
Functionms_deform_attn_backward
models/dtlsd/ops/src/ms_deform_attn.h:41
Functionms_deform_attn_cpu_backward
models/dtlsd/ops/src/cpu/ms_deform_attn_cpu.cpp:29
Functionms_deform_attn_cpu_forward
models/dtlsd/ops/src/cpu/ms_deform_attn_cpu.cpp:17
Functionms_deform_attn_forward
models/dtlsd/ops/src/ms_deform_attn.h:20
Methodname
(self)
models/registry.py:27
Functionnp_softmax
Compute softmax values for each sets of scores in x.
evaluation/lcnn/utils.py:60
Methodorigin2compact
(self, idx)
util/utils.py:58
Functionplot_dual_img
[summary] Args: img ([type]): 3,H,W. tensor. boxes (): tensor(Kx4) or list of tensor(1x4). labels ([type]): list of ints.
util/vis_utils.py:36
Functionplot_logs
Function to plot specific fields from training log(s). Plots both training and test results. :: Inputs - logs = list containing Path objects
util/plot_utils.py:13
Functionplot_precision_recall
(files, naming_scheme='iter')
util/plot_utils.py:81
Functionplot_raw_img
[summary] Args: img ([type]): 3,H,W. tensor. boxes ([type]): Kx4. tensor labels ([type]): K. tensor. return:
util/vis_utils.py:66
Methodpopitem
(self)
evaluation/lcnn/box.py:607
Functionpost_jheatmap
(heatmap, offset=None, delta=1)
evaluation/lcnn/metric.py:86
Methodpretty_text
(self)
util/slconfig.py:228
Functionpsegment
(x1, y1, x2, y2, x, y)
evaluation/lcnn/postprocess.py:14
Functionquiver
(x, y, ax)
evaluation/lcnn/utils.py:29
← previousnext →401–500 of 532, ranked by callers