MCPcopy Create free account

hub / github.com/Zhiyuan-R/Tiger-Diffusion / functions

Functions261 in github.com/Zhiyuan-R/Tiger-Diffusion

↓ 13 callersMethod_extract
Extract some coefficients at specified timesteps, then reshape to [batch_size, 1, 1, 1, 1, ...] for broadcasting purposes.
test_generation.py:94
↓ 13 callersMethod_extract
Extract some coefficients at specified timesteps, then reshape to [batch_size, 1, 1, 1, 1, ...] for broadcasting purposes.
train_generation.py:140
↓ 4 callersMethod__init__
( self, input_size=32, tok_num = 256, hidden_size=128, latent_size=512
model/transformer_branch.py:171
↓ 4 callersFunctionvisualize_pointcloud_batch
(path, pointclouds, pred_labels, labels, categories, vis_label=False, target=None, elev=30, azim=225)
utils/visualize.py:181
↓ 3 callersFunction_pairwise_EMD_CD_
(sample_pcs, ref_pcs, batch_size, accelerated_cd=True)
metrics/evaluation_metrics.py:66
↓ 3 callersMethod_prior_bpd
(self, x_start)
train_generation.py:337
↓ 3 callersMethodbackward
(ctx, graddist1, graddist2, gradidx1, gradidx2)
metrics/ChamferDistancePytorch/chamfer2D/dist_chamfer_2D.py:49
↓ 3 callersFunctionmodulate
(x, shift, scale)
model/transformer_branch.py:11
↓ 3 callersFunctionrotation_matrix
Return the rotation matrix associated with counterclockwise rotation about the given axis by theta radians.
train_generation.py:19
↓ 2 callersMethod__init__
(self, in_channels, out_channels, kernel_size, resolution, attention=False, dropout=0.1, with
modules/pvconv.py:65
↓ 2 callersMethod__init__
(self, in_channels, out_channels, include_coordinates=True)
modules/pointnet.py:12
↓ 2 callersFunction_kldiv
(A, B)
utils/metrics.py:219
↓ 2 callersFunction_kldiv
(A, B)
metrics/evaluation_metrics.py:286
↓ 2 callersMethod_vb_terms_bpd
(self, denoise_fn, data_start, data_t, t, clip_denoised: bool, return_pred_xstart: bool)
train_generation.py:296
↓ 2 callersMethodbackward
(ctx, grad_cost)
metrics/PyTorchEMD/emd.py:17
↓ 2 callersMethodcalc_bpd_loop
(self, denoise_fn, x_start, clip_denoised=True)
train_generation.py:348
↓ 2 callersFunctionconstrain_fn
(x, t)
test_generation.py:369
↓ 2 callersFunctioncopy_source
(file, output_dir)
utils/file_utils.py:23
↓ 2 callersFunctiondistChamfer
:param a: Pointclouds Batch x nul_points x dim :param b: Pointclouds Batch x nul_points x dim :return: -closest point on b of points
metrics/ChamferDistancePytorch/chamfer_python.py:18
↓ 2 callersFunctionentropy_of_occupancy_grid
Given a collection of point-clouds, estimate the entropy of the random variables corresponding to occupancy-grid activation patterns. Inputs:
utils/metrics.py:155
↓ 2 callersFunctionentropy_of_occupancy_grid
Given a collection of point-clouds, estimate the entropy of the random variables corresponding to occupancy-grid activation patterns. Inputs:
metrics/evaluation_metrics.py:219
↓ 2 callersFunctionfscore
Calculates the F-score between two point clouds with the corresponding threshold value. :param dist1: Batch, N-Points :param dist2: Batch
metrics/ChamferDistancePytorch/fscore.py:3
↓ 2 callersFunctionget_box_corners_3d
:param centers: coords of box centers, FloatTensor[N, 3] :param headings: heading angles, FloatTensor[N, ] :param sizes: box sizes, Float
modules/frustum.py:92
↓ 2 callersFunctionget_dataset
(dataroot, npoints,category,use_mask=False)
test_generation.py:381
↓ 2 callersFunctionget_dataset
(dataroot, npoints,category)
train_generation.py:492
↓ 2 callersFunctionget_output_dir
(prefix, exp_id)
utils/file_utils.py:46
↓ 2 callersFunctioniterate_in_chunks
Yield successive 'n'-sized chunks from iterable 'l'. Note: last chunk will be smaller than l if n doesn't divide l perfectly.
utils/metrics.py:6
↓ 2 callersFunctionknn
(Mxx, Mxy, Myy, k, sqrt=False)
metrics/evaluation_metrics.py:103
↓ 2 callersFunctionlgan_mmd_cov
(all_dist)
metrics/evaluation_metrics.py:135
↓ 2 callersMethodload_point_cloud
(path)
datasets/partnet.py:130
↓ 2 callersMethodmulti_gpu_wrapper
(self, f)
train_generation.py:465
↓ 2 callersFunctionnew_x_chain
(x, num_chain)
train_generation.py:625
↓ 2 callersFunctionnormal_kl
KL divergence between normal distributions parameterized by mean and log-variance.
train_generation.py:70
↓ 2 callersMethodp_losses
Training loss calculation
train_generation.py:305
↓ 2 callersMethodp_mean_variance
(self, denoise_fn, data, t, clip_denoised: bool, return_pred_xstart: bool)
train_generation.py:188
↓ 2 callersMethodp_sample
Sample from the model
test_generation.py:187
↓ 2 callersMethodp_sample
Sample from the model
train_generation.py:233
↓ 2 callersMethodq_posterior_mean_variance
Compute the mean and variance of the diffusion posterior q(x_{t-1} | x_t, x_0)
train_generation.py:172
↓ 2 callersMethodq_sample
Diffuse the data (t == 0 means diffused for 1 step)
train_generation.py:159
↓ 2 callersFunctionsample_point_cloud_by_n
resample point cloud to given number of points
datasets/partnet.py:80
↓ 2 callersFunctionset_seed
(opt)
utils/file_utils.py:55
↓ 2 callersFunctionsetup_logging
(output_dir)
utils/file_utils.py:28
↓ 2 callersFunctionsetup_output_subdirs
(output_dir, *subfolders)
utils/file_utils.py:68
↓ 1 callersMethod__init__
(self, args, betas, loss_type: str, model_mean_type: str, model_var_type:str)
test_generation.py:274
↓ 1 callersMethod__init__
(self, args, betas, loss_type: str, model_mean_type: str, model_var_type:str)
train_generation.py:403
↓ 1 callersMethod__init__
(self, root_dir, subdirs, tr_sample_size=10000, te_sample_size=10000, split='train', scale=1.
datasets/shapenet_data_pc.py:39
↓ 1 callersFunction_convert_categories
(categories)
datasets/shapenet_data_sv.py:40
↓ 1 callersFunction_jsdiv
another way of computing JSD
utils/metrics.py:217
↓ 1 callersFunction_jsdiv
another way of computing JSD
metrics/evaluation_metrics.py:283
↓ 1 callersFunction_linear_gn_relu
(in_channels, out_channels)
model/tiger.py:10
↓ 1 callersFunction_linear_gn_relu
(in_channels, out_channels)
model/pvcnn_generation.py:9
↓ 1 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
test_generation.py:178
↓ 1 callersMethod_predict_xstart_from_eps
(self, x_t, t, eps)
train_generation.py:224
↓ 1 callersMethod_render
(self, cache_path, depth_pth, depth_minmax_pth)
datasets/shapenet_data_sv.py:206
↓ 1 callersMethodall_kl
(self, x0, clip_denoised=True)
train_generation.py:413
↓ 1 callersMethodbackward
(ctx, grad_output)
modules/functional/sampling.py:28
↓ 1 callersFunctionball_query
:param centers_coords: coordinates of centers, FloatTensor[B, 3, M] :param points_coords: coordinates of points, FloatTensor[B, 3, N]
modules/functional/ball_query.py:8
↓ 1 callersFunctioncollect_data_id
(split_dir, classname, phase)
datasets/partnet.py:91
↓ 1 callersFunctioncompute_all_metrics
(sample_pcs, ref_pcs, batch_size)
metrics/evaluation_metrics.py:150
↓ 1 callersFunctioncreate_mlp_components
(in_channels, out_channels, classifier=False, dim=2, width_multiplier=1)
model/tiger.py:14
↓ 1 callersFunctioncreate_mlp_components
(in_channels, out_channels, classifier=False, dim=2, width_multiplier=1)
model/pvcnn_generation.py:13
↓ 1 callersFunctioncreate_pointnet2_fp_modules
(fp_blocks, in_channels, sa_in_channels, embed_dim=64, use_att=False, dropout=
model/tiger.py:133
↓ 1 callersFunctioncreate_pointnet2_fp_modules
(fp_blocks, in_channels, sa_in_channels, embed_dim=64, use_att=False, dropout=
model/pvcnn_generation.py:130
↓ 1 callersFunctioncreate_pointnet2_sa_components
(sa_blocks, extra_feature_channels, embed_dim=64, use_att=False, dropout=0.
model/tiger.py:73
↓ 1 callersFunctioncreate_pointnet2_sa_components
(sa_blocks, extra_feature_channels, embed_dim=64, use_att=False, dropout=0.
model/pvcnn_generation.py:72
↓ 1 callersFunctiondistChamfer
(a, b)
metrics/evaluation_metrics.py:16
↓ 1 callersFunctiondownsample_point_cloud
downsample points by random choice :param points: (n, 3) :param n_pts: int :return:
datasets/partnet.py:58
↓ 1 callersFunctionearth_mover_distance
Earth Mover Distance (Approx) Args: xyz1 (torch.Tensor): (b, 3, n1) xyz2 (torch.Tensor): (b, 3, n1) transpose (bool): whe
metrics/PyTorchEMD/emd.py:24
↓ 1 callersMethodeval
(self)
test_generation.py:332
↓ 1 callersMethodeval
(self)
train_generation.py:462
↓ 1 callersFunctionevaluate_gen
(opt, ref_pcs, logger)
test_generation.py:405
↓ 1 callersMethodforward
(self, input1, input2)
metrics/ChamferDistancePytorch/chamfer2D/dist_chamfer_2D.py:70
↓ 1 callersMethodforward
(self, input1, input2)
metrics/ChamferDistancePytorch/chamfer5D/dist_chamfer_5D.py:72
↓ 1 callersMethodforward
(self, input1, input2)
metrics/ChamferDistancePytorch/chamfer3D/dist_chamfer_3D.py:73
↓ 1 callersMethodforward
Forward pass of DiT. x: (N, C, H, W, D) tensor of spatial inputs (images or latent representations of images) t: (N, C, L) te
model/transformer_branch.py:225
↓ 1 callersMethodgen_sample_traj
(self, shape, device, freq, noise_fn=torch.randn, clip_denoised=True,keep_running=False)
train_generation.py:453
↓ 1 callersMethodgen_samples
(self, shape, device, noise_fn=torch.randn, constrain_fn=lambda x, t:x, clip_denoised=Fals
test_generation.py:317
↓ 1 callersMethodgen_samples
(self, shape, device, noise_fn=torch.randn, clip_denoised=True, keep_r
train_generation.py:446
↓ 1 callersFunctiongenerate
(model, opt)
test_generation.py:442
↓ 1 callersFunctiongetGradNorm
(net)
train_generation.py:50
↓ 1 callersFunctionget_betas
(schedule_type, b_start, b_end, time_num)
test_generation.py:339
↓ 1 callersFunctionget_betas
(schedule_type, b_start, b_end, time_num)
train_generation.py:469
↓ 1 callersFunctionget_dataloader
(opt, train_dataset, test_dataset=None)
train_generation.py:514
↓ 1 callersMethodget_loss_iter
(self, data, noises=None)
train_generation.py:434
↓ 1 callersMethodget_pc_stats
(self, idx)
datasets/shapenet_data_sv.py:152
↓ 1 callersMethodget_pc_stats
(self, idx)
datasets/shapenet_data_pc.py:137
↓ 1 callersMethodget_timestep_embedding
(self, timesteps, device)
model/tiger.py:244
↓ 1 callersMethodget_timestep_embedding
(self, timesteps, device)
model/pvcnn_generation.py:210
↓ 1 callersMethodinitialize_weights
(self)
model/transformer_branch.py:207
↓ 1 callersFunctionjensen_shannon_divergence
(P, Q)
utils/metrics.py:195
↓ 1 callersFunctionjensen_shannon_divergence
(P, Q)
metrics/evaluation_metrics.py:261
↓ 1 callersFunctionjsd_between_point_cloud_sets
Computes the JSD between two sets of point-clouds, as introduced in the paper ```Learning Representations And Generative Models For 3D Point Cloud
metrics/evaluation_metrics.py:205
↓ 1 callersFunctionmain
(opt)
test_generation.py:485
↓ 1 callersFunctionmain
()
train_generation.py:753
↓ 1 callersMethodmulti_gpu_wrapper
(self, f)
test_generation.py:335
↓ 1 callersFunctionnorm
(v, f)
train_generation.py:45
↓ 1 callersMethodp_mean_variance
(self, denoise_fn, data, t, clip_denoised: bool, return_pred_xstart: bool)
test_generation.py:142
↓ 1 callersMethodp_sample_loop
Generate samples keep_running: True if we run 2 x num_timesteps, False if we just run num_timesteps
test_generation.py:205
↓ 1 callersMethodp_sample_loop
Generate samples keep_running: True if we run 2 x num_timesteps, False if we just run num_timesteps
train_generation.py:249
↓ 1 callersMethodp_sample_loop_trajectory
Generate samples, returning intermediate images Useful for visualizing how denoised images evolve over time Args: r
train_generation.py:267
next →1–100 of 261, ranked by callers