MCPcopy Create free account

hub / github.com/BADBADBADBOY/DBnet-lite.pytorch / functions

Functions187 in github.com/BADBADBADBOY/DBnet-lite.pytorch

↓ 95 callersMethodappend
(self, numbers)
utils/Logger.py:52
↓ 14 callersFunctionget_str
(_str,num=5)
utils/tools.py:56
↓ 9 callersMethodupdate
(self, label_trues, label_preds)
utils/metrics.py:22
↓ 6 callersMethodclose
(self)
utils/Logger.py:61
↓ 6 callersFunctionvalidate_point_inside_bounds
(x,y,imWidth,imHeight)
cal_rescall/rrc_evaluation_funcs.py:250
↓ 4 callersMethod_compute
(self, pred, gt, mask, weights)
loss/dice_loss.py:29
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dcn=None)
models/backbone/resnet.py:224
↓ 4 callersFunctionsave_checkpoint
(state, checkpoint='checkpoints', filename='DB.pth.tar')
utils/tools.py:83
↓ 3 callersMethod__init__
(self, in_channels, out_channels, kernel_size,
models/dcn/modules/deform_conv.py:12
↓ 3 callersMethod_upsample
(self, x, y, scale=1)
models/head/FPN_Head.py:50
↓ 3 callersMethod_upsample_add
(self, x, y)
models/head/FPN_Head.py:55
↓ 3 callersFunctioncal_recall_precison_f1
(gt_path, result_path, show_result=False)
cal_rescall/script.py:319
↓ 3 callersFunctionget_intersection
(pD, pG)
cal_rescall/script.py:102
↓ 3 callersMethodget_mini_boxes
(self, contour)
utils/DB_postprocesss.py:137
↓ 3 callersFunctionload_prune_model
(model, pruned_model_dict_path)
pruned/get_pruned_model.py:166
↓ 3 callersMethodreplace_or_add
(self, dest, value)
loss/dice_loss.py:142
↓ 3 callersFunctionresize_image
(img,short_side=736)
utils/tools.py:59
↓ 3 callersFunctionshape_check
models/dcn/src/deform_conv_cuda.cpp:61
↓ 2 callersMethod__init__
(self, block, layers, num_classes=1000, dcn=None, stage_with_dcn=(False, False, False, False)
models/backbone/resnet.py:188
↓ 2 callersMethod__init__
(self, spatial_scale, out_size, out_channels,
models/dcn/modules/deform_pool.py:8
↓ 2 callersMethod__init__
(self, eps=1e-6)
loss/dice_loss.py:15
↓ 2 callersMethod_init_upsample
(self, in_channels, out_channels, smooth=False, bias=False)
models/head/seg_detector.py:82
↓ 2 callersFunctionadjust_learning_rate
(config, optimizer, epoch,gama = 0.1)
utils/set_optimizer.py:19
↓ 2 callersFunctionadjust_learning_rate_poly
(base_lr, optimizer, epoch, max_epoch=1200, factor=0.9)
utils/set_optimizer.py:14
↓ 2 callersMethodaugment_poly
(self,aug, img_shape, poly)
dataloader/random_thansform.py:162
↓ 2 callersMethodbackward
(ctx, grad_output)
models/dcn/functions/deform_conv.py:55
↓ 2 callersMethodbox_score_fast
(self, bitmap, _box)
utils/DB_postprocesss.py:160
↓ 2 callersFunctioncal_binary_score
(binarys, gt_binarys, training_masks, running_metric_binary, thresh=0.5)
utils/tools.py:70
↓ 2 callersFunctioncompute_ap
(confList, matchList, numGtCare)
cal_rescall/script.py:108
↓ 2 callersFunctionfuse_module
(m)
utils/fuse_model.py:54
↓ 2 callersFunctionget_tl_line_values
Validate the format of the line. If the line is not valid an exception will be raised. If maxWidth and maxHeight are specified, all points mu
cal_rescall/rrc_evaluation_funcs.py:150
↓ 2 callersMethodis_poly_outside_rect
(self, poly, x, y, w, h)
dataloader/random_thansform.py:74
↓ 2 callersMethodlabel
Args: tensor_on_gpu: (N, 1, H, W) blur: Lambda. If exists, each instance will be blured using `blur`.
loss/dice_loss.py:114
↓ 2 callersFunctionpolygon_from_points
Returns a Polygon object to use with the Polygon2 class from a list of 8 points: x1,y1,x2,y2,x3,y3,x4,y4
cal_rescall/script.py:55
↓ 2 callersFunctionprint_table
(header,item,type_str)
utils/tools.py:51
↓ 2 callersMethodprocess
(self, img,polys,dontcare)
dataloader/MakeBorderMap.py:22
↓ 2 callersMethodrandom_select
(self, axis, max_size)
dataloader/random_thansform.py:92
↓ 2 callersFunctionrectangle_to_polygon
(rect)
cal_rescall/script.py:71
↓ 2 callersMethodregion_wise_random_select
(self, regions, max_size)
dataloader/random_thansform.py:100
↓ 2 callersMethodset_names
(self, names)
utils/Logger.py:29
↓ 2 callersMethodsplit_regions
(self, axis)
dataloader/random_thansform.py:82
↓ 2 callersMethodunclip
(self, box, unclip_ratio=2)
utils/DB_postprocesss.py:129
↓ 2 callersFunctionval
(model,config)
utils/model_eval.py:30
↓ 1 callersMethod__init__
(self, max_tries=10,min_crop_side_ratio=0.1,crop_size=(640, 640))
dataloader/random_thansform.py:33
↓ 1 callersMethod__init__
(self,in_channels,inner_channels,bias=False)
models/head/DB_Head.py:26
↓ 1 callersMethod__init__
(self,in_channels,inner_channels)
models/head/FPN_Head.py:28
↓ 1 callersMethod__init__
(self)
loss/l1_loss.py:6
↓ 1 callersMethod_fast_hist
(self, label_true, label_pred, n_class)
utils/metrics.py:12
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
models/dcn/functions/deform_conv.py:168
↓ 1 callersMethod_init_thresh
(self, inner_channels, serial=False, smooth=False, bias=False)
models/head/seg_detector.py:65
↓ 1 callersMethod_output_size
(input, weight, padding, dilation, stride)
models/dcn/functions/deform_conv.py:92
↓ 1 callersMethodboxes_from_bitmap
_bitmap: single map with shape (1, H, W), whose values are binarized as {0, 1}
utils/DB_postprocesss.py:83
↓ 1 callersFunctionconstant_init
(module, constant, bias=0)
models/backbone/resnet.py:28
↓ 1 callersFunctionconv3x3
3x3 convolution with padding
models/backbone/resnet.py:34
↓ 1 callersMethodcrop_area
(self, img, polys)
dataloader/random_thansform.py:111
↓ 1 callersFunctiondecode_utf8
Returns a Unicode object on success, or None on failure
cal_rescall/rrc_evaluation_funcs.py:106
↓ 1 callersMethoddistance
compute the distance from point to a line ys: coordinates in the first axis xs: coordinates in the second axis point_
dataloader/MakeBorderMap.py:81
↓ 1 callersMethoddraw_border_map
(self, polygon, canvas, mask)
dataloader/MakeBorderMap.py:33
↓ 1 callersFunctionfuse
(conv, bn)
utils/fuse_model.py:26
↓ 1 callersFunctionget_bboxes
(gt_path,config)
dataloader/dataload.py:27
↓ 1 callersFunctionget_img
(img_path)
dataloader/dataload.py:23
↓ 1 callersFunctionget_intersection_over_union
(pD, pG)
cal_rescall/script.py:96
↓ 1 callersFunctionget_new_model
(model, new_model, prued_mask, bn_index)
pruned/get_pruned_model.py:17
↓ 1 callersMethodget_scores
Returns accuracy score evaluation result. - overall accuracy - mean accuracy - mean IU - fwavacc
utils/metrics.py:27
↓ 1 callersFunctionget_union
(pD, pG)
cal_rescall/script.py:91
↓ 1 callersMethodinit_offset
(self)
models/dcn/modules/deform_conv.py:74
↓ 1 callersMethodinit_offset
(self)
models/dcn/modules/deform_conv.py:146
↓ 1 callersMethodiou
(self, pred, gt)
loss/dice_loss.py:138
↓ 1 callersFunctionjudgePoint
(point1,point2,center_point)
utils/tools.py:19
↓ 1 callersFunctionlr_poly
(base_lr, epoch, max_epoch=1200, factor=0.9)
utils/set_optimizer.py:11
↓ 1 callersMethodpolygon_area
(self, polygon)
dataloader/MakeSegMap.py:83
↓ 1 callersMethodpolygons_from_bitmap
_bitmap: single map with shape (1, H, W), whose values are binarized as {0, 1}
utils/DB_postprocesss.py:30
↓ 1 callersMethodprocess
(self, img, polys, dont_care)
dataloader/random_thansform.py:37
↓ 1 callersFunctionprune
(config)
pruned/prune.py:35
↓ 1 callersMethodrandom_crop_db
(self,img, polys, dont_care)
dataloader/random_thansform.py:214
↓ 1 callersMethodrandom_flip
(self,img, polys)
dataloader/random_thansform.py:201
↓ 1 callersMethodrandom_rotate
(self,img, polys, random_range)
dataloader/random_thansform.py:168
↓ 1 callersMethodrandom_scale
(self,img, polys, min_size)
dataloader/random_thansform.py:179
↓ 1 callersMethodreset_parameters
(self)
models/dcn/modules/deform_conv.py:47
↓ 1 callersMethodreset_parameters
(self)
models/dcn/modules/deform_conv.py:116
↓ 1 callersFunctionset_seed
(seed)
train.py:39
↓ 1 callersFunctionset_seed
(seed)
pruned/train_fintune.py:34
↓ 1 callersFunctionsolve_polys
(polys)
dataloader/random_thansform.py:15
↓ 1 callersMethodstep_function
(self, x, y)
models/head/seg_detector.py:118
↓ 1 callersFunctiontest_net
(config)
inference.py:33
↓ 1 callersFunctiontest_net
(config)
pruned/prune_inference.py:34
↓ 1 callersFunctiontrain_net
(config)
train.py:57
↓ 1 callersFunctiontrain_net
(config)
pruned/train_fintune.py:55
↓ 1 callersFunctionupdateBN
(model,config)
train.py:29
↓ 1 callersFunctionvalidate_clockwise_points
Validates that the points that the 4 points that dlimite a polygon are in clockwise order.
cal_rescall/rrc_evaluation_funcs.py:256
↓ 1 callersMethodvalidate_polygons
polygons (numpy.array, required): of shape (num_instances, num_points, 2)
dataloader/MakeSegMap.py:64
↓ 1 callersFunctionvalidate_tl_line
Validate the format of the line. If the line is not valid an exception will be raised. If maxWidth and maxHeight are specified, all points mu
cal_rescall/rrc_evaluation_funcs.py:139
FunctionPYBIND11_MODULE
models/dcn/src/deform_pool_cuda.cpp:81
FunctionPYBIND11_MODULE
models/dcn/src/deform_conv_cuda.cpp:681
Method__call__
(self, pred, ratio_list)
utils/DB_postprocesss.py:174
Method__getitem__
(self, index)
dataloader/dataload.py:67
Method__init__
(self, params)
utils/DB_postprocesss.py:22
Method__init__
(self)
utils/fuse_model.py:20
Method__init__
(self, n_classes)
utils/metrics.py:8
Method__init__
(self, fpath, title=None, resume=False)
utils/Logger.py:7
next →1–100 of 187, ranked by callers