MCPcopy Create free account

hub / github.com/Relento/lego_release / functions

Functions675 in github.com/Relento/lego_release

↓ 3 callersFunctionrandom_colors
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
coco_related/visualize.py:59
↓ 3 callersFunctionresize
A wrapper for Scikit-Image resize(). Scikit-Image generates warnings on every call to resize() if it doesn't receive the right parameters. The
coco_related/visualize.py:601
↓ 3 callersMethodsave_image
(self, image, row_identifier, col_identifier, ext='png')
util/html_table.py:162
↓ 3 callersMethodsetup
Load and print networks; create schedulers Parameters: opt (Option class) -- stores all the experiment flags; needs to be a subcl
models/base_model.py:81
↓ 3 callersMethodtest
Forward function used in test time. This function wraps <forward> function in no_grad() so we don't save intermediate steps for backprop
models/base_model.py:108
↓ 3 callersFunctiontransform_mesh
(mesh, transform)
data_generation/utils.py:92
↓ 3 callersFunctiontransform_points_screen
Transform input points from world to screen space. Args: transform: ndc transform points: torch tensor of shape (N, V, 3).
util/util.py:153
↓ 2 callersMethod__getattr__
(self, attr)
coco_related/utils.py:156
↓ 2 callersMethod__init__
(self)
tu/configs.py:445
↓ 2 callersMethod__setattr__
(self, key, value)
datasets/definition.py:13
↓ 2 callersMethod_get_mesh_from_bricks
(self, bricks: List[Brick], color: Tuple[int, int, int])
lego/utils/inference_utils.py:158
↓ 2 callersMethod_print
(self, text)
util/get_data.py:37
↓ 2 callersMethodbackward
Calculate losses, gradients, and update network weights; called in every training iteration
models/hourglass_shape_cond_model.py:724
↓ 2 callersMethodbackward
Calculate losses, gradients, and update network weights; called in every training iteration
models/hourglass_trans_model.py:490
↓ 2 callersMethodbegin_html
(self)
tu/loggers/html_table.py:60
↓ 2 callersMethodbegin_html
(self)
util/html_table.py:52
↓ 2 callersFunctionblend_
(alpha, image1, image2)
models/heatmap/utils/image.py:206
↓ 2 callersMethodcanonize_link
(self, filetype, obj, row_identifier=None, col_identifier=None)
util/html_table.py:172
↓ 2 callersFunctioncompute_2d_kp_to_3d_translation
Args: bid: rot: op_type: kp: [2,], unbatched, for a single brick in this step connections: [?, 2], unbat
lego/utils/inference_utils.py:35
↓ 2 callersFunctioncompute_bin_loss
(output, target, mask)
models/heatmap/models/losses.py:263
↓ 2 callersFunctionconvert_to_xywh
(boxes)
coco_related/coco_eval.py:154
↓ 2 callersFunctiondist_matching_greedy
(pred, target)
lego/utils/inference_utils.py:15
↓ 2 callersMethoddump_table
(vis: HTMLTableVisualizer, layout, table_name='default', col_type='auto', row_ind_suffix='')
tu/loggers/html_helper.py:15
↓ 2 callersMethodend_html
(self)
tu/loggers/html_table.py:83
↓ 2 callersMethodend_html
(self)
util/html_table.py:74
↓ 2 callersFunctionf
(x)
coco_related/utils.py:239
↓ 2 callersFunctionfind_dataset_using_name
Import the module "data/[dataset_name]_dataset.py". In the file, the class called DatasetNameDataset() will be instantiated. It has to be a s
datasets/__init__.py:20
↓ 2 callersFunctionfind_model_using_name
Import the module "models/[model_name]_model.py". In the file, the class called DatasetNameModel() will be instantiated. It has to be a subcl
models/__init__.py:26
↓ 2 callersFunctionflatten
(ls)
chamfer_distance_eval.py:88
↓ 2 callersFunctionflatten_nested_list
(nested_list, template)
lego/utils/data_generation_utils.py:61
↓ 2 callersFunctionflow2img
convert optical flow into color image :param flow_data: :return: color image
tu/flow.py:114
↓ 2 callersMethodforward
(self)
models/hourglass_shape_cond_model.py:282
↓ 2 callersMethodforward
(self)
models/hourglass_trans_model.py:233
↓ 2 callersFunctiongaussian2D
(shape, sigma=1)
models/heatmap/utils/image.py:114
↓ 2 callersFunctionget_3rd_point
(a, b)
models/heatmap/utils/image.py:65
↓ 2 callersFunctionget_affine_transform
(center, scale, rot, output_size,
models/heatmap/utils/image.py:23
↓ 2 callersMethodget_asset_filename
(self, row_identifier, col_identifier, ext)
util/html_table.py:157
↓ 2 callersFunctionget_brick_bbox_xyz
(occ_pts: List[np.ndarray])
bricks/brick_info.py:104
↓ 2 callersFunctionget_brick_canonical_mesh
(brick_type)
bricks/bricks.py:18
↓ 2 callersFunctionget_brick_ids
(brick_type_category)
bricks/brick_info.py:568
↓ 2 callersFunctionget_cbrick_enc_voxel
(cbrick, extra_point=None, extra_point_value=2)
bricks/brick_info.py:743
↓ 2 callersFunctionget_distributed_model
.. warnings:: User should call `model.to(rank)` before this function. Args: model: rank: strict: Return
tu/ddp.py:26
↓ 2 callersFunctionget_hourglass_net
(heads, img_nc, num_stacks=2, cond_emb_dim=0, downsample_2x=False)
models/heatmap/models/networks/hourglass.py:334
↓ 2 callersMethodget_index_filename
(self)
tu/loggers/html_table.py:239
↓ 2 callersFunctionget_output_dir
(model, dataset)
scripts/eval/eval_cd.py:21
↓ 2 callersFunctionget_pc_from_dict
(d)
chamfer_distance_eval.py:29
↓ 2 callersFunctionget_scale
(device='cuda')
lego/utils/camera_utils.py:9
↓ 2 callersFunctionget_slope_bricks
()
bricks/brick_info.py:215
↓ 2 callersMethodget_valid_rotations
(self)
bricks/brick_info.py:152
↓ 2 callersFunctionget_world_size
()
coco_related/utils.py:279
↓ 2 callersFunctionhighlight_edge
(image_pil, depth_map, image_shadeless)
data_generation/utils.py:282
↓ 2 callersFunctionindex_list
(l, idxs, check=True)
lego/utils/data_generation_utils.py:87
↓ 2 callersFunctionlego_decode_bid
(heat, rot, bids_all, masks, reg=None, trans=None, predict_bid=None)
models/heatmap/models/decode.py:518
↓ 2 callersFunctionload_bricks_pc_from_dict
(d: dict, return_steps=False)
debug/utils.py:136
↓ 2 callersMethodload_data
(self)
datasets/__init__.py:95
↓ 2 callersFunctionmerge_voxel
(v1, v2)
bricks/brick_info.py:748
↓ 2 callersFunctionmkdir
create a single empty directory if it didn't exist Parameters: path (str) -- a single directory path
util/util.py:143
↓ 2 callersFunctionnormalize_euler
(euler)
datasets/legokps_shape_cond_dataset.py:83
↓ 2 callersMethodprint_current_losses
print current losses on console; also save the losses to the disk Parameters: epoch (int) -- current epoch iters (int
util/visualizer.py:215
↓ 2 callersFunctionrecompute_conns
(bs, op_type, transforms, cameras, scale)
lego/utils/inference_utils.py:375
↓ 2 callersFunctionreduce_dict
Args: input_dict (dict): all the values will be reduced average (bool): whether to do average or sum Reduce the values in the
train_kp.py:45
↓ 2 callersFunctionrender_dict_simple
:param d: bricks dict :param azims: If given, overwrite dict camera parameters :param elevs: If given, overwrite dict camera parameters
debug/utils.py:268
↓ 2 callersFunctionrender_lego_scene
(mesh, cameras)
data_generation/utils.py:176
↓ 2 callersFunctionreplace_poses
(opt, d, pose_list, replace_per_step=True, subm_cbricks=None)
eval.py:29
↓ 2 callersFunctionround
(x)
bricks/brick_info.py:786
↓ 2 callersFunctionsample_colors
(n, allow_repeats)
debug/utils.py:31
↓ 2 callersFunctionscatter
r""" Slices variables into approximately equal chunks and distributes them across given GPUs. Duplicates references to objects that are no
models/heatmap/models/scatter_gather.py:6
↓ 2 callersFunctionscatter_kwargs
r"""Scatter with support for kwargs dictionary
models/heatmap/models/scatter_gather.py:29
↓ 2 callersFunctionssim
(img1, img2, window_size=11, window=None, size_average=True, full=False, val_range=None)
tu/metrics/msssim.py:19
↓ 2 callersFunctiontrim_zeros
It's common to have tensors larger than the available data and pad with zeros. This function removes rows that are all zeros. x: [rows, column
coco_related/visualize.py:512
↓ 2 callersFunctionunflatten_nested_list
(flattend_nested_list, template)
lego/utils/data_generation_utils.py:72
↓ 2 callersFunctionupconv3d
( in_channels: int, out_channels: int, kernel_size: int = 3, stride: int = 1,
models/networks.py:248
↓ 2 callersMethodupdate
(self, value, n=1)
coco_related/utils.py:25
↓ 2 callersMethodupdate_learning_rate
Update learning rates for all the networks; called at the end of every epoch
models/base_model.py:126
↓ 2 callersMethodzero_grad
(self)
models/utils.py:30
↓ 2 callersFunctionzip_keys
(exs, features=['trans', 'rot_decoded', 'bid', 'bid_decoded'], n=-1)
eval.py:172
↓ 1 callersFunction__crop
(img, pos, size)
datasets/base_dataset.py:136
↓ 1 callersFunction__flip
(img, flip)
datasets/base_dataset.py:145
↓ 1 callersMethod__init__
(self, window_size=11, size_average=True, val_range=None)
tu/metrics/msssim.py:112
↓ 1 callersMethod__init__
(self, blend_params, device="cpu")
data_generation/utils.py:41
↓ 1 callersMethod__init__
(self, opt)
models/heatmap/loss.py:12
↓ 1 callersFunction__make_power_2
(img, base, method=Image.BICUBIC)
datasets/base_dataset.py:116
↓ 1 callersFunction__print_size_warning
Print warning information about image size(only print once)
datasets/base_dataset.py:151
↓ 1 callersFunction__scale_width
(img, target_width, method=Image.BICUBIC)
datasets/base_dataset.py:127
↓ 1 callersFunction_bottom_aggregate
heat: batchsize x channels x h x w
models/heatmap/models/decode.py:63
↓ 1 callersMethod_check_bricks
(bricks)
bricks/brick_info.py:1086
↓ 1 callersFunction_coco_remove_images_without_annotations
(dataset, cat_list=None)
coco_related/coco_utils.py:103
↓ 1 callersFunction_count_visible_keypoints
(anno)
coco_related/coco_utils.py:107
↓ 1 callersMethod_download_data
(self, dataset_url, save_path)
util/get_data.py:58
↓ 1 callersFunction_flip_coco_person_keypoints
(kps, width)
coco_related/transform.py:6
↓ 1 callersMethod_flush
(self)
tu/loggers/html_table.py:236
↓ 1 callersMethod_flush
(self)
util/html_table.py:151
↓ 1 callersMethod_get_options
(r)
util/get_data.py:42
↓ 1 callersFunction_get_stack_op_type
(bid)
bricks/brick_info.py:1109
↓ 1 callersFunction_has_only_empty_bbox
(anno)
coco_related/coco_utils.py:104
↓ 1 callersFunction_has_valid_annotation
(anno)
coco_related/coco_utils.py:112
↓ 1 callersFunction_left_aggregate
heat: batchsize x channels x h x w
models/heatmap/models/decode.py:20
↓ 1 callersMethod_present_options
(self)
util/get_data.py:48
↓ 1 callersMethod_print_frames
(self, row_identifier, column, objs, classname)
tu/loggers/html_table.py:205
↓ 1 callersFunction_reg_loss
L1 regression loss Arguments: regr (batch x max_objects x dim) gt_regr (batch x max_objects x dim) mask (batch x max_ob
models/heatmap/models/losses.py:95
← previousnext →101–200 of 675, ranked by callers