MCPcopy Create free account

hub / github.com/ActiveVisionLab/DFNet / functions

Functions256 in github.com/ActiveVisionLab/DFNet

Methodforward
(self, x, upsampleH=224, upsampleW=224)
script/feature/model.py:375
Methodforward
Currently under dev. :param x: image blob () :param upsampleH: New H obsolete :param upsampleW: New W obsolete
script/feature/model.py:428
Methodforward
Currently under dev. :param x: image blob () :param return_feature: True to extract features, False only return pose predicti
script/feature/model.py:484
Functiongenerate_render_pose
(poses, bds)
dataset_loaders/load_7Scenes.py:210
Functiongenerate_render_pose
(poses, bds)
dataset_loaders/load_Cambridge.py:208
Functiongenerate_sampling_frustum
(step, depth, K, f, cx, cy, x_res, y_res)
dataset_loaders/load_Cambridge.py:58
Functionget_rays_np
(H, W, focal, c2w)
script/models/ray_utils.py:18
Functionget_render_error_in_q
use nerf render imgs instead of use real imgs
script/feature/misc.py:133
Functiongetrelpose
get relative pose from abs pose pose1 to abs pose pose2 R^{v}_{gt} = R_v * R_gt.T :param: pose1 [B, 3, 4] :param: pose2 [B, 3, 4] re
script/run_feature.py:87
FunctioninitK
(f, cx, cy)
dataset_loaders/load_Cambridge.py:51
MethodisBestModel
Check if current model the best one. get early stop counter, if counter==0: it means current model has the best validation loss
script/dm/callbacks.py:102
Functionload_dataset
load posenet training data
script/dm/prepare_data.py:37
Functionload_depth_image
(filename)
dataset_loaders/seven_scenes.py:139
Functionload_depth_image
(filename)
dataset_loaders/cambridge_scenes.py:59
Methodload_weights_from_keras
(self, weights)
script/models/nerf.py:241
Functionlognuniform
sample from log uniform distribution between 0.01~1
script/run_feature.py:83
Functionmasked_loss
compute loss only in masked region :param criterion: loss function :param f1: [3, batch_size, H, W] :param f2: [3, batch_size, H, W]
script/feature/misc.py:332
Functionnormalize_features
Find unit norm of channel wise feature :param: tensor, img tensor (C,H,W)
script/feature/direct_feature_matching.py:102
Functionnormalize_recenter_pose
normalize xyz into [-1, 1], and recenter pose
dataset_loaders/seven_scenes.py:158
Functionnormalize_recenter_pose
normalize xyz into [-1, 1], and recenter pose
dataset_loaders/cambridge_scenes.py:78
Functionon_batch_begin
(self)
script/dm/callbacks.py:13
Functionon_batch_end
(self)
script/dm/callbacks.py:14
Functionon_epoch_begin
(self)
script/dm/callbacks.py:11
Functionon_epoch_end
(self)
script/dm/callbacks.py:12
Functionon_loss_begin
(self)
script/dm/callbacks.py:15
Functionon_loss_end
(self)
script/dm/callbacks.py:16
Functionon_step_begin
(self)
script/dm/callbacks.py:17
Functionon_step_end
(self)
script/dm/callbacks.py:18
Functionon_train_begin
(self)
script/dm/callbacks.py:9
Functionon_train_end
(self)
script/dm/callbacks.py:10
Functionperturb_render_pose
Inputs: poses: (3, 4) bds: bounds x: translational perturb range angle: rotation angle perturb range in degrees
dataset_loaders/load_7Scenes.py:238
Functionperturb_render_pose
Inputs: poses: (3, 4) bds: bounds x: translational perturb range angle: rotation angle perturb range in degrees
dataset_loaders/load_Cambridge.py:236
Functionperturb_single_render_pose_norm
Inputs: poses: (3, 4) x: translational perturb range angle: rotation angle perturb range in degrees Outputs:
script/feature/misc.py:485
Functionprocess_poses_q
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:70
Functionprocess_poses_rotmat
processes the position + quaternion raw pose from dataset to position + rotation matrix :param poses_in: N x 7 :param rot_mat: N x 3 x 3 :ret
dataset_loaders/cambridge_scenes.py:33
Functionpsnr
(image_pred, image_gt, valid_mask=None, reduction='mean')
script/models/metrics.py:12
Functionqlog
Applies logarithm map to q :param q: (4,) :return: (3,)
dataset_loaders/cambridge_scenes.py:21
Functionraw2outputs
Implementation of original NeRF seems like it is different with rendering implementation from nerf-w https://github.com/kwea123/nerf_pl/b
script/models/rendering.py:67
Functionremove_overlap_data
Remove some overlap data in val set so that train set and val set do not have overlap
dataset_loaders/load_7Scenes.py:264
Functionremove_overlap_data
Remove some overlap data in val set so that train set and val set do not have overlap
dataset_loaders/load_Cambridge.py:262
Functionrender_test
(args, train_dl, val_dl, hwf, start, render_kwargs_test, decoder_coarse=None, decoder_fine=None)
script/models/rendering.py:460
Functionret
(inputs)
script/models/nerf.py:18
Functionsample_homography_np
Sample a random valid homography. Computes the homography transformation between a random patch in the original image and a warped projection
script/utils/utils.py:125
Functionselect_nearest_neighbor_views
select nearest_neighbor views based on unique_frame_index
dataset_loaders/load_7Scenes.py:392
Functionssim
image_pred and image_gt: (1, 3, H, W)
script/models/metrics.py:15
Functiontmp_plot
print 1 pair of salient feature map
script/run_feature.py:30
Functiontmp_plot2
print 1 pair of batch of salient feature map :param: target_in [B, 3, H, W] :param: rgb_in [B, 3, H, W] :param: features_target [B, C
script/run_feature.py:48
Functiontmp_plot2
print 1 pair of batch of salient feature map :param: target_in [B, 3, H, W] :param: rgb_in [B, 3, H, W] :param: features_target [B, C
script/feature/direct_feature_matching.py:23
Functiontmp_plot3
print 1 pair of 1 sample of salient feature map :param: target_in [B, 3, H, W] :param: rgb_in [B, 3, H, W] :param: features_target [B
script/run_feature.py:66
Functionto_img
(x)
script/feature/misc.py:327
Functiontrain_nerf_tracking
finetune pretrained PoseNet using NeRF
script/dm/direct_pose_model.py:363
Functiontrain_on_feature_batch
Perform 1 step of training using scheme1
script/feature/direct_feature_matching.py:235
Functiontrain_posenet
(args, train_dl, val_dl, model, epochs, optimizer, loss_func, scheduler, device, early_stopping)
script/dm/pose_model.py:359
Functiontriplet_loss
naive implementation of triplet loss :param criterion: loss function :param f1: [lvl, B, C, H, W] :param f2: [lvl, B, C, H, W] :
script/feature/misc.py:355
Functiontriplet_loss_hard_negative_mining
triplet loss with hard negative mining, inspired by http://www.bmva.org/bmvc/2016/papers/paper119/paper119.pdf section3.3 :param criterion:
script/feature/misc.py:371
Functionvis_pose
visualize predicted pose result vs. gt pose
script/dm/pose_model.py:33
← previous201–256 of 256, ranked by callers