Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ais-lab/d2s
/ functions
Functions
206 in github.com/ais-lab/d2s
⨍
Functions
206
◇
Types & classes
30
↓ 1 callers
Function
remove_borders
Removes keypoints too close to the border
detectors/point2d/SuperPoint/superpoint.py:69
↓ 1 callers
Function
resize_image
(image, size, interp)
inference.py:54
↓ 1 callers
Function
resize_image
(image, size, interp)
datasets/augmentation.py:7
↓ 1 callers
Method
rotate
(self, angle)
datasets/_base.py:88
↓ 1 callers
Function
run_colmap
(confs)
run_custom_data/pipeline.py:50
↓ 1 callers
Method
save_checkpoint
(self, path, name, epoch, final = False)
models/pipeline.py:34
↓ 1 callers
Method
save_vis_highlights
(self)
util/help_evaluation.py:65
↓ 1 callers
Function
simple_nms
Fast Non-maximum suppression to remove nearby points
detectors/point2d/SuperPoint/superpoint.py:51
↓ 1 callers
Function
test_line_inside_ranges
(line, ranges)
util/visualize.py:16
↓ 1 callers
Function
top_k_keypoints
(keypoints, scores, k: int)
detectors/point2d/SuperPoint/superpoint.py:77
↓ 1 callers
Method
update_loss
(self, loss)
runners/trainer.py:144
↓ 1 callers
Function
update_recursive
(dict1, dictinfo)
util/config.py:4
↓ 1 callers
Method
update_scale
(self, scale_factor)
datasets/_base.py:46
↓ 1 callers
Function
visualize_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 callers
Function
visualize_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 callers
Function
visualize_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 callers
Function
write_cameras_binary
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasBinary(const std::string& path) void Reconstruction::ReadCameras
util/read_write_model.py:173
↓ 1 callers
Function
write_cameras_text
see: src/base/reconstruction.cc void Reconstruction::WriteCamerasText(const std::string& path) void Reconstruction::ReadCamerasTe
util/read_write_model.py:156
↓ 1 callers
Function
write_images_binary
see: src/base/reconstruction.cc void Reconstruction::ReadImagesBinary(const std::string& path) void Reconstruction::WriteImagesBi
util/read_write_model.py:287
↓ 1 callers
Function
write_images_text
see: src/base/reconstruction.cc void Reconstruction::ReadImagesText(const std::string& path) void Reconstruction::WriteImagesText
util/read_write_model.py:259
↓ 1 callers
Function
write_model
(cameras, images, points3D, path, ext=".bin")
util/read_write_model.py:441
↓ 1 callers
Function
write_points3D_binary
see: src/base/reconstruction.cc void Reconstruction::ReadPoints3DBinary(const std::string& path) void Reconstruction::WritePoints
util/read_write_model.py:390
↓ 1 callers
Function
write_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
Function
ax
(p, q)
datasets/augmentation.py:146
Function
ay
(p, q)
datasets/augmentation.py:147
Function
batch_to_np
(batch)
models/util.py:51
Method
compute_dense_descriptor_and_score
Compute dense scores and descriptors for an image
detectors/point2d/SuperPoint/superpoint.py:217
Function
compute_x
(m, c, y)
datasets/augmentation.py:284
Function
compute_y
(m, c, x)
datasets/augmentation.py:288
Function
correct_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
Function
dsacstar_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
Method
flush
(self)
util/logger.py:15
Method
forward
Check the data and call the _forward method of the child model.
models/base_model.py:33
Method
forward
(self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor)
models/d2s.py:63
Method
forward
(self, x: torch.Tensor, source: torch.Tensor)
models/d2s.py:78
Method
forward
(self, desc: torch.Tensor)
models/d2s.py:90
Method
forward
(self, pred, target, iteration=2000000)
models/util_learner.py:17
Function
frame2tensor
(frame, device)
datasets/_base.py:15
Function
getLine3D_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
Method
get_2dpoints_lines_for_testing
Return a list of points2D and a list of lines2D in the image
datasets/_base.py:240
Method
get_line3d_vector
(self)
datasets/_base.py:60
Function
get_line_keypoints
(lines, n_line_keypoints)
models/pipeline.py:57
Function
is_apply_augment
Return True if the augmentation is applied by select a random option
datasets/augmentation.py:180
Function
line_equation
(start, end)
datasets/augmentation.py:278
Function
load_config
(config_file, default_path=None)
util/config.py:12
Method
loss
(self, pred, data)
detectors/point2d/SuperPoint/superpoint.py:294
Method
loss
To be implemented by child class.
models/base_model.py:52
Method
loss
(self, pred, data)
models/d2s.py:32
Method
loss
(self, pred, data)
models/pipeline.py:32
Method
loss
(self, pred, data)
models/mlp.py:29
Function
mkdir
(path)
util/config.py:26
Function
numpy_image_to_torch
Normalize the image tensor and reorder the dimensions.
models/util.py:29
Function
open3d_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
Function
open3d_vis_3d_lines_from_single_imgandcollection
Visualize 3D lines from datasetcollection Args: datacollection: DataCollection object img_name: string, image name
util/visualize.py:132
Function
open3d_vis_3d_points_from_datacollection
Visualize 3D points from datasetcollection Args: datacollection: DataCollection object mode: string, "train" or "test"
util/visualize.py:275
Function
perspectiveTransform_forlines
(lines, h_matrix)
datasets/augmentation.py:162
Function
perspectiveTransform_forpoints
(positions, h_matrix)
datasets/augmentation.py:157
Method
qvec2rotmat
(self)
util/read_write_model.py:50
Function
random_brightness_contrast
(image, b_rate, c_rate)
datasets/augmentation.py:171
Method
recursive_key_check
(expected, given)
models/base_model.py:35
Function
rotate_lines_dsacstar
(lines, M)
datasets/augmentation.py:234
Function
rotmat2qvec
(R)
util/read_write_model.py:466
Method
sample_descriptors
(self, data, keypoints)
detectors/point2d/SuperPoint/superpoint.py:249
Function
sample_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
Method
show
(self, epoch)
runners/trainer.py:129
Method
show
(self, epoch, lr=0.0)
runners/trainer.py:179
Method
update
(self, loss)
runners/trainer.py:174
← previous
next →
101–200 of 206, ranked by callers