MCPcopy Create free account

hub / github.com/Relento/lego_release / functions

Functions675 in github.com/Relento/lego_release

Method__init__
(self, delimiter="\t")
coco_related/utils.py:145
Method__init__
(self, coco_gt, iou_types)
coco_related/coco_eval.py:16
Method__init__
(self, categories, remap=True)
coco_related/coco_utils.py:13
Method__init__
(self, img_folder, ann_file, transforms)
coco_related/coco_utils.py:207
Method__init__
(self, transforms)
coco_related/transform.py:17
Method__init__
(self, prob)
coco_related/transform.py:27
Method__iter__
(self)
train_kp.py:88
Method__iter__
(self)
tu/ddp.py:107
Method__iter__
Return a batch of data
datasets/__init__.py:102
Method__len__
(self)
datasets/legokps_shape_cond_dataset.py:781
Method__len__
Return the total number of images in the dataset.
datasets/base_dataset.py:47
Method__len__
Return the number of data in the dataset
datasets/__init__.py:98
Method__next__
(self)
tu/ddp.py:117
Method__repr__
(self)
bricks/brick_info.py:161
Method__repr__
(self)
bricks/brick_info.py:924
Method__repr__
(self)
bricks/brick_info.py:965
Method__repr__
(self)
bricks/brick_info.py:1090
Method__repr__
(self)
bricks/brick_info.py:1486
Method__repr__
(self)
bricks/brick_info.py:1651
Method__str__
(self)
coco_related/utils.py:65
Method__str__
(self)
coco_related/utils.py:164
Method_current_columns
(self)
tu/loggers/html_table.py:51
Method_current_table_spec
(self)
tu/loggers/html_table.py:47
Function_neg_loss
Modified focal loss. Exactly the same as CornerNet. Runs faster and costs a little bit more memory Arguments: pred (batch x c x
models/heatmap/models/losses.py:37
Function_not_faster_neg_loss
(pred, gt)
models/heatmap/models/losses.py:65
Function_slow_neg_loss
focal loss from CornerNet
models/heatmap/models/losses.py:12
Function_slow_reg_loss
(regr, gt_regr, mask)
models/heatmap/models/losses.py:83
Methodaccumulate
(self)
coco_related/coco_eval.py:49
Methodadd_meter
(self, name, meter)
coco_related/utils.py:176
Functionagnex_ct_decode
( t_heat, l_heat, b_heat, r_heat, ct_heat, t_regr=None, l_regr=None, b_regr=None, r_regr=None,
models/heatmap/models/decode.py:134
Functionall_gather
Run all_gather on arbitrary picklable data (not necessarily tensors) Args: data: any picklable object Returns: list[data]
coco_related/utils.py:74
Methodalways_false
(self)
tu/configs.py:430
Functionarea
(rleObjs)
data_generation/utils.py:69
Functionargmax_first
(input)
models/networks.py:309
Methodastud_leave_vacant
(self)
bricks/brick_info.py:1623
Methodavg
(self, name)
models/utils.py:156
Methodavg
(self)
coco_related/utils.py:49
Functionbatch
Split an interable into batches of size `n`. If `n` does not evenly divide `iterable`, the last slice will be smaller. https://stackover
tu/configs.py:302
Functionbox_area
(x0, z0, y, x1, z1)
bricks/utils.py:22
Methodbricks
(self)
bricks/brick_info.py:1595
Functionbricks2mesh
(bricks, num_bricks=-1, canonical=False)
bricks/bricks.py:41
Functionbrightness_
(data_rng, image, gs, gs_mean, var)
models/heatmap/utils/image.py:217
Functionbuffer_plot_and_get
(fig)
util/util.py:186
Methodbuild_batch_from_list
assuming each tensor in the list has shape [brick_num, ...], and len(l) = batch_size we build a tensor of [ba
models/heatmap/lego_hg.py:153
Methodbuild_batch_from_list
assuming each tesnor in the list has shape [brick_num, ...], and len(l) = batch_size we build a tensor of [batch_size, self.n
models/heatmap/lego_hg.py:269
Methodcheck
(self, time)
tu/configs.py:419
Functionclip_magnitude
Clip the magnitude of value to be within some value. :param value: :param magnitude: :return:
tu/configs.py:31
Functioncollate_fn
(batch)
datasets/legokps_shape_cond_dataset.py:788
Functioncollate_fn
(batch)
coco_related/utils.py:234
Functioncollect_tensor
Args: tensor: expect range [0, 1] pad_value: padding: process_grid: e.g. tensor2im, tensor2flow value_ch
tu/loggers/utils.py:40
Functioncolor_aug
(data_rng, image, eig_val, eig_vec)
models/heatmap/utils/image.py:227
Functioncompute_mask_2d_kp_to_3d_translation
(bid: str, op_type, kp: torch.Tensor, connections: Tuple[torch.Tensor
lego/utils/inference_utils.py:214
Methodcompute_visuals
(self, n_vis=5)
models/hourglass_shape_cond_model.py:686
Methodcompute_visuals
(self, n_vis=5)
models/hourglass_trans_model.py:466
Functioncontrast_
(data_rng, image, gs, gs_mean, var)
models/heatmap/utils/image.py:222
Methodcreate_forward
(module, outputs_list)
models/hourglass_shape_cond_model.py:306
Methodcreate_forward
(module, outputs_list)
models/hourglass_trans_model.py:244
Functioncreate_model
(arch, heads, head_conv)
models/heatmap/models/model.py:22
Functioncrop
(img, center, scale, output_size, rot=0)
models/heatmap/utils/image.py:80
Functionctdet_decode
(heat, wh, reg=None, cat_spec_wh=False, K=100)
models/heatmap/models/decode.py:606
Functiondata_parallel
r"""Evaluates module(input) in parallel across the GPUs given in device_ids. This is the functional version of the DataParallel module. Args
models/heatmap/models/data_parallel.py:87
Functionddd_decode
(heat, rot, depth, dim, wh=None, reg=None, K=40)
models/heatmap/models/decode.py:436
Functiondecode
(rleObjs)
data_generation/utils.py:62
Functiondiagnose_network
Calculate and print the mean of average absolute(gradients) Parameters: net (torch network) -- Torch network name (str) -- the na
util/util.py:84
Functiondict_of_list__to__list_of_dicts
``` x = {'foo': [3, 4, 5], 'bar': [1, 2, 3]} ppp.dict_of_list__to__list_of_dicts(x, 3) # Output: # [ # {'foo': 3, 'bar':
tu/configs.py:139
Functiondict_to_safe_json
Convert each value in the dictionary into a JSON'able primitive. :param d: :return:
tu/configs.py:198
Methoddisplay_current_results
Args: layout: a *2D* list, each element is a dictionary with keys 'info' and 'image' epoch: iter:
tu/loggers/visualizer.py:32
Functiondisplay_differences
Display ground truth and prediction instances on the same image.
coco_related/visualize.py:170
Functiondisplay_image
(image, masks)
util/util.py:55
Functiondisplay_top_masks
Display the given image and the top few class masks.
coco_related/visualize.py:282
Functiondisplay_weight_stats
Scans all the weights in the model and returns a list of tuples that contain stats about each weight.
coco_related/visualize.py:483
Methoddist
(x, y)
bricks/brick_info.py:1301
Functiondist_all_gather_tensor
r""" gather to all ranks
tu/ddp.py:199
Functiondist_all_reduce_tensor
r""" Reduce to all ranks
tu/ddp.py:188
Functiondist_matching_hungarian
(pred, target)
lego/utils/inference_utils.py:29
Functiondist_reduce_tensor
r""" Reduce to rank 0
tu/ddp.py:176
Functiondot_map_dict_to_nested_dict
Convert something like ``` { 'one.two.three.four': 4, 'one.six.seven.eight': None, 'five.nine.ten': 10, '
tu/configs.py:53
Functiondraw_box
Draw 3-pixel width bounding boxes on the given image array. color: list of 3 int values for RGB.
coco_related/visualize.py:270
Functiondraw_boxes
Draw bounding boxes and segmentation masks with different customizations. boxes: [N, (y1, x1, y2, x2, class_id)] in image coordinates. re
coco_related/visualize.py:359
Functiondraw_dense_reg
(regmap, heatmap, center, value, radius, is_offset=False)
models/heatmap/utils/image.py:141
Functiondraw_msra_gaussian
(heatmap, center, sigma)
models/heatmap/utils/image.py:173
Functiondraw_rois
anchors: [n, (y1, x1, y2, x2)] list of anchors in image coordinates. proposals: [n, 4] the same anchors but refined to fit objects better.
coco_related/visualize.py:208
Functiondraw_umich_gaussian
(heatmap, center, radius, k=1)
models/heatmap/utils/image.py:123
Functionencode
(bimask)
data_generation/utils.py:54
Methodepoch
(self)
tu/ddp.py:121
Functionexct_decode
( t_heat, l_heat, b_heat, r_heat, ct_heat, t_regr=None, l_regr=None, b_regr=None, r_regr=None,
models/heatmap/models/decode.py:284
Functionexpand_cbrick
(brick)
debug/utils.py:66
Functionfilter_recursive
Filter out elements that are Falsy (where bool(x) is False) from potentially recursive lists. :param x_or_iterable: An element or a list
tu/configs.py:279
Functionfind_key_recursive
(obj, key)
tu/configs.py:468
Functionflip
(img)
models/heatmap/utils/image.py:11
Functionflip_lr
(x, flip_idx)
models/heatmap/models/utils.py:37
Functionflip_lr_off
(x, flip_idx)
models/heatmap/models/utils.py:46
Functionflip_tensor
(x)
models/heatmap/models/utils.py:31
Methodforward
(self, img1, img2)
tu/metrics/msssim.py:122
Methodforward
(self, img1, img2)
tu/metrics/msssim.py:142
Methodforward
(self, fragments, meshes, **kwargs)
data_generation/utils.py:45
Methodforward
(self, meshes_world, **kwargs)
data_generation/utils.py:161
Methodforward
(self, x)
models/networks.py:15
Methodforward
(self, x)
models/networks.py:147
Methodforward
(self, x)
models/networks.py:171
← previousnext →401–500 of 675, ranked by callers