MCPcopy Create free account

hub / github.com/3DTopia/DynamicCity / functions

Functions220 in github.com/3DTopia/DynamicCity

↓ 1 callersMethodget_resume_ckpt_path
(self)
dynamic_city/trainer/vae_trainer.py:127
↓ 1 callersMethodget_sequences
(self)
dynamic_city/dataset/occ_sequence_dataset.py:58
↓ 1 callersFunctionget_trajectory
(poses)
dynamic_city/utils/data_utils.py:79
↓ 1 callersMethodget_voxel
(self, path)
dynamic_city/dataset/occ_sequence_dataset.py:62
↓ 1 callersMethodinitialize_weights
(self)
dynamic_city/diffusion/models.py:145
↓ 1 callersMethodlatent_sample
(self, mu, logvar)
dynamic_city/vae/vae.py:73
↓ 1 callersMethodload_checkpoint
(self, ckpt_path)
dynamic_city/trainer/dit_trainer.py:120
↓ 1 callersMethodload_checkpoint
(self, ckpt_path)
dynamic_city/trainer/vae_trainer.py:135
↓ 1 callersFunctionlovasz_grad
Computes gradient of the Lovasz extension w.r.t sorted errors See Alg. 1 in paper
dynamic_city/utils/lovasz.py:15
↓ 1 callersFunctionlovasz_softmax
Multi-class Lovasz-Softmax loss probas: [B, C, H, W] Variable, class probabilities at each prediction (between 0 and 1). Inte
dynamic_city/utils/lovasz.py:33
↓ 1 callersFunctionmain
()
infer_vae.py:27
↓ 1 callersFunctionmain
()
infer_dit.py:52
↓ 1 callersMethodp_sample
Sample x_{t-1} from the model at the given timestep. :param model: the model to sample from. :param x: the current tensor at
dynamic_city/diffusion/gaussian_diffusion.py:376
↓ 1 callersMethodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
dynamic_city/diffusion/gaussian_diffusion.py:419
↓ 1 callersMethodp_sample_loop_progressive
Generate samples from the model and yield intermediate samples from each timestep of diffusion. Arguments are the same as p_s
dynamic_city/diffusion/gaussian_diffusion.py:464
↓ 1 callersMethodpredict
(self, save_rollout, save_voxel, save_layout)
dynamic_city/trainer/vae_trainer.py:364
↓ 1 callersMethodpredict_batch
(self, name, batch)
dynamic_city/trainer/vae_trainer.py:396
↓ 1 callersMethodprepare
(self)
dynamic_city/dataset/hexplane_dataset.py:67
↓ 1 callersMethodq_mean_variance
Get the distribution q(x_t | x_0). :param x_start: the [N x C x ...] tensor of noiseless inputs. :param t: the number of diff
dynamic_city/diffusion/gaussian_diffusion.py:203
↓ 1 callersFunctionrequires_grad
Set requires_grad flag for all parameters in a model.
dynamic_city/utils/dit_utils.py:82
↓ 1 callersFunctionrollout_to_hexplane
(rollout, txyz)
dynamic_city/utils/hexplane_utils.py:29
↓ 1 callersMethodsave_batch_layout
(self, voxels, path, layout_folder, down_size)
dynamic_city/trainer/vae_trainer.py:432
↓ 1 callersMethodsave_batch_rollout
(self, hexplane, path, root)
dynamic_city/trainer/vae_trainer.py:420
↓ 1 callersMethodsave_batch_voxel
(self, pred, voxels, folder)
dynamic_city/trainer/vae_trainer.py:425
↓ 1 callersFunctionsave_conf
(conf, print_conf=False)
dynamic_city/utils/ckpt_utils.py:44
↓ 1 callersMethodsetup_metrics
(self)
dynamic_city/trainer/vae_trainer.py:117
↓ 1 callersMethodsetup_model
(self)
dynamic_city/trainer/dit_trainer.py:80
↓ 1 callersMethodsetup_optimizer
(self)
dynamic_city/trainer/dit_trainer.py:105
↓ 1 callersMethodsetup_optimizer
(self)
dynamic_city/trainer/vae_trainer.py:80
↓ 1 callersFunctionspace_timesteps
Create a list of timesteps to use from an original diffusion process, given the number of timesteps we want to take from equally-sized portio
dynamic_city/diffusion/respace.py:12
↓ 1 callersMethodtimestep_embedding
Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These ma
dynamic_city/diffusion/embedders.py:23
↓ 1 callersMethodtrain_epoch
(self)
dynamic_city/trainer/dit_trainer.py:220
↓ 1 callersMethodtrain_epoch
(self)
dynamic_city/trainer/vae_trainer.py:183
↓ 1 callersMethodtraining_losses
( self, model, *args, **kwargs )
dynamic_city/diffusion/respace.py:94
↓ 1 callersMethodunpatchify
(self, x)
dynamic_city/diffusion/models.py:194
↓ 1 callersMethodupdate_with_all_losses
Update the reweighting using losses from a model. Sub-classes should override this method to update the reweighting using los
dynamic_city/diffusion/timestep_sampler.py:106
↓ 1 callersMethodvalidate_epoch
(self)
dynamic_city/trainer/vae_trainer.py:225
↓ 1 callersMethodvox_to_planes
(self, x, t_vox=None)
dynamic_city/vae/encoder.py:68
↓ 1 callersMethodweights
Get a numpy array of weights, one per diffusion step. The weights needn't be normalized, but must be positive.
dynamic_city/diffusion/timestep_sampler.py:38
↓ 1 callersFunctionwrite_text
(text)
dynamic_city/utils/dist_utils.py:18
FunctionDiT_DC_1
(**kwargs)
dynamic_city/diffusion/models.py:277
FunctionDiT_DC_2
(**kwargs)
dynamic_city/diffusion/models.py:281
Method__call__
(self, x, ts, **kwargs)
dynamic_city/diffusion/respace.py:124
Method__getitem__
(self, index)
dynamic_city/dataset/occ_sequence_dataset.py:36
Method__getitem__
(self, index)
dynamic_city/dataset/hexplane_dataset.py:31
Method__init__
(self, conf)
dynamic_city/vae/decoder.py:37
Method__init__
(self, conf)
dynamic_city/vae/vae.py:15
Method__init__
(self, in_channels, out_channels)
dynamic_city/vae/decoder_blocks.py:10
Method__init__
(self, in_channels, hidden_channels, hidden_channels_high_res, num_classes, down_xyz, pos_num_freq)
dynamic_city/vae/decoder_blocks.py:61
Method__init__
(self, conf)
dynamic_city/vae/encoder.py:13
Method__init__
(self, channels, kernel_size=3, padding=1, in_channels=None, down_xyz=(0, 0, 0))
dynamic_city/vae/encoder_blocks.py:9
Method__init__
(self, channels, down_xy=(1, 1))
dynamic_city/vae/encoder_blocks.py:53
Method__init__
(self, diffusion)
dynamic_city/diffusion/timestep_sampler.py:63
Method__init__
(self, diffusion, history_per_term=10, uniform_prob=0.001)
dynamic_city/diffusion/timestep_sampler.py:121
Method__init__
(self, hidden_size, frequency_embedding_size=256)
dynamic_city/diffusion/embedders.py:13
Method__init__
(self, img_size, patch_size, in_chans, embed_dim, dropout_prob)
dynamic_city/diffusion/embedders.py:107
Method__init__
(self, img_size, patch_size, in_chans, embed_dim, layout_size, dropout_prob)
dynamic_city/diffusion/embedders.py:113
Method__init__
(self, dropout_prob, in_channels, out_channels, num_layers)
dynamic_city/diffusion/embedders.py:127
Method__init__
(self, dropout_prob, num_classes, hidden_size)
dynamic_city/diffusion/embedders.py:138
Method__init__
(self, hidden_size, num_heads, mlp_ratio=4.0, x_attn=False, **block_kwargs)
dynamic_city/diffusion/models.py:29
Method__init__
(self, hidden_size, patch_size, out_channels)
dynamic_city/diffusion/models.py:60
Method__init__
( self, *, betas, model_mean_type, model_var_type, loss_type
dynamic_city/diffusion/gaussian_diffusion.py:153
Method__init__
(self, use_timesteps, **kwargs)
dynamic_city/diffusion/respace.py:73
Method__init__
(self, n_classes, device)
dynamic_city/utils/metrics.py:9
Method__init__
(self, dim, num_heads, qkv_bias=False, attn_drop=0., proj_drop=0.)
dynamic_city/utils/attention_utils.py:33
Method__init__
(self, dataset_conf, split, max_length=-1)
dynamic_city/dataset/occ_sequence_dataset.py:11
Method__init__
(self, dataset_conf, split, max_length=-1)
dynamic_city/dataset/carlasc.py:11
Method__init__
(self, dit_conf, vae_conf, split)
dynamic_city/dataset/hexplane_dataset.py:12
Method__init__
(self, conf, device, load_data=True)
dynamic_city/trainer/dit_trainer.py:24
Method__init__
(self, conf, device)
dynamic_city/trainer/vae_trainer.py:29
Method__len__
(self)
dynamic_city/dataset/occ_sequence_dataset.py:33
Method__len__
(self)
dynamic_city/dataset/hexplane_dataset.py:28
Method_basic_init
(module)
dynamic_city/diffusion/models.py:147
Function_get_ce_function
pred: batch_size, num_classes, ... gt: batch_size, ...,
dynamic_city/utils/loss_utils.py:14
Function_get_kl_function
mus: [mu] * 6 logvars: [logvar] * 6
dynamic_city/utils/loss_utils.py:30
Function_get_lovasz_function
pred: -1, num_classes gt: -1,
dynamic_city/utils/loss_utils.py:22
Method_scale_timesteps
(self, t)
dynamic_city/diffusion/respace.py:112
Function_seed_worker
(worker_id)
dynamic_city/utils/data_utils.py:12
Methodcalc_bpd_loop
Compute the entire variational lower-bound, measured in bits-per-dim, as well as other related quantities. :param model: the
dynamic_city/diffusion/gaussian_diffusion.py:815
Methodcondition_mean
(self, cond_fn, *args, **kwargs)
dynamic_city/diffusion/respace.py:99
Methodcondition_score
(self, cond_fn, *args, **kwargs)
dynamic_city/diffusion/respace.py:102
Functioncontinuous_gaussian_log_likelihood
Compute the log-likelihood of a continuous Gaussian distribution. :param x: the targets :param means: the Gaussian mean Tensor. :para
dynamic_city/utils/diffusion_utils.py:47
Functioncreate_named_schedule_sampler
Create a ScheduleSampler from a library of pre-defined samplers. :param name: the name of the sampler. :param diffusion: the diffusion ob
dynamic_city/diffusion/timestep_sampler.py:13
Methodddim_reverse_sample
Sample x_{t+1} from the model using DDIM reverse ODE.
dynamic_city/diffusion/gaussian_diffusion.py:562
Methodddim_sample_loop
Generate samples from the model using DDIM. Same usage as p_sample_loop().
dynamic_city/diffusion/gaussian_diffusion.py:600
Methodfit
(self)
dynamic_city/trainer/vae_trainer.py:163
Methodforward
(self, hexplane)
dynamic_city/vae/decoder.py:21
Methodforward
(self, voxels)
dynamic_city/vae/vae.py:35
Methodforward
(self, x)
dynamic_city/vae/vae.py:59
Methodforward
(self, feat_maps)
dynamic_city/vae/decoder_blocks.py:26
Methodforward
(self, x)
dynamic_city/vae/decoder_blocks.py:56
Methodforward
(self, x)
dynamic_city/vae/decoder_blocks.py:110
Methodforward
(self, x)
dynamic_city/vae/encoder.py:42
Methodforward
(self, x)
dynamic_city/vae/encoder_blocks.py:40
Methodforward
(self, x)
dynamic_city/vae/encoder_blocks.py:66
Methodforward
(self, x)
dynamic_city/vae/encoder_blocks.py:92
Methodforward
(self, t)
dynamic_city/diffusion/embedders.py:43
Methodforward
(self, x, *args, **kwargs)
dynamic_city/diffusion/embedders.py:119
Methodforward
(self, x, c, y)
dynamic_city/diffusion/models.py:46
Methodforward
(self, x, c)
dynamic_city/diffusion/models.py:69
← previousnext →101–200 of 220, ranked by callers