MCPcopy Create free account

hub / github.com/ais-lab/d2s / functions

Functions206 in github.com/ais-lab/d2s

↓ 1 callersFunctionremove_borders
Removes keypoints too close to the border
detectors/point2d/SuperPoint/superpoint.py:69
↓ 1 callersFunctionresize_image
(image, size, interp)
inference.py:54
↓ 1 callersFunctionresize_image
(image, size, interp)
datasets/augmentation.py:7
↓ 1 callersMethodrotate
(self, angle)
datasets/_base.py:88
↓ 1 callersFunctionrun_colmap
(confs)
run_custom_data/pipeline.py:50
↓ 1 callersMethodsave_checkpoint
(self, path, name, epoch, final = False)
models/pipeline.py:34
↓ 1 callersMethodsave_vis_highlights
(self)
util/help_evaluation.py:65
↓ 1 callersFunctionsimple_nms
Fast Non-maximum suppression to remove nearby points
detectors/point2d/SuperPoint/superpoint.py:51
↓ 1 callersFunctiontest_line_inside_ranges
(line, ranges)
util/visualize.py:16
↓ 1 callersFunctiontop_k_keypoints
(keypoints, scores, k: int)
detectors/point2d/SuperPoint/superpoint.py:77
↓ 1 callersMethodupdate_loss
(self, loss)
runners/trainer.py:144
↓ 1 callersFunctionupdate_recursive
(dict1, dictinfo)
util/config.py:4
↓ 1 callersMethodupdate_scale
(self, scale_factor)
datasets/_base.py:46
↓ 1 callersFunctionvisualize_2d_lines
Plot lines for existing images. Args: img_path: string, path to the image. lines2D: list of ndarrays of size (N, 4). line
util/visualize.py:144
↓ 1 callersFunctionvisualize_2d_points
Plot keypoints for existing images. Args: img_path: string, path to the image. points2D: list of ndarrays of size (N, 2).
util/visualize.py:195
↓ 1 callersFunctionvisualize_2d_points_lines
Plot keypoints for existing images. Args: img_path: string, path to the image. points2D: list of ndarrays of size (N, 2).
util/visualize.py:318
↓ 1 callersFunctionwrite_cameras_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
util/read_write_model.py:173
↓ 1 callersFunctionwrite_cameras_text
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasText(const std::string& path) void Reconstruction::ReadCamerasTe
util/read_write_model.py:156
↓ 1 callersFunctionwrite_images_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
util/read_write_model.py:287
↓ 1 callersFunctionwrite_images_text
see: src/base/reconstruction.cc void Reconstruction::ReadImagesText(const std::string& path) void Reconstruction::WriteImagesText
util/read_write_model.py:259
↓ 1 callersFunctionwrite_model
(cameras, images, points3D, path, ext=".bin")
util/read_write_model.py:441
↓ 1 callersFunctionwrite_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
util/read_write_model.py:390
↓ 1 callersFunctionwrite_points3D_text
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DText(const std::string& path) void Reconstruction::WritePoints3D
util/read_write_model.py:365
Method__getitem__
(self, index)
datasets/dataloader.py:25
Method__init__
(self, args, cfg, eval_cfg=dict())
runners/evaluator.py:25
Method__init__
(self, args, cfg)
runners/trainer.py:12
Method__init__
(self, args, cfg, length_loader, start_epoch, total_epoch=0)
runners/trainer.py:89
Method__init__
(self)
runners/trainer.py:141
Method__init__
corresponding to show following losses: ['total_loss', 'point_loss', 'point_uncer_loss', 'line_loss',
runners/trainer.py:154
Method__init__
(self, camera, iscolmap=True)
datasets/_base.py:28
Method__init__
(self, start, end)
datasets/_base.py:57
Method__init__
(self, qvec, tvec)
datasets/_base.py:64
Method__init__
- image class for storing 2D & 3D points, 2D & 3D lines, camera vector, pose vector - comments with ### can be changed if augmenting
datasets/_base.py:103
Method__init__
(self, args, cfg, mode)
datasets/_base.py:118
Method__init__
(self, args, cfg, mode="train")
datasets/dataloader.py:9
Method__init__
(self, args:dict, cfg:dict, mode="train")
datasets/data_collection.py:15
Method__init__
(self, conf)
models/base_model.py:23
Method__init__
(self, num_heads: int, d_model: int)
models/d2s.py:55
Method__init__
(self, feature_dim: int, num_heads: int)
models/d2s.py:72
Method__init__
(self, rpj_cfg, total_iterations=2000000)
models/util_learner.py:9
Method__init__
(self, total_iterations, soft_clamp=50, soft_clamp_min=1,
models/util_learner.py:120
Method__init__
(self, params, nepochs,steps_per_epoch, **kwargs)
models/util_learner.py:198
Method__init__
(self, save_path)
util/io.py:19
Method__init__
highlight_frame: "seq-06/frame-000612.color.png", for example limit_n_frames: limit the number of frames to visualize the 3D lines an
util/help_evaluation.py:14
Method__init__
(self, filename)
util/logger.py:5
Method__init__
(self, localize_cfg, eval_cfg, spath)
util/pose_estimator.py:10
Method__len__
(self)
datasets/dataloader.py:22
Method__prepare__
(name, bases, **kwds)
models/base_model.py:6
Method_forward
(self, datain)
detectors/point2d/SuperPoint/superpoint.py:260
Method_forward
(self, data)
models/d2s.py:25
Method_forward
(self, data)
models/pipeline.py:23
Method_forward
(self, data)
models/mlp.py:23
Method_init
(self, conf)
detectors/point2d/SuperPoint/superpoint.py:119
Method_init
(self, conf)
models/d2s.py:20
Method_init
(self, conf)
models/pipeline.py:14
Method_init
(self, conf)
models/mlp.py:20
Functionax
(p, q)
datasets/augmentation.py:146
Functionay
(p, q)
datasets/augmentation.py:147
Functionbatch_to_np
(batch)
models/util.py:51
Methodcompute_dense_descriptor_and_score
Compute dense scores and descriptors for an image
detectors/point2d/SuperPoint/superpoint.py:217
Functioncompute_x
(m, c, y)
datasets/augmentation.py:284
Functioncompute_y
(m, c, x)
datasets/augmentation.py:288
Functioncorrect_points_inside_image
Correct the points and lines coordinates to be inside the image if the points are outside the image, remove them if lines have half insi
datasets/augmentation.py:253
Functiondsacstar_augmentation
Apply the augmentation to the input image, points, lines, camera, and pose args: image: input image np.array WxH cfg: config
datasets/augmentation.py:190
Methodflush
(self)
util/logger.py:15
Methodforward
Check the data and call the _forward method of the child model.
models/base_model.py:33
Methodforward
(self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor)
models/d2s.py:63
Methodforward
(self, x: torch.Tensor, source: torch.Tensor)
models/d2s.py:78
Methodforward
(self, desc: torch.Tensor)
models/d2s.py:90
Methodforward
(self, pred, target, iteration=2000000)
models/util_learner.py:17
Functionframe2tensor
(frame, device)
datasets/_base.py:15
FunctiongetLine3D_from_modeloutput
get uncertainty and remove line with high uncertainty args: lines3D: numpy array (1, 7, N) return: lines3D (N, 6)
util/help_evaluation.py:73
Methodget_2dpoints_lines_for_testing
Return a list of points2D and a list of lines2D in the image
datasets/_base.py:240
Methodget_line3d_vector
(self)
datasets/_base.py:60
Functionget_line_keypoints
(lines, n_line_keypoints)
models/pipeline.py:57
Functionis_apply_augment
Return True if the augmentation is applied by select a random option
datasets/augmentation.py:180
Functionline_equation
(start, end)
datasets/augmentation.py:278
Functionload_config
(config_file, default_path=None)
util/config.py:12
Methodloss
(self, pred, data)
detectors/point2d/SuperPoint/superpoint.py:294
Methodloss
To be implemented by child class.
models/base_model.py:52
Methodloss
(self, pred, data)
models/d2s.py:32
Methodloss
(self, pred, data)
models/pipeline.py:32
Methodloss
(self, pred, data)
models/mlp.py:29
Functionmkdir
(path)
util/config.py:26
Functionnumpy_image_to_torch
Normalize the image tensor and reorder the dimensions.
models/util.py:29
Functionopen3d_vis_3d_lines_from_datacollection
Visualize 3D lines from datasetcollection Args: datacollection: DataCollection object train_or_test: string, "train" or "test
util/visualize.py:108
Functionopen3d_vis_3d_lines_from_single_imgandcollection
Visualize 3D lines from datasetcollection Args: datacollection: DataCollection object img_name: string, image name
util/visualize.py:132
Functionopen3d_vis_3d_points_from_datacollection
Visualize 3D points from datasetcollection Args: datacollection: DataCollection object mode: string, "train" or "test"
util/visualize.py:275
FunctionperspectiveTransform_forlines
(lines, h_matrix)
datasets/augmentation.py:162
FunctionperspectiveTransform_forpoints
(positions, h_matrix)
datasets/augmentation.py:157
Methodqvec2rotmat
(self)
util/read_write_model.py:50
Functionrandom_brightness_contrast
(image, b_rate, c_rate)
datasets/augmentation.py:171
Methodrecursive_key_check
(expected, given)
models/base_model.py:35
Functionrotate_lines_dsacstar
(lines, M)
datasets/augmentation.py:234
Functionrotmat2qvec
(R)
util/read_write_model.py:466
Methodsample_descriptors
(self, data, keypoints)
detectors/point2d/SuperPoint/superpoint.py:249
Functionsample_homography
Sample a random valid homography. Computes the homography transformation between a random patch in the original image and a warped projection
datasets/augmentation.py:25
Methodshow
(self, epoch)
runners/trainer.py:129
Methodshow
(self, epoch, lr=0.0)
runners/trainer.py:179
Methodupdate
(self, loss)
runners/trainer.py:174
← previousnext →101–200 of 206, ranked by callers