MCPcopy Create free account

hub / github.com/FrozenBurning/SceneDreamer / functions

Functions542 in github.com/FrozenBurning/SceneDreamer

↓ 1 callersMethod__init__
(self, filename=None, verbose=False)
imaginaire/config.py:80
↓ 1 callersMethod__init__
(self, pcg_dataset_path)
imaginaire/model_utils/pcg_gen.py:12
↓ 1 callersMethod__init__
(self, dis_cfg, data_cfg)
imaginaire/discriminators/gancraft.py:24
↓ 1 callersMethod__init__
(self, in_channels, out_channels, kernel_size=3, stride=1, padding=1, dilation=1, groups=1, b
imaginaire/layers/residual_deep.py:326
↓ 1 callersMethod__init__
(self, weight_name, bias_name)
imaginaire/layers/weight_norm.py:77
↓ 1 callersMethod__init__
(self, network='vgg19', layers='relu_4_1', weights=None, criterion='l1', resize=False, resize
imaginaire/losses/perceptual.py:32
↓ 1 callersMethod__repr__
Print all variables.
imaginaire/config.py:52
↓ 1 callersMethod_addindent
(s_, numSpaces)
imaginaire/layers/vit.py:195
↓ 1 callersFunction_alexnet
r"""Get alexnet layers
imaginaire/losses/perceptual.py:233
↓ 1 callersMethod_build_augmentation_ops
r"""Builds sequence of augmentation ops. Returns: (list of alb.ops): List of augmentation ops.
imaginaire/utils/data.py:93
↓ 1 callersMethod_build_individual_video_frame_augmentation_ops
r"""Builds sequence of augmentation ops that will be applied to each frame in the video independently. Returns: (list of alb.ops):
imaginaire/utils/data.py:69
↓ 1 callersMethod_choose_image_key
r"""Choose key to replace with 'image' for input to albumentations. Returns: key (str): Chosen key to be replace with 'image'
imaginaire/utils/data.py:177
↓ 1 callersMethod_choose_keypoint_key
r"""Choose key to replace with 'keypoints' for input to albumentations. Returns: key (str): Chosen key to be replace with 'keypoin
imaginaire/utils/data.py:189
↓ 1 callersMethod_collate_augmented
r"""Collate separated images back into sequence, grouped by keys. Args: augmented (dict): Dict containing frames with keys of the
imaginaire/utils/data.py:246
↓ 1 callersMethod_compute_fid
r"""FID computation function to be overloaded.
imaginaire/trainers/base.py:668
↓ 1 callersMethod_create_augmentation_targets
r"""Create additional targets as required by the albumentation library. Args: inputs (dict): Keys are from self.augmentable_data_
imaginaire/utils/data.py:202
↓ 1 callersFunction_encode_onehot
r"""Make input one-hot. Args: label_map (torch.Tensor): (C, H, W) tensor containing indices. num_classes (int): Number of labels
imaginaire/model_utils/label.py:72
↓ 1 callersMethod_end_of_epoch
r"""Operations to do after an epoch. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
imaginaire/trainers/base.py:650
↓ 1 callersMethod_end_of_iteration
r"""Operations to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int):
imaginaire/trainers/base.py:640
↓ 1 callersMethod_extra_dis_step
(self, data)
imaginaire/trainers/base.py:822
↓ 1 callersMethod_extra_gen_step
(self, data)
imaginaire/trainers/base.py:750
↓ 1 callersMethod_forward_perpix_sub
r"""Per-pixel rendering forwarding Args: blk_feats: Deprecated worldcoord2 (N x H x W x L x 3 tensor): 3D world coord
imaginaire/generators/scenedreamer.py:285
↓ 1 callersMethod_forward_perpix_sub
r"""Forwarding the MLP. Args: blk_feats (K x C1 tensor): Sparse block features. worldcoord2 (N x H x W x L x 3 tensor
imaginaire/generators/gancraft_base.py:429
↓ 1 callersMethod_get_batch
r"""Sample camera poses and perform ray-voxel intersection. Args: batch_size (int): Expected batch size of the current batch
imaginaire/generators/scenedreamer.py:80
↓ 1 callersMethod_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/vit.py:150
↓ 1 callersMethod_get_conv_layer
(self, in_channels, out_channels, kernel_size, stride, padding, dilation, groups, bias
imaginaire/layers/conv.py:150
↓ 1 callersMethod_get_resize_h_w
r"""Get height and width to resize to, given smallest side. Args: height (int): Input image height. width (int): Inpu
imaginaire/utils/data.py:269
↓ 1 callersMethod_get_stride_blur
(self)
imaginaire/layers/residual_deep.py:172
↓ 1 callersMethod_get_stride_blur
(self)
imaginaire/layers/residual.py:158
↓ 1 callersFunction_get_test_dataset_object
r"""Return dataset object for the test set Args: cfg (obj): Global configuration file. Returns: (obj): PyTorch dataset objec
imaginaire/utils/dataset.py:90
↓ 1 callersFunction_get_train_and_val_dataset_objects
r"""Return dataset objects for the training and validation sets. Args: cfg (obj): Global configuration file. Returns: (dict)
imaginaire/utils/dataset.py:13
↓ 1 callersMethod_get_visualizations
r"""Compute visualization outputs. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:660
↓ 1 callersFunction_inception_v3
r"""Get inception v3 layers
imaginaire/losses/perceptual.py:249
↓ 1 callersMethod_init_hparams
r"""Initialize a dictionary of hyperparameters that we want to monitor in the HParams dashboard in tensorBoard.
imaginaire/trainers/base.py:171
↓ 1 callersMethod_init_loss
r"""Every trainer should implement its own init loss function.
imaginaire/trainers/base.py:672
↓ 1 callersMethod_init_tensorboard
r"""Initialize the tensorboard. Different algorithms might require different performance metrics. Hence, custom tensorboard initializa
imaginaire/trainers/base.py:157
↓ 1 callersMethod_perform_unpaired_augmentation
r"""Perform different data augmentation on different image inputs. Note that this operation only works Args: inputs (dict): Keys
imaginaire/utils/data.py:296
↓ 1 callersMethod_pre_save_checkpoint
r"""Implement the things you want to do before saving a checkpoint. For example, you can compute the K-mean features (pix2pixHD) before
imaginaire/trainers/base.py:229
↓ 1 callersFunction_resnet50
r"""Get resnet50 layers
imaginaire/losses/perceptual.py:278
↓ 1 callersFunction_robust_resnet50
r"""Get robust resnet50 layers
imaginaire/losses/perceptual.py:297
↓ 1 callersFunction_save_checkpoint
r"""Save network weights, optimizer parameters, scheduler parameters in the checkpoint. Args: cfg (obj): Global configuration.
imaginaire/trainers/base.py:944
↓ 1 callersMethod_start_of_epoch
r"""Operations to do before starting an epoch. Args: current_epoch (int): Current number of epoch.
imaginaire/trainers/base.py:620
↓ 1 callersMethod_start_of_iteration
r"""Operations to do before starting an iteration. Args: data (dict): Data used for the current iteration. current_it
imaginaire/trainers/base.py:628
↓ 1 callersMethod_time_before_leave_dis
r""" Record forward, backward, loss time for the discriminator update.
imaginaire/trainers/base.py:930
↓ 1 callersMethod_time_before_leave_gen
r""" Record forward, backward, loss, and model average time for the generator update.
imaginaire/trainers/base.py:916
↓ 1 callersMethod_time_before_model_avg
r""" Record time before applying model average.
imaginaire/trainers/base.py:908
↓ 1 callersFunction_vgg16
r"""Get vgg16 layers
imaginaire/losses/perceptual.py:216
↓ 1 callersFunction_vgg19
r"""Get vgg19 layers
imaginaire/losses/perceptual.py:190
↓ 1 callersFunction_vgg_face_dag
(layers)
imaginaire/losses/perceptual.py:323
↓ 1 callersMethod_write_custom_meters
r"""Dummy member function to be overloaded by the child class. In the child class, you can write down whatever you want to track.
imaginaire/trainers/base.py:209
↓ 1 callersMethod_write_loss_meters
r"""Write all loss values to tensorboard.
imaginaire/trainers/base.py:195
↓ 1 callersMethod_write_tensorboard
r"""Write values to tensorboard. By default, we will log the time used per iteration, time used per epoch, generator learning rate, and
imaginaire/trainers/base.py:177
↓ 1 callersFunctionapply_height_map
(im_map, smooth_map, height_map, land_mask)
scripts/single_terrain_gen.py:109
↓ 1 callersFunctionbezier
(x1, y1, x2, y2, a)
terrain_generator.py:150
↓ 1 callersFunctionbezier
(x1, y1, x2, y2, a)
scripts/single_terrain_gen.py:232
↓ 1 callersFunctionbezier_lut
(x1, y1, x2, y2, a)
terrain_generator.py:158
↓ 1 callersFunctionbezier_lut
(x1, y1, x2, y2, a)
scripts/single_terrain_gen.py:240
↓ 1 callersFunctionbuild_lmdb
r"""Write out lmdb containing (key, contents of filepath) to file. Args: filepaths (list): List of filepath strings. keys (list):
imaginaire/utils/lmdb.py:56
↓ 1 callersFunctioncheck_and_add
r"""Add filepath and key to list of filepaths and keys. Args: filepath (str): Filepath to add. key (str): LMDB key for this filep
imaginaire/utils/lmdb.py:19
↓ 1 callersFunctioncheck_for_mult
(a)
terrain_generator.py:25
↓ 1 callersFunctioncheck_for_mult
(a)
scripts/single_terrain_gen.py:28
↓ 1 callersMethodcoco2reduced
(self, coco)
imaginaire/model_utils/gancraft/mc_utils.py:248
↓ 1 callersFunctioncolor_cells
(vor, data, dtype=int)
terrain_generator.py:134
↓ 1 callersFunctioncolor_cells
(vor, data, dtype=int)
scripts/single_terrain_gen.py:216
↓ 1 callersFunctioncompute_normal_map
(gradient_x, gradient_y, intensity=1)
scripts/single_terrain_gen.py:66
↓ 1 callersFunctionconstruct_file_path
Get file path for our dataset structure.
imaginaire/utils/lmdb.py:14
↓ 1 callersMethodconv_blocks
( self, x, *cond_inputs, separate_cond=False, **kw_cond_inputs )
imaginaire/layers/residual_deep.py:213
↓ 1 callersMethodconv_blocks
r"""Returns the output of the residual branch. Args: x (tensor): Input tensor. cond_inputs (list of tensors) : Condit
imaginaire/layers/residual.py:187
↓ 1 callersMethodcopy_s2t
r""" Copy state_dictionary from source to target. Here source is the regular module and the target is the moving average module. Basic
imaginaire/utils/model_average.py:164
↓ 1 callersFunctioncreate_metadata
r"""Main function. Args: data_root (str): Location of dataset root. cfg (object): Loaded config object. paired (bool): Pa
imaginaire/utils/lmdb.py:132
↓ 1 callersFunctioncumsum_exclusive
(tensor, dim)
imaginaire/model_utils/gancraft/mc_utils.py:75
↓ 1 callersMethodcustom_init
r"""Weight initialization.
imaginaire/generators/scenedreamer.py:66
↓ 1 callersFunctiondiff_aug
(x, policy='', channels_first=True, **kwargs)
imaginaire/utils/diff_aug.py:34
↓ 1 callersMethoddis_forward
r"""Every trainer should implement its own discriminator forward.
imaginaire/trainers/base.py:818
↓ 1 callersMethoddis_update
r"""Update the discriminator. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:753
↓ 1 callersFunctiondownload_file
r"""Download a file from google drive or pbss by using the url. Args: URL: GDrive URL or PBSS pre-signed URL for the checkpoint.
imaginaire/utils/io.py:61
↓ 1 callersMethodend_of_epoch
r"""Things to do after an epoch. Args: data (dict): Data used for the current iteration. current_epoch (int): Curren
imaginaire/trainers/base.py:451
↓ 1 callersMethodend_of_iteration
r"""Things to do after an iteration. Args: data (dict): Data used for the current iteration. current_epoch (int): Cur
imaginaire/trainers/base.py:356
↓ 1 callersFunctionfilter_inbox
(pts, size)
terrain_generator.py:171
↓ 1 callersFunctionfilter_inbox
(pts)
scripts/single_terrain_gen.py:253
↓ 1 callersFunctionfind_cl_path
()
gridencoder/backend.py:17
↓ 1 callersFunctionfind_cl_path
()
gridencoder/setup.py:18
↓ 1 callersMethodflush
r"""Write the value in the tensorboard. Args: step (int): Epoch or iteration number.
imaginaire/utils/meters.py:106
↓ 1 callersFunctionfuse_math_min_mean_neg
r"""Fuse operation min mean for hinge loss computation of negative samples
imaginaire/losses/gan.py:23
↓ 1 callersFunctionfuse_math_min_mean_pos
r"""Fuse operation min mean for hinge loss computation of positive samples
imaginaire/losses/gan.py:14
↓ 1 callersMethodgen_forward
r"""Every trainer should implement its own generator forward.
imaginaire/trainers/base.py:746
↓ 1 callersMethodgen_update
r"""Update the generator. Args: data (dict): Data used for the current iteration.
imaginaire/trainers/base.py:676
↓ 1 callersFunctiongenerate_trees
(n, size)
terrain_generator.py:175
↓ 1 callersFunctiongenerate_trees
(n)
scripts/single_terrain_gen.py:257
↓ 1 callersMethodgetCpuAffinity
r"""Get CPU affinity
imaginaire/utils/gpu_affinity.py:34
↓ 1 callersFunctionget_all_filenames_from_list
r"""Get all filenames from list. Args: list_name (str): Path to filename list. Returns: all_filenames (dict): Folder name for
imaginaire/utils/lmdb.py:77
↓ 1 callersFunctionget_confirm_token
r"""Get confirm token Args: response: Check if the file exists. Returns:
imaginaire/utils/io.py:80
↓ 1 callersFunctionget_crop_h_w
r"""Get height and width of crop. Args: augmentation (dict): Dict of applied augmentations. Returns: (dict): - cro
imaginaire/utils/data.py:582
↓ 1 callersFunctionget_date_uid
Generate a unique id based on date. Returns: str: Return uid string, e.g. '20171122171307111552'.
imaginaire/utils/logging.py:13
↓ 1 callersFunctionget_encoder
(encoding, input_dim=3, multires=6, degree=4, num_levels=16,
encoding.py:45
↓ 1 callersFunctionget_lmdb_data_types
r"""Get the data types which should be put in LMDB. Args: cfg: Configuration object.
imaginaire/utils/lmdb.py:104
↓ 1 callersFunctionget_normal_light
(height_map_)
scripts/single_terrain_gen.py:104
↓ 1 callersFunctionget_normal_map
(im, intensity=1.0)
scripts/single_terrain_gen.py:99
↓ 1 callersMethodget_num_reduced_lbls
(self)
imaginaire/model_utils/gancraft/mc_utils.py:253
↓ 1 callersFunctionget_optimizer_for_params
r"""Return the scheduler object. Args: cfg_opt (obj): Config for the specific optimization module (gen/dis). params (obj): Parame
imaginaire/utils/trainer.py:297
← previousnext →101–200 of 542, ranked by callers