MCPcopy Create free account

hub / github.com/FrozenBurning/SceneDreamer / functions

Functions542 in github.com/FrozenBurning/SceneDreamer

↓ 63 callersMethodworld2local
(self, v, is_vec=False)
imaginaire/model_utils/pcg_gen.py:48
↓ 19 callersMethod__init__
(self, in_features, out_features, bias=True, weight_norm_type='none', weight_norm_params=None
imaginaire/layers/conv.py:423
↓ 16 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, groups=1, b
imaginaire/layers/residual.py:428
↓ 12 callersMethodapply
(module, weight_name, bias_name, lr_mul, equalized)
imaginaire/layers/weight_norm.py:93
↓ 10 callersMethodeval
r"""Produce output given segmentation and other conditioning inputs. random style will be used if neither z nor style_img is provided.
imaginaire/trainers/gancraft.py:44
↓ 10 callersFunctionget_neighbor_height
(heightmap, loc0, loc1, minheight, neighbor_size=7)
imaginaire/model_utils/gancraft/camctl.py:476
↓ 10 callersFunctionget_rank
r"""Get rank of the thread.
imaginaire/utils/distributed.py:30
↓ 9 callersFunctionfilter_map
(h_map, smooth_h_map, x1, y1, x2, y2, a, b)
terrain_generator.py:165
↓ 9 callersFunctionfilter_map
(h_map, smooth_h_map, x1, y1, x2, y2, a, b)
scripts/single_terrain_gen.py:247
↓ 8 callersMethod__init__
(self, dim=-1, learned_scale=True, eps=1e-5)
imaginaire/layers/activation_norm.py:481
↓ 8 callersMethodgglbl2ggid
(self, gglbl)
imaginaire/model_utils/gancraft/mc_utils.py:233
↓ 8 callersMethodstep
r"""Performs a single optimization step. Args: closure (callable, optional): A closure that reevaluates the model
imaginaire/optimizers/madam.py:18
↓ 7 callersMethod_get_height
(self, loc0, loc1, minheight)
imaginaire/model_utils/gancraft/camctl.py:296
↓ 7 callersFunctionnoise_map
(size, res, seed, octaves=1, persistence=0.5, lacunarity=2.0)
terrain_generator.py:89
↓ 7 callersFunctionnoise_map
(size, res, seed, octaves=1, persistence=0.5, lacunarity=2.0)
scripts/single_terrain_gen.py:171
↓ 6 callersMethodfiltfilt
(self, height_history, decay=0.2)
imaginaire/model_utils/gancraft/camctl.py:309
↓ 6 callersFunctionget_activation_norm_layer
r"""Return an activation normalization layer. Args: num_features (int): Number of feature channels. norm_type (str):
imaginaire/layers/activation_norm.py:568
↓ 6 callersFunctionget_world_size
r"""Get world size. How many GPUs are available in this job.
imaginaire/utils/distributed.py:39
↓ 6 callersFunctionis_master
r"""check if current process is the master
imaginaire/utils/distributed.py:60
↓ 6 callersMethodsave_image
r"""Compute visualization images and save them to the disk. Args: path (str): Location of the file. data (dict): Data
imaginaire/trainers/base.py:530
↓ 5 callersMethod__init__
(self, in_channels, style_dim, out_channels_c=3, hidden_channels=256, leaky_relu=True)
imaginaire/generators/gancraft_base.py:132
↓ 5 callersFunctionrequires_grad
r""" Set a model to require gradient or not. Args: model (nn.Module): Neural network model. require (bool): Whether the network r
imaginaire/utils/misc.py:39
↓ 5 callersMethodwrite
r"""Record the value
imaginaire/utils/meters.py:99
↓ 4 callersMethod__init__
(self, in_features, style_features, mod_bias=True
imaginaire/model_utils/layers.py:137
↓ 4 callersMethod_get_height
(self, loc0, loc1, minheight)
imaginaire/model_utils/gancraft/camctl.py:425
↓ 4 callersFunctionget_nonlinearity_layer
r"""Return a nonlinearity layer. Args: nonlinearity_type (str): Type of nonlinear activation function. ``'none'``
imaginaire/layers/nonlinearity.py:30
↓ 4 callersFunctionget_paired_input_image_channel_number
r"""Get number of channels for the input image. Args: data_cfg (obj): Data configuration structure. Returns: num_channels (in
imaginaire/utils/data.py:518
↓ 4 callersFunctionset_random_seed
r"""Set random seeds for everything. Args: seed (int): Random seed. by_rank (bool):
imaginaire/utils/trainer.py:20
↓ 4 callersFunctionto_device
r"""Move all tensors inside data to device. Args: data (dict, list, or tensor): Input data. device (str): 'cpu' or 'cuda'.
imaginaire/utils/misc.py:53
↓ 3 callersMethod_addindent
(s_, numSpaces)
imaginaire/layers/conv.py:195
↓ 3 callersMethod_forward_global
r"""Forward the CNN Args: net_out (N x C5 x H x W tensor): Intermediate feature maps. z (N x C3 tensor): Intermediate
imaginaire/generators/gancraft_base.py:588
↓ 3 callersMethod_forward_perpix
r"""Sample points along rays, forwarding the per-point MLP and aggregate pixel features Args: blk_feats (K x C1 tensor): Deprecat
imaginaire/generators/scenedreamer.py:313
↓ 3 callersFunction_get_data_loader
r"""Return data loader . Args: cfg (obj): Global configuration file. dataset (obj): PyTorch dataset object. batch_size (i
imaginaire/utils/dataset.py:36
↓ 3 callersMethod_get_save_path
r"""Get the image save path. Args: subdir (str): Sub-directory under the main directory for saving the outputs.
imaginaire/trainers/base.py:565
↓ 3 callersMethod_single_forward
(self, input_label, input_image, weights)
imaginaire/discriminators/gancraft.py:69
↓ 3 callersFunction_wrap_model
r"""Wrap a model for distributed data parallel training. Args: model (obj): PyTorch network model. Returns: (obj): Wrapped P
imaginaire/utils/trainer.py:205
↓ 3 callersFunctionfill_cells
(vor, data)
terrain_generator.py:123
↓ 3 callersFunctionfill_cells
(vor, data)
scripts/single_terrain_gen.py:205
↓ 3 callersFunctionget_image_size
(x)
imaginaire/utils/data.py:607
↓ 3 callersFunctionget_paired_input_label_channel_number
r"""Get number of channels for the input label map. Args: data_cfg (obj): Data configuration structure. video (bool): Whether we
imaginaire/utils/data.py:536
↓ 3 callersMethodget_target_tensor
r"""Return the target vector for the binary cross entropy loss computation. Args: dis_output (tensor): Discriminator outp
imaginaire/losses/gan.py:148
↓ 3 callersFunctioninit_cudnn
r"""Initialize the cudnn module. The two things to consider is whether to use cudnn benchmark and whether to use cudnn deterministic. If cudnn
imaginaire/utils/cudnn.py:10
↓ 3 callersMethodmc2reduced
(self, mc, ign2dirt=False)
imaginaire/model_utils/gancraft/mc_utils.py:241
↓ 3 callersMethodremove
(self, module)
imaginaire/layers/weight_norm.py:149
↓ 3 callersMethodsave_checkpoint
r"""Save network weights, optimizer parameters, scheduler parameters to a checkpoint.
imaginaire/trainers/base.py:236
↓ 2 callersMethod__init__
(self)
imaginaire/layers/misc.py:12
↓ 2 callersMethod__init__
(self, gen_cfg, data_cfg)
imaginaire/generators/spade.py:30
↓ 2 callersFunction_calculate_model_size
r"""Calculate number of parameters in a PyTorch network. Args: model (obj): PyTorch network. Returns: (int): Number of param
imaginaire/utils/trainer.py:180
↓ 2 callersMethod_detach_losses
r"""Detach all logging variables to prevent potential memory leak.
imaginaire/trainers/base.py:869
↓ 2 callersMethod_flush_meters
r"""Flush all meters using the current iteration.
imaginaire/trainers/base.py:224
↓ 2 callersMethod_forward_single_direction
( self, features_a, features_b, gather_distributed)
imaginaire/losses/info_nce.py:75
↓ 2 callersMethod_linear_f
(x, w, b)
imaginaire/model_utils/layers.py:153
↓ 2 callersMethod_linear_f
(x, w, b)
imaginaire/model_utils/layers.py:227
↓ 2 callersMethod_perform_paired_augmentation
r"""Perform same data augmentation on all inputs. Args: inputs (dict): Keys are from self.augmentable_data_types. Values are
imaginaire/utils/data.py:318
↓ 2 callersMethod_time_before_backward
r""" Record time before applying backward.
imaginaire/trainers/base.py:892
↓ 2 callersMethod_time_before_forward
r""" Record time before applying forward.
imaginaire/trainers/base.py:876
↓ 2 callersMethod_time_before_loss
r""" Record time before computing loss.
imaginaire/trainers/base.py:884
↓ 2 callersMethod_time_before_step
r""" Record time before updating the weights
imaginaire/trainers/base.py:900
↓ 2 callersMethod_write_to_meters
r"""Write values to meters.
imaginaire/trainers/base.py:216
↓ 2 callersFunctionapply_imagenet_normalization
r"""Normalize using ImageNet mean and std. Args: input (4D tensor NxCxHxW): The input images, assuming to be [-1, 1]. Returns:
imaginaire/utils/misc.py:254
↓ 2 callersFunctionaverage_cells
Returns the average value of data inside every voronoi cell
terrain_generator.py:104
↓ 2 callersFunctionaverage_cells
Returns the average value of data inside every voronoi cell
scripts/single_terrain_gen.py:186
↓ 2 callersMethodbackward
(ctx, *grads)
imaginaire/losses/info_nce.py:24
↓ 2 callersMethodcompute_bias
(self, module)
imaginaire/layers/weight_norm.py:85
↓ 2 callersMethodcompute_weight
(self, module)
imaginaire/layers/weight_norm.py:81
↓ 2 callersFunctiondist_all_reduce_tensor
r""" Reduce to all ranks
imaginaire/utils/distributed.py:92
↓ 2 callersMethodforward
r"""Hyper Conv2d forward. Convolve x using the provided weight and bias. Args: x (N x C x H x W tensor): Input tensor.
imaginaire/layers/conv.py:840
↓ 2 callersFunctionget_boundary
(vor_map, size, kernel=1)
terrain_generator.py:20
↓ 2 callersFunctionget_boundary
(vor_map, kernel=1)
scripts/single_terrain_gen.py:23
↓ 2 callersFunctionget_model_optimizer_and_scheduler
r"""Return the networks, the optimizers, and the schedulers. We will first set the random seed to a fixed value so that each GPU copy will be
imaginaire/utils/trainer.py:66
↓ 2 callersFunctionget_optimizer
r"""Return the scheduler object. Args: cfg_opt (obj): Config for the specific optimization module (gen/dis). net (obj): PyTorch n
imaginaire/utils/trainer.py:278
↓ 2 callersFunctionget_scheduler
Return the scheduler object. Args: cfg_opt (obj): Config for the specific optimization module (gen/dis). opt (obj): PyTorch optim
imaginaire/utils/trainer.py:239
↓ 2 callersFunctionget_weight_norm_layer
r"""Return weight normalization. Args: norm_type (str): Type of weight normalization. ``'none'``, ``'spectral'``,
imaginaire/layers/weight_norm.py:230
↓ 2 callersFunctionhisteq
(img, alpha=1)
terrain_generator.py:40
↓ 2 callersFunctionhisteq
(img, alpha=1)
scripts/single_terrain_gen.py:122
↓ 2 callersMethodinference
r"""Compute results images for a batch of input data and save the results in the specified folder. Args: data (dict):
imaginaire/generators/spade.py:164
↓ 2 callersMethodinference_givenstyle
r"""Compute result images according to the provided camera trajectory and save the results in the specified folder. The full image is evaluate
imaginaire/generators/scenedreamer.py:479
↓ 2 callersFunctioninit_logging
r"""Create log directory for storing checkpoints and output images. Args: config_path (str): Path to the configuration file. logd
imaginaire/utils/logging.py:21
↓ 2 callersFunctionis_local_master
()
imaginaire/utils/distributed.py:65
↓ 2 callersMethodloss
r"""N+1 label GAN loss computation. Args: input_x (tensor): Output values. t_real (boolean): Is this output value for
imaginaire/model_utils/gancraft/loss.py:52
↓ 2 callersMethodloss
r"""GAN loss computation. Args: dis_output (tensor): Discriminator outputs. t_real (bool): If ``True``, uses the real
imaginaire/losses/gan.py:87
↓ 2 callersMethodmodulate
(self, x, w, b)
imaginaire/generators/gancraft_base.py:197
↓ 2 callersMethodnext_world
(self, device, world_dir, pcg_asset)
imaginaire/model_utils/pcg_gen.py:83
↓ 2 callersFunctionquantize
(data, n)
terrain_generator.py:145
↓ 2 callersFunctionquantize
(data, n)
scripts/single_terrain_gen.py:227
↓ 2 callersFunctionrelax
(points, size, k=10)
terrain_generator.py:76
↓ 2 callersFunctionrelax
(points, size, k=10)
scripts/single_terrain_gen.py:158
↓ 2 callersFunctionsave_height_map
(height_map, file_name)
scripts/single_terrain_gen.py:17
↓ 2 callersFunctionslice_tensor
r"""Slice all tensors from start to end. Args: data (dict, list or tensor): Input data.
imaginaire/utils/misc.py:146
↓ 2 callersFunctionsplit_labels
r"""Split concatenated labels into their parts. Args: labels (torch.Tensor): Labels obtained through concatenation. label_lengths
imaginaire/utils/misc.py:14
↓ 2 callersMethodstart_of_iteration
r"""Things to do before an iteration. Args: data (dict): Data used for the current iteration. current_iteration (int)
imaginaire/trainers/base.py:337
↓ 2 callersFunctiontensor2label
r"""Convert segmentation mask tensor to color image. Args: segmap (tensor) of If tensor then (NxCxHxW) or (NxTxCxHxW) or (CxHxW).
imaginaire/utils/visualization/common.py:110
↓ 2 callersFunctiontrans_vec_homo
r"""3-dimensional Homogeneous matrix and regular vector multiplication Convert v to homogeneous vector, perform M-V multiplication, and convert ba
imaginaire/model_utils/pcg_gen.py:196
↓ 2 callersFunctionvoronoi
(points, size)
terrain_generator.py:46
↓ 2 callersFunctionvoronoi
(points, size)
scripts/single_terrain_gen.py:128
↓ 2 callersFunctionweights_init
r"""Initialize weights in the network. Args: init_type (str): The name of the initialization scheme. gain (float): The parameter
imaginaire/utils/init_weight.py:9
↓ 2 callersFunctionweights_rescale
()
imaginaire/utils/init_weight.py:78
↓ 2 callersMethodwrite_metrics
r"""Write metrics to the tensorboard.
imaginaire/trainers/base.py:553
↓ 1 callersFunctionPCGGen
(map_size, nbins = 256, seed = 3407)
terrain_generator.py:193
↓ 1 callersMethod__init__
(self, input_dim=3, num_levels=16, level_dim=2, per_level_scale=2, base_resolution=16, log2_hashmap_size=19, d
gridencoder/grid.py:94
next →1–100 of 542, ranked by callers