MCPcopy Create free account

hub / github.com/QiuhongAnnaWei/LEGO-Net / functions

Functions328 in github.com/QiuhongAnnaWei/LEGO-Net

↓ 32 callersFunctionlog
(line, filepath=None, toPrint=True)
train.py:44
↓ 15 callersFunctionearthmover_assignment
p2attr: if given has shape (numpt x any), and p2[i] and p2attr[i] correspond to same pt in p2. Return: p1_assignmemt = assigned destination
data/distance.py:118
↓ 14 callersFunctionnp_add_gaussian_gaussian_noise
x: [B, nobj, d] noise_level_stdev: 0.1: 68% < 1 stddev=0.1 (higher probability closer to 0), 95% < 0.2, 99.7% < 0.3
data/utils.py:282
↓ 14 callersFunctionnp_rotate
vs : [numpt, 2], length perserved. rads: [numpt, 1], in radians, counterclockwise Rotates each vs[i] by rads[i] countercloc
data/utils.py:352
↓ 12 callersMethodcompute
(self,x)
ConDor_torch/spherical_harmonics/spherical_cnn.py:74
↓ 12 callersFunctionlog
(line, filepath=None, toPrint=True)
eval/integer_relations.py:29
↓ 12 callersFunctionnp_single_angle_between
Returns the angle in radians between 1d vectors v1 and v2, in [0, pi]
data/utils.py:401
↓ 11 callersFunctionnp_add_gaussian_gaussian_angle_noise
x: [batch_size, maxnumobj, ang_dim=2=[cos(th), sin(th)] ]
data/utils.py:298
↓ 11 callersFunctiontable_to_chair
Data is to be in range [-1, 1] for x and y, and there are 2 tables of table_width and table_height. table: table center coordinates, num
data/tablechair_horizontal.py:23
↓ 10 callersMethod__init__
(self,k)
model/models.py:202
↓ 9 callersFunctionearthmover_distance
Output the Earthmover distance between the two given points. - p1: an iterable of hashable iterables of numbers (list of tuples) - p2:
data/distance.py:40
↓ 8 callersFunctioncomplex_D_wigner
(l, a, b, c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:266
↓ 8 callersMethodparse_cla
cla: [nobj, cla_dim] nobj: scalar, number of objects in the scene cla_idx: [nobj,], each object's class type index.
data/TDFront.py:119
↓ 7 callersFunctioncomplex_wigner_
(l, a, b, c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:187
↓ 7 callersFunctioneuclidean_distance
x, y: 1-dimensional array of any length
data/distance.py:18
↓ 7 callersFunctionfind_numobj
sha: shape [14,2]. Returns the number of objects in the scene that corresponds to ang
data/utils.py:636
↓ 7 callersFunctionnp_rotate_wrapper
vs : [batch_size, numobj, 2] rads: [batch_size, numobj, 1], positive is counterclockwise Returns rotated vs, which has shape [batch_
data/utils.py:364
↓ 7 callersFunctionreal_conj
(A, Q)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:278
↓ 7 callersFunctiontrig2ang
Convert given unit vector [cos, sin] to angle (in radians) with respect to (1, 0). cossin: [num_angle, 2] Return: [num_angle, 1] angl
data/utils.py:324
↓ 6 callersFunctiongather_idx
x - B, N, 3 idx - B, N, K, 2/3 out - B, N, K, 3
ConDor_torch/utils/group_points.py:26
↓ 6 callersMethodread_one_scene
Reads data from boxes npz files scenepath: if not provided, randomly choose a scene. Not the full path, just the
data/TDFront.py:698
↓ 6 callersMethodvisualize_tdf_2d
Visualize one given scene. scene: has shape [:, pos_d+ang_d+siz_d+cla_d]. Visualized on top of trajectory (if applicable).
data/TDFront.py:766
↓ 5 callersMethod__init__
(self, **kwargs)
model/transformer.py:6
↓ 5 callersFunction_gen_tablechair_circle_batch
Generate scene of 2 tables, each with 2-6 chairs in circular formation. Variable data length is delt with through padding with 0s at the end
data/tablechair_circle.py:38
↓ 5 callersFunction_gen_tablechair_horizontal_batch
Generate scene of 2 tables, each with 6 chairs. batch_pos: position has size [batch_size, 14, 2]=[x, y], where [:,0:2,:] are the 2 tables,
data/tablechair_horizontal.py:40
↓ 5 callersMethodforward_pass
(self, batch, batch_idx, return_outputs=False)
ConDor_torch/trainers/ConDor_trainer.py:50
↓ 5 callersMethodgen_3dfront
Main entry point for generating data form the 3D-FRONT dataset. batch_size: number of scenes abs_pos/ang: if True, the retur
data/TDFront.py:543
↓ 5 callersFunctionmonomial_basis_3D
(d)
ConDor_torch/spherical_harmonics/kernels.py:78
↓ 5 callersFunctionnp_angle_between
v1 and v2: [batch_size, numobj, 2], last dim = (cos(th), sin(th)) Returns angles in [-pi, pi] from v1 to v2 (order matters), of shape [batch_
data/utils.py:407
↓ 5 callersFunctionreal_D_wigner
(l, a, b, c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:285
↓ 4 callersMethod__init__
Defines a function that embeds x to (x, sin(2^k x), cos(2^k x), ...) in_channels: number of input channels (3 for both xyz and direct
model/layers.py:213
↓ 4 callersFunctionclebsch_gordan_
(j1, j2, J, m1, m2, M)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:29
↓ 4 callersFunctioncomplex_to_real_sh
(l)
ConDor_torch/spherical_harmonics/wigner_matrix.py:42
↓ 4 callersFunctiondo_segment
Given three collinear points p, q, r, checks if q lies on line segment pr
data/utils.py:114
↓ 4 callersFunctiongen_data_tablechair_circle_bimodal
Preferred way of data generation. Generates scene of 2 'round' tables, each with a variable number of chairs in circular formation at a fix
data/tablechair_circle.py:101
↓ 4 callersFunctiongen_data_tablechair_horizontal_bimodal
Preferred way of data generation. Generates a scene of 2 tables, each with 6 chairs in rectangular formation. The tables may be hor
data/tablechair_horizontal.py:178
↓ 4 callersFunctiongen_data_tablechair_shape_bimodal
Generates a scene of 1 table with 2 sets of chairs, one on each side of the table. The 2 sets of chairs have different shapes.
data/tablechair_shape.py:100
↓ 4 callersMethodget_xyminmax
ptxy: [numpt, 2] numpy array
data/TDFront.py:163
↓ 4 callersFunctionnp_normalize
Returns a copy of v normalized along the last dimension, same shape as input
data/utils.py:396
↓ 4 callersFunctionorientation
Find the orientation of an ordered triplet (p,q,r) 0 : Collinear points; 1 : Clockwise points; 2 : Counterclockwise
data/utils.py:120
↓ 4 callersFunctionpslqres_isvalid
tocrosscheck: needed because it may not be relevant depending on the context. Checks whether the pslq results counts as a valid integer relat
eval/integer_relations.py:38
↓ 4 callersFunctionreset_padding
Needed as the number of chairs is variable. toreset(2): [batch_size, maxnumobj, 2] numchairs : [batch_size, 2]
data/tablechair_circle.py:26
↓ 4 callersMethodvisualize_tdf_2d_denoise
Graph the given one scene/room on 2d xy plane. traj: [iter, numobj, pos_d+ang_d+siz_d+cla_d] args: needed only for 3d visuali
data/TDFront.py:742
↓ 3 callersMethod_gen_3dfront_batch_preload
Reads from preprocessed data npz files (already normalized) to return data for batch_size number of scenes. Variable data length is dealt
data/TDFront.py:408
↓ 3 callersFunctionapply_rot
input, labels: [batch_size=numscene, numobj, >=2] where [:,:,0:2] is pos and [:,:,2:4] (if exists) is [cos(th), sin(th)]. [:,:
data/utils.py:85
↓ 3 callersFunctionassociated_legendre_polynomial
(l, m, z, r2)
ConDor_torch/spherical_harmonics/kernels.py:8
↓ 3 callersFunctionchamfer_distance
x and y: have dimension [numpt, featperpt], represent point clouds
data/distance.py:23
↓ 3 callersFunctionclebsch_gordan_coeff
(j1, j2, J, m1, m2, M)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:68
↓ 3 callersFunctiondenoise_meta
Denoise for each noise level, each model, each denoise method. models: list of model to run the denoising process with. model_names:
train.py:307
↓ 3 callersMethodemd_by_class
For each scene, for each object, assign it a target object of the same class based on its position. Performs earthmover distance assignme
data/TDFront.py:170
↓ 3 callersFunctioneuler_rot_zyz
(a, b ,c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:58
↓ 3 callersMethodgen_random_selection
(self, batch_size, data_partition='trainval')
data/TDFront.py:354
↓ 3 callersMethodget_objbbox_corneredge
pos: [pos_dim,] ang_rad: [1,1], rotation from (1,0) in radians siz: [siz_dim,], full bbox length corners: corner
data/TDFront.py:143
↓ 3 callersFunctionload_checkpoint
(model, model_fp)
train.py:52
↓ 3 callersFunctionpslq_core
ele_in_aset: [neleinaset, pos+ang] returns number of linear relations found, number of trials made (taking #dimtocheck into account)
eval/integer_relations.py:49
↓ 3 callersFunctionreal_spherical_harmonic
(l, m, x, y, z, poly = False)
ConDor_torch/spherical_harmonics/kernels.py:34
↓ 3 callersFunctionrepresentation_type
(x)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:154
↓ 3 callersFunctiontorch_fibonnacci_sphere_sampling
(num_pts)
ConDor_torch/spherical_harmonics/spherical_cnn.py:5
↓ 2 callersMethod__init__
out_dim: feature size
model/floorplan_encoder.py:112
↓ 2 callersFunction_gen_tablechair_shape_batch
Generate scene of 2 tables, each with 6 chairs. batch_pos: position has size [batch_size, 7, 2]=[x, y], where [:,0:2,:] are the 2 tables,
data/tablechair_shape.py:46
↓ 2 callersFunctionbinom
(n, k)
ConDor_torch/spherical_harmonics/kernels.py:48
↓ 2 callersMethodclever_add_noise
noisy_orig_pos/ang/sha: [batch_size, maxnobj, pos_dim/ang_dim/sha_dim] noisy_orig_fpoc: [batch_size, maxnfpoc, pos_dim]
data/TDFront.py:207
↓ 2 callersFunctioncompute_patches_
(source, target, sq_distance_mat, num_samples, spacing, radius, source_mask=None)
ConDor_torch/utils/group_points.py:55
↓ 2 callersFunctionconvert_tensor_2_numpy
Convert pytorch tensor to numpy
ConDor_torch/utils/pointcloud_utils.py:39
↓ 2 callersFunctiondist_2_gt
trajs: [nscene, niter, nobj, pos+ang+siz+cla], in [-1,1] returns: how far an obj is from (emd) ground truth, in [-1,1], averaged across scene
eval/denoise_res_eval.py:29
↓ 2 callersFunctiondo_intersect
returns true if the line segment 'p1q1' and 'p2q2' intersect. p1, q1, p2, q2: 1d iterables
data/utils.py:132
↓ 2 callersFunctiongenerate_6_points
Used as ground truth. Duplicated from data_rect.py to circumvent circular logic in importing. Default scale=0.25 gives x in range [-0.5, 0.5]
data/utils.py:47
↓ 2 callersFunctiongenerate_pixel_centers
(m,n)
data/utils.py:21
↓ 2 callersFunctionh5_to_dictionary
(h5_file_path)
data/utils.py:450
↓ 2 callersFunctionindex_points
Input: points: input points data, [B, N, C] idx: sample index data, [B, S] Return: new_points:, indexed points data,
model/layers.py:39
↓ 2 callersMethodis_valid
A object's pos + ang is valid if the object's bounding box does not intersect with any floor plan wall or other object's bounding box edge.
data/TDFront.py:276
↓ 2 callersFunctionkd_pooling_1d
Expects kd tree indexed points x - [B, N_{in}, 3] out - [B, N_{out}, 3]
ConDor_torch/utils/pooling.py:3
↓ 2 callersFunctionkdtree_indexing
(x, depth=None, return_idx = False)
ConDor_torch/utils/pointcloud_utils.py:84
↓ 2 callersMethodlog_loss_dict
(self, loss_dictionary, val = False)
ConDor_torch/trainers/ConDor_trainer.py:162
↓ 2 callersFunctionloss_fn
feat1, feat2: [batch_size, 6 or 14, 2]
train.py:70
↓ 2 callersFunctionmonoms_3D
(d)
ConDor_torch/spherical_harmonics/spherical_cnn.py:13
↓ 2 callersFunctionrandom_rotate
x - B, N, 3 out - B, N, 3 Randomly rotate point cloud
ConDor_torch/utils/train_utils.py:5
↓ 2 callersMethodreset_padding
nobjs: [batch_size] toreset(2): [batch_size, maxnumobj, 2]
data/TDFront.py:134
↓ 2 callersFunctionscatter
target[idx] += vals, but allowing for repeats in idx
data/utils.py:491
↓ 2 callersFunctionscene_linear_relations_all
pos: [nobj, pos+ang] Returns number of linear relations found, number of trials made. Looks at all the subsets in the scene.
eval/integer_relations.py:112
↓ 2 callersFunctionscene_linear_relations_neighbor
pos: [nobj, pos+ang] Returns number of linear relations found, number of trials made. For each object in a scene: 1. Sel
eval/integer_relations.py:131
↓ 2 callersFunctionscene_linear_relations_sample
pos: [nobj, pos+ang] Returns number of linear relations found, number of trials made. Looks at n_sampledsubset number of subsets.
eval/integer_relations.py:85
↓ 2 callersFunctiontorch_clebsch_gordan_decomposition_
(j1, j2, sparse=False, l_max=None, dtype=torch.float32)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:144
↓ 2 callersFunctiontorch_monomial_basis_3D_idx
(d)
ConDor_torch/spherical_harmonics/kernels.py:92
↓ 2 callersFunctiontorch_polyhedrons
(poly)
ConDor_torch/spherical_harmonics/spherical_cnn.py:207
↓ 2 callersFunctiontorch_rotate_wrapper
vs : [batch_size, numobj, 2] rads: [batch_size, numobj, 1], positive is counterclockwise Returns rotated vs, which has shape [batch_
data/utils.py:384
↓ 2 callersFunctionz_rot
(a)
ConDor_torch/spherical_harmonics/wigner_matrix.py:46
↓ 2 callersFunctionzernike_kernel_3D_monomial_basis
(n, l, monoms_basis)
ConDor_torch/spherical_harmonics/kernels.py:216
↓ 1 callersFunctionA
(m, x, y)
ConDor_torch/spherical_harmonics/kernels.py:19
↓ 1 callersFunctionB
(m, x, y)
ConDor_torch/spherical_harmonics/kernels.py:25
↓ 1 callersMethod__data_generation
(self, index)
ConDor_torch/datasets/h5_dataset.py:80
↓ 1 callersMethod__init__
(self, l_max, l_max_out=None, transpose=False, num_source_points=None)
ConDor_torch/spherical_harmonics/kernels.py:114
↓ 1 callersMethod__init__
(self, in_channels, out_channels, bn_momentum = 0.75, apply_norm = True, activation = None)
ConDor_torch/models/layers.py:44
↓ 1 callersFunctionadjust_parameters
()
train.py:449
↓ 1 callersFunctionangles_to_circle_scene
angles: numpy array of shape (numpt,1), in radians center: (2,), center coordinate of circular formation radius: scalar, radius of ci
data/utils.py:55
↓ 1 callersFunctionapply_layers
(x, layers)
ConDor_torch/models/layers.py:6
↓ 1 callersFunctioncomplex_conj
(A, Q)
ConDor_torch/spherical_harmonics/clebsch_gordan_decomposition.py:281
↓ 1 callersFunctioncomplex_wigner_1_
(a, b, c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:152
↓ 1 callersFunctioncomplex_wigner_2_
(a, b, c)
ConDor_torch/spherical_harmonics/wigner_matrix.py:62
↓ 1 callersFunctioncomplex_wigner_matrix_unit_test_
(l, a, b, c, X)
ConDor_torch/spherical_harmonics/wigner_matrix.py:414
next →1–100 of 328, ranked by callers