MCPcopy Create free account

hub / github.com/Relento/lego_release / functions

Functions675 in github.com/Relento/lego_release

↓ 1 callersFunction_right_aggregate
heat: batchsize x channels x h x w
models/heatmap/models/decode.py:34
↓ 1 callersMethod_set_bricks_pc_mesh
(self)
lego/utils/inference_utils.py:170
↓ 1 callersFunction_sigmoid
(x)
models/heatmap/models/utils.py:8
↓ 1 callersFunction_top_aggregate
heat: batchsize x channels x h x w
models/heatmap/models/decode.py:48
↓ 1 callersFunction_topk_channel
(scores, K=40)
models/heatmap/models/decode.py:103
↓ 1 callersMethod_transform
(self, img, random_ksize=False)
datasets/legokps_shape_cond_dataset.py:451
↓ 1 callersMethodadd_hbrick
(self, brick: HBrick, op_type, verbose=False, debug=False, only_check=False, hbrick_info=None)
bricks/brick_info.py:1215
↓ 1 callersMethodadd_vbrick
(self, brick: VBrick, op_type=0, verbose=False, debug=False, only_check=False, vbrick_info=None)
bricks/brick_info.py:1199
↓ 1 callersFunctionaffine_transform
(pt, t)
models/heatmap/utils/image.py:59
↓ 1 callersFunctionapply_mask
Apply the given mask to the image.
util/util.py:30
↓ 1 callersFunctionassign_masks
:param emb: [H, W] :param semantic_mask: [H, W] :return:
models/utils.py:66
↓ 1 callersMethodbegin_table
(self, name, columns_or_spec_id)
tu/loggers/html_table.py:109
↓ 1 callersMethodbegin_table
(self, name, columns)
util/html_table.py:86
↓ 1 callersFunctionbrick2mesh
(brick, color=None)
bricks/bricks.py:27
↓ 1 callersFunctioncache_stack_op_type
()
bricks/brick_info.py:1130
↓ 1 callersFunctioncanonize_brick_type
As some brick types are visually indistinguiable, map them to a uniform brick_type.
datasets/legokps_shape_cond_dataset.py:133
↓ 1 callersFunctioncanonize_euler
(euler, brick_type=None, rots=None, ignore_symmetry=False, return_rots=False)
datasets/legokps_shape_cond_dataset.py:95
↓ 1 callersFunctioncanonize_euler_helper
(rots, euler)
datasets/legokps_shape_cond_dataset.py:108
↓ 1 callersFunctioncompute_candidates_iou
(bricks: List[Brick], bricks_pc, transform, cameras, mask_ref)
lego/utils/inference_utils.py:221
↓ 1 callersFunctioncompute_color
compute optical flow color map :param u: horizontal optical flow :param v: vertical optical flow :return:
tu/flow.py:154
↓ 1 callersFunctioncompute_iou
(mask_a, mask_b)
models/utils.py:131
↓ 1 callersFunctioncompute_iou
(mask_a, mask_b)
lego/utils/inference_utils.py:225
↓ 1 callersFunctioncompute_matches
Finds matches between prediction and ground truth instances. Returns: gt_match: 1-D array. For each GT box it has the index of the matched
coco_related/visualize.py:543
↓ 1 callersFunctioncompute_overlaps_masks
Computes IoU overlaps between two sets of masks. masks1, masks2: [Height, Width, instances]
coco_related/visualize.py:521
↓ 1 callersFunctioncompute_rot_loss
(output, target_bin, target_res, mask)
models/heatmap/models/losses.py:269
↓ 1 callersFunctioncompute_xz_to_3d_translation
:param bid: :param rot: :param op_type: :param xs: list :param zs: list :param xz_type: 'pos' or 'top_center', showing whethe
lego/utils/inference_utils.py:240
↓ 1 callersFunctionconsume_prefix_in_state_dict_if_present
(state_dict, prefix)
models/hourglass_shape_cond_model.py:805
↓ 1 callersFunctionconsume_prefix_in_state_dict_if_present
(state_dict, prefix)
models/hourglass_trans_model.py:572
↓ 1 callersFunctionconv2d
( in_channels: int, out_channels: int, kernel_size: int = 3, stride: int = 1,
models/networks.py:208
↓ 1 callersFunctionconvert_coco_poly_to_mask
(segmentations, height, width)
coco_related/coco_utils.py:30
↓ 1 callersFunctionconvert_to_coco_api
(ds)
coco_related/coco_utils.py:143
↓ 1 callersFunctioncreateIndex
(self)
coco_related/coco_eval.py:199
↓ 1 callersFunctioncreate_common_coco_eval
(coco_eval, img_ids, eval_imgs)
coco_related/coco_eval.py:181
↓ 1 callersFunctioncreate_distributed_dataset
(opt, val=False)
train_kp.py:39
↓ 1 callersMethoddefine_table
(self, columns)
tu/loggers/html_table.py:89
↓ 1 callersMethoddisplay_current_results
Display current results on visdom; save current results to an HTML file. Parameters: visuals (OrderedDict) - - dictionary of imag
util/visualizer.py:108
↓ 1 callersFunctiondisplay_images
Display the given set of images, optionally with titles. images: list or array of image tensors in HWC format. titles: optional. A list of tit
coco_related/visualize.py:35
↓ 1 callersFunctiondisplay_instances
boxes: [num_instance, (y1, x1, y2, x2, class_id)] in image coordinates. masks: [height, width, num_instances] class_ids: [num_instances]
coco_related/visualize.py:83
↓ 1 callersFunctiondisplay_table
Display values in a table format. table: an iterable of rows, and each row is an iterable of values.
coco_related/visualize.py:469
↓ 1 callersFunctionelevate_pts
(area_pts, new_z)
bricks/utils.py:6
↓ 1 callersMethodend_table
(self)
tu/loggers/html_table.py:129
↓ 1 callersMethodend_table
(self)
util/html_table.py:106
↓ 1 callersFunctioneuler2id
(e, bid=None, valid_rots=None, ignore_symmetry=False, symmetry_aware_label=False)
datasets/legokps_shape_cond_dataset.py:54
↓ 1 callersFunctioneval_d
(pred_d, target_d, compute_final=False)
chamfer_distance_eval.py:60
↓ 1 callersFunctionevaluate
Run per image evaluation on given images and store results (a list of dict) in self.evalImgs :return: None
coco_related/coco_eval.py:299
↓ 1 callersMethodforward
Run forward pass; called by both functions <optimize_parameters> and <test>.
models/base_model.py:72
↓ 1 callersMethodgather_options
Initialize our parser with basic options(only once). Add additional model-specific and dataset-specific options. These options are def
options/base_options.py:92
↓ 1 callersFunctiongaussian
(window_size, sigma)
tu/metrics/msssim.py:7
↓ 1 callersMethodget_base_contour_transformed
(self)
bricks/brick_info.py:1079
↓ 1 callersFunctionget_brick_enc_voxel
:param bid: brick type. :param extra_point: If extra_point and extra_point_value are set, the corresponding position in the voxel will be
bricks/brick_info.py:728
↓ 1 callersFunctionget_brick_occ
(opt, cbrick)
eval.py:98
↓ 1 callersFunctionget_cam_params
(mesh)
debug/utils.py:44
↓ 1 callersMethodget_candidate_mask
(self, azim=None, elev=None, cameras=None)
lego/utils/inference_utils.py:201
↓ 1 callersMethodget_canonical_pose
(self, position, rotation)
bricks/brick_info.py:1191
↓ 1 callersFunctionget_cbrick_rotations
Check valid rotations by rotation occupancy grid
bricks/brick_info.py:768
↓ 1 callersFunctionget_coco
(root, image_set, transforms, mode='instances')
coco_related/coco_utils.py:220
↓ 1 callersFunctionget_consider_symmetry
()
bricks/brick_info.py:46
↓ 1 callersFunctionget_dir
(src_point, rot_rad)
models/heatmap/utils/image.py:70
↓ 1 callersFunctionget_distributed_dataloader
.. warning:: In distributed mode, calling the :meth:`set_epoch` method at the beginning of each epoch **before** creating the :c
tu/ddp.py:53
↓ 1 callersFunctionget_elements
(bricks)
debug/utils.py:225
↓ 1 callersFunctionget_global_definition
()
datasets/definition.py:22
↓ 1 callersMethodget_image_dir
Return the directory that stores images
util/html.py:36
↓ 1 callersMethodget_index_filename
(self)
util/html_table.py:154
↓ 1 callersMethodget_info
(self)
bricks/brick_info.py:146
↓ 1 callersFunctionget_misc_bricks
()
bricks/brick_info.py:371
↓ 1 callersMethodget_occ_with_rotation
return the occ that are applied with rotation transform
bricks/brick_info.py:1468
↓ 1 callersFunctionget_rank
()
coco_related/utils.py:285
↓ 1 callersFunctionget_stack_op_type
(bid)
bricks/brick_info.py:1139
↓ 1 callersFunctiongrayscale
(image)
models/heatmap/utils/image.py:197
↓ 1 callersMethodhtml
(self)
tu/loggers/html_table.py:55
↓ 1 callersFunctioninit_b2_types
()
bricks/brick_info.py:1004
↓ 1 callersFunctioninit_brick_list
()
bricks/brick_info.py:399
↓ 1 callersFunctioninit_ddp_with_launch
(local_rank, **kwargs)
tu/ddp.py:16
↓ 1 callersFunctioninit_weights
Initialize network weights. Parameters: net (network) -- network to be initialized init_type (str) -- the name of an initializa
models/networks.py:76
↓ 1 callersMethodinitialize
Define the common options that are used in both training and test.
options/base_options.py:24
↓ 1 callersFunctionis_main_process
()
coco_related/utils.py:291
↓ 1 callersFunctionlego_box_coords
(l, h, w)
bricks/brick_info.py:69
↓ 1 callersFunctionlego_decode_bid_shape_cond
(heat, rot, bid_counter, reg=None, trans=None)
models/heatmap/models/decode.py:475
↓ 1 callersFunctionlighting_
(data_rng, image, alphastd, eigval, eigvec)
models/heatmap/utils/image.py:201
↓ 1 callersFunctionloadRes
Load result file and return a result api object. Args: self (obj): coco object with ground truth annotations resFile (str): f
coco_related/coco_eval.py:234
↓ 1 callersMethodload_networks
Load all the networks from the disk. Parameters: epoch (int) -- current epoch; used in the file name '%s_net_%s.pth' % (epoch, na
models/base_model.py:173
↓ 1 callersFunctionmain
()
train_kp.py:112
↓ 1 callersFunctionmain
()
scripts/dump_occs_h5.py:10
↓ 1 callersFunctionmake_cnv_layer
(inp_dim, out_dim)
models/heatmap/models/networks/hourglass.py:117
↓ 1 callersFunctionmake_color_wheel
Generate color wheel according Middlebury color code :return: Color wheel
tu/flow.py:199
↓ 1 callersFunctionmake_hg_layer
(kernel, dim0, dim1, mod, layer=convolution, **kwargs)
models/heatmap/models/networks/hourglass.py:307
↓ 1 callersFunctionmake_inter_layer
(dim)
models/heatmap/models/networks/hourglass.py:113
↓ 1 callersFunctionmake_merge_layer
(dim)
models/heatmap/models/networks/hourglass.py:91
↓ 1 callersFunctionmake_pool_layer
(dim)
models/heatmap/models/networks/hourglass.py:98
↓ 1 callersFunctionmake_unpool_layer
(dim)
models/heatmap/models/networks/hourglass.py:102
↓ 1 callersFunctionmap_nested_list
Args: fn: template: WARNINGS: 'Any' cannot be a list *list_of_nested_list: list_of_nested_list[0], list_of_n
lego/utils/data_generation_utils.py:5
↓ 1 callersFunctionmatching_inst_mask_idxs
:param mask_gt: [H, W] :param mask_pred: [H, W] :return: mask_pred with reordered indices to that match gt mask
models/utils.py:104
↓ 1 callersMethodmedian
(self)
coco_related/utils.py:44
↓ 1 callersFunctionmerge
(img_ids, eval_imgs)
coco_related/coco_eval.py:159
↓ 1 callersFunctionmsssim
(img1, img2, window_size=11, size_average=True, val_range=None, normalize=None)
tu/metrics/msssim.py:73
↓ 1 callersFunctionndc_meshgrid
(size)
models/heatmap/lego_hg.py:314
↓ 1 callersFunctionocc_inds2fmap
(occ_inds, overlap=True)
models/networks.py:317
↓ 1 callersMethodoptimize_parameters
Calculate losses, gradients, and update network weights; called in every training iteration
models/base_model.py:77
↓ 1 callersMethodparallel_apply
(self, replicas, inputs, kwargs)
models/heatmap/models/data_parallel.py:80
↓ 1 callersMethodplot_current_losses
display the current losses on visdom display: dictionary of error labels and values Parameters: epoch (int) -- current
util/visualizer.py:189
← previousnext →201–300 of 675, ranked by callers