MCPcopy Create free account

hub / github.com/ActiveVisionLab/DFNet / functions

Functions256 in github.com/ActiveVisionLab/DFNet

↓ 16 callersFunctionrender
(H, W, focal, chunk=1024*32, rays=None, c2w=None, ndc=True, near=0., far=1.,
script/models/rendering.py:353
↓ 12 callersFunctionsave_image_saliancy
Modification based on TORCHVISION.UTILS ::param: tensor (batch, channel, H, W)
script/utils/utils.py:41
↓ 9 callersMethod__init__
(self, feat_dim=12)
script/feature/model.py:393
↓ 9 callersFunctionnormalize
Normalize a vector.
dataset_loaders/load_Cambridge.py:116
↓ 8 callersFunctionfix_coord_supp
supplementary fix_coord() for direct matching Inputs: args: parsed argument pose: pose [N, 3, 4] device: cpu or gpu Ou
script/dm/direct_pose_model.py:147
↓ 8 callersFunctionget_rays
(H, W, focal, c2w)
script/models/ray_utils.py:5
↓ 7 callersFunctionmse
(image_pred, image_gt, valid_mask=None, reduction='mean')
script/models/metrics.py:4
↓ 7 callersFunctionnormalize
Normalize a vector.
dataset_loaders/load_7Scenes.py:134
↓ 6 callersFunctionrender_path
(args, render_poses, hwf, chunk, render_kwargs, gt_imgs=None, savedir=None, render_factor=0, single_gt_img=Fal
script/models/rendering.py:403
↓ 6 callersMethodsave_checkpoint
Saves model when validation loss decrease.
script/dm/callbacks.py:90
↓ 5 callersFunctionget_embedder
(multires, i=0, reduce_mode=-1, epochToMaxFreq=-1)
script/models/nerf.py:133
↓ 5 callersFunctionget_embedder
(multires, i=0, reduce_mode=-1, epochToMaxFreq=-1)
script/models/nerfw.py:166
↓ 5 callersFunctioninference_pose_regression
Inference the Pose Regression Network Inputs: args: parsed argument data: Input image in shape (batchsize, channels, H, W)
script/dm/direct_pose_model.py:50
↓ 5 callersFunctionpreprocess_data
(inputs, device)
script/dm/pose_model.py:18
↓ 4 callersFunctionPoseLoss
(args, pose_, pose, device)
script/feature/misc.py:321
↓ 4 callersMethod__init__
:param mapnet: the MapNet (two CNN blocks inside the green block in Fig. 2 of paper). Not to be confused with MapNet, the model!
script/dm/pose_model.py:306
↓ 4 callersFunctioncreate_nerf
Instantiate NeRF's MLP model.
script/models/nerfw.py:356
↓ 4 callersFunctiondisable_model_grad
set whole model to requires_grad=False, this is for nerf model
script/dm/direct_pose_model.py:39
↓ 4 callersFunctiondisable_model_grad
set whole model to requires_grad=False, this is for nerf model
script/feature/direct_feature_matching.py:52
↓ 4 callersFunctionfix_coord
fix coord for 7 Scenes to align with llff style dataset
dataset_loaders/load_7Scenes.py:279
↓ 4 callersFunctionfix_coord
fix coord for 7 Scenes to align with llff style dataset
dataset_loaders/load_Cambridge.py:277
↓ 4 callersFunctionfreeze_bn_layer_train
set batchnorm to eval() it is useful to align train and testing result
script/utils/utils.py:30
↓ 4 callersFunctioninference_pose_regression
Inference the Pose Regression Network Inputs: args: parsed argument data: Input image in shape (batchsize, channels, H, W)
script/feature/direct_feature_matching.py:63
↓ 4 callersFunctionload_exisiting_model
Load a pretrained DFNet model
script/dm/direct_pose_model.py:93
↓ 4 callersFunctionnormalize
(x)
dataset_loaders/seven_scenes.py:147
↓ 4 callersFunctionnormalize
(x)
dataset_loaders/cambridge_scenes.py:67
↓ 3 callersFunctionPoseLoss
(args, pose_, pose, device)
script/feature/direct_feature_matching.py:138
↓ 3 callersMethod__init__
Initialize one adaptation layer for every extraction point. Args: hypercolumn_layers: The list of the hypercolumn layer names.
script/feature/efficientnet.py:32
↓ 3 callersFunctioncenter_poses
Center the poses so that we can use NDC. See https://github.com/bmild/nerf/issues/34 Inputs: poses: (N_images, 3, 4) pos
dataset_loaders/load_7Scenes.py:167
↓ 3 callersFunctioncenter_poses
Center the poses so that we can use NDC. See https://github.com/bmild/nerf/issues/34 Inputs: poses: (N_images, 3, 4) pos
dataset_loaders/load_Cambridge.py:149
↓ 3 callersFunctioncompute_frustums_overlap
(pose0, pose1, sampling_frustum, K, x_res, y_res)
dataset_loaders/load_7Scenes.py:101
↓ 3 callersFunctionconfig_parser
()
script/dm/options.py:2
↓ 3 callersFunctionfreeze_bn_layer
freeze bn layer by not require grad but still behave differently when model.train() vs. model.eval()
script/utils/utils.py:18
↓ 3 callersFunctionget_error_in_q
Convert Rotation matrix to quaternion, then calculate the location errors. original from PoseNet Paper
script/dm/pose_model.py:162
↓ 3 callersFunctionget_error_in_q
Convert Rotation matrix to quaternion, then calculate the location errors. original from PoseNet Paper
script/feature/misc.py:117
↓ 3 callersFunctionload_7Scenes_dataloader
Data loader for Pose Regression Network
dataset_loaders/load_7Scenes.py:422
↓ 3 callersFunctionload_Cambridge_dataloader
Data loader for Pose Regression Network
dataset_loaders/load_Cambridge.py:349
↓ 2 callersFunctionPoseLoss
(args, pose_, pose, device)
script/dm/direct_pose_model.py:87
↓ 2 callersMethod__init__
(self, feat_dim=12, places365_model_path='')
script/feature/dfnet.py:83
↓ 2 callersFunctionbatchify
Constructs a version of 'fn' that applies to smaller batches.
script/models/nerf.py:13
↓ 2 callersFunctioncamera_frustum_initializer
initialize camera frustum parameters
dataset_loaders/load_7Scenes.py:45
↓ 2 callersFunctionfeature_loss
Compute Feature MSE Loss :param: feature_rgb, [C,H,W] or [C, N_rand] :param: feature_target, [C,H,W] or [C, N_rand] :param: img_in, True
script/feature/direct_feature_matching.py:114
↓ 2 callersFunctionload_image
(filename, loader=default_loader)
dataset_loaders/seven_scenes.py:128
↓ 2 callersFunctionload_image
(filename, loader=default_loader)
dataset_loaders/cambridge_scenes.py:48
↓ 2 callersFunctionperturb_rotation
(c2w, theta, phi, psi=0)
script/feature/misc.py:437
↓ 2 callersFunctionplot_features
print feature maps :param features: (3, [batch, H, W]) or [3, batch, H, W] :param path: save image path :param isList: wether the fea
script/utils/utils.py:86
↓ 2 callersFunctionprepare_batch_render
Break batch of images into rays
script/dm/direct_pose_model.py:112
↓ 2 callersFunctionpreprocess_features_for_loss
transform output features from the network to required shape for computing loss :param: feature [L, B, C, H, W] # L stands for level of featu
script/feature/direct_feature_matching.py:41
↓ 2 callersFunctionraw2outputs_NeRFW
Convert NeRFW fine network output to rendered colors This version is implemented in nerf_pl https://github.com/kwea123/nerf_pl/tree/nerfw Inp
script/models/rendering.py:132
↓ 2 callersFunctionrender_nerfw_imgs
render nerfw imgs, save unscaled pose and results
script/feature/misc.py:203
↓ 2 callersFunctionrgb_loss
Compute RGB MSE Loss, original from NeRF Paper
script/feature/direct_feature_matching.py:95
↓ 2 callersFunctionrgb_to_yuv
r""" From Kornia. Convert an RGB image to YUV. .. image:: _static/img/rgb_to_yuv.png The image data is assumed to be in the range of
dataset_loaders/utils/color.py:4
↓ 2 callersFunctionrun_network
Prepares inputs and applies network 'fn'.
script/models/nerf.py:23
↓ 2 callersFunctionsave_image_saliancy_single
Modification based on TORCHVISION.UTILS, save single feature map ::param: tensor (batch, channel, H, W)
script/utils/utils.py:56
↓ 2 callersFunctiontrain_feature
(args, train_dl, val_dl, test_dl, hwf, i_split, near, far)
script/run_feature.py:232
↓ 2 callersFunctiontrain_feature_matching
finetune pretrained PoseNet using NeRF
script/feature/direct_feature_matching.py:412
↓ 2 callersFunctiontrain_nerf
(args, train_dl, val_dl, hwf, i_split, near, far, render_poses=None, render_img=None)
script/run_nerf.py:82
↓ 2 callersFunctiontriplet_loss_hard_negative_mining_plus
triplet loss with hard negative mining, four cases. inspired by http://www.bmva.org/bmvc/2016/papers/paper119/paper119.pdf section3.3 :para
script/feature/misc.py:399
↓ 1 callersFunctionRT2QT
processes the 1x12 raw pose from dataset by aligning and then normalizing :param poses_in: N x 12 :param mean_t: 3 :param std_t: 3 :return:
dataset_loaders/seven_scenes.py:23
↓ 1 callersMethod__init__
(self, coef=1)
script/models/losses.py:6
↓ 1 callersMethod_aggregate_feature2
assume target and nerf rgb are inferenced at the same time, slice target batch and nerf batch and output stacked features :pa
script/feature/model.py:415
↓ 1 callersMethod_aggregate_feature2
assume target and nerf rgb are inferenced at the same time, slice target batch and nerf batch and output stacked features :pa
script/feature/model.py:471
↓ 1 callersFunctionaverage_poses
Calculate the average pose, which is then used to center all poses using @center_poses. Its computation is as follows: 1. Compute the cen
dataset_loaders/load_7Scenes.py:138
↓ 1 callersFunctionaverage_poses
Calculate the average pose, which is then used to center all poses using @center_poses. Its computation is as follows: 1. Compute the cen
dataset_loaders/load_Cambridge.py:120
↓ 1 callersFunctionbatchify_rays
Render rays in smaller minibatches to avoid OOM.
script/models/rendering.py:339
↓ 1 callersFunctioncompute_error_in_q
(args, dl, model, device, results, batch_size=1)
script/dm/pose_model.py:79
↓ 1 callersFunctioncompute_error_in_q
(args, dl, model, device, results, batch_size=1)
script/feature/misc.py:49
↓ 1 callersMethodcreate_embedding_fn
(self)
script/models/nerf.py:71
↓ 1 callersMethodcreate_embedding_fn
(self)
script/models/nerfw.py:105
↓ 1 callersFunctioncreate_nerf
Instantiate NeRF's MLP model.
script/models/nerf.py:270
↓ 1 callersMethodembed
(self, inputs)
script/models/nerf.py:94
↓ 1 callersMethodembed
(self, inputs)
script/models/nerfw.py:128
↓ 1 callersMethodembed_DNeRF
Nerfie paper section 3.5 Coarse-to-Fine Deformation Regularization
script/models/nerf.py:112
↓ 1 callersMethodembed_DNeRF
Nerfie paper section 3.5 Coarse-to-Fine Deformation Regularization
script/models/nerfw.py:145
↓ 1 callersFunctioneval
()
script/train.py:138
↓ 1 callersFunctioneval_on_batch
Perform 1 step of eval
script/dm/direct_pose_model.py:169
↓ 1 callersFunctioneval_on_batch
Perform 1 step of eval
script/feature/direct_feature_matching.py:178
↓ 1 callersFunctioneval_on_epoch
Perform 1 epoch of training with batch
script/dm/direct_pose_model.py:208
↓ 1 callersFunctioneval_on_epoch
(args, dl, model, optimizer, loss_func, device)
script/dm/pose_model.py:326
↓ 1 callersFunctioneval_on_epoch
Perform 1 epoch of training with batch
script/feature/direct_feature_matching.py:215
↓ 1 callersFunctiongenerate_sampling_frustum
(step, depth, K, f, cx, cy, x_res, y_res)
dataset_loaders/load_7Scenes.py:76
↓ 1 callersMethodget_embed_weight
Nerfie Paper Eq.(8)
script/models/nerf.py:102
↓ 1 callersMethodget_embed_weight
Nerfie Paper Eq.(8)
script/models/nerfw.py:135
↓ 1 callersFunctioninitK
(f, cx, cy)
dataset_loaders/load_7Scenes.py:69
↓ 1 callersFunctioninv_warp_image_batch
Inverse warp images in batch :param img: batch of images tensor [batch_size, 1, H, W] :param mat_homo_inv: batch
script/utils/utils.py:270
↓ 1 callersFunctionis_inside_frustum
(p, x_res, y_res)
dataset_loaders/load_7Scenes.py:66
↓ 1 callersFunctionis_inside_frustum
(p, x_res, y_res)
dataset_loaders/load_Cambridge.py:48
↓ 1 callersFunctionload_7Scenes_dataloader_NeRF
Data loader for NeRF
dataset_loaders/load_7Scenes.py:497
↓ 1 callersFunctionload_Cambridge_dataloader_NeRF
Data loader for NeRF
dataset_loaders/load_Cambridge.py:420
↓ 1 callersFunctionmain
test model
script/feature/efficientnet.py:273
↓ 1 callersFunctionmain
visualizes the dataset
dataset_loaders/seven_scenes.py:357
↓ 1 callersFunctionmain
visualizes the dataset
dataset_loaders/cambridge_scenes.py:257
↓ 1 callersFunctionndc_rays
(H, W, focal, near, rays_o, rays_d)
script/models/ray_utils.py:27
↓ 1 callersFunctionperturb_rotation
(c2w, theta, phi, psi=0)
dataset_loaders/load_7Scenes.py:117
↓ 1 callersFunctionperturb_rotation
(c2w, theta, phi, psi=0)
dataset_loaders/load_Cambridge.py:99
↓ 1 callersFunctionperturb_single_render_pose
Inputs: poses: (3, 4) x: translational perturb range angle: rotation angle perturb range in degrees Outputs:
script/feature/misc.py:448
↓ 1 callersFunctionprepare_batch_render
Break batch of images into rays
script/feature/direct_feature_matching.py:144
↓ 1 callersFunctionprepare_data
prepare data for ready to train posenet, return dataloaders
script/dm/prepare_data.py:10
↓ 1 callersFunctionprint_feature_examples
print feature maps ::param: features
script/utils/utils.py:72
↓ 1 callersFunctionprocess_poses_logq
processes the 1x12 raw pose from dataset by aligning and then normalizing produce logq :param poses_in: N x 12 :param mean_t: 3 :param std_
dataset_loaders/seven_scenes.py:98
next →1–100 of 256, ranked by callers