Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShuweiShao/AF-SfMLearner
/ functions
Functions
158 in github.com/ShuweiShao/AF-SfMLearner
⨍
Functions
158
◇
Types & classes
32
↓ 12 callers
Method
__init__
(self)
layers.py:282
↓ 10 callers
Function
readlines
Read all the lines in a text file and return as a list
utils.py:8
↓ 8 callers
Method
train
Run the entire training pipeline
trainer_end_to_end.py:266
↓ 6 callers
Method
log
Write an event to the tensorboard events file
trainer_stage_one.py:296
↓ 6 callers
Function
sec_to_hm_str
Convert time in seconds to a nice string e.g. 10239 -> '02h50m39s'
utils.py:37
↓ 6 callers
Method
train
Run the entire training pipeline
trainer_stage_two.py:208
↓ 5 callers
Method
parse
(self)
options.py:224
↓ 5 callers
Function
transformation_from_parameters
Convert the network's (axisangle, translation) output into a 4x4 matrix
layers.py:26
↓ 4 callers
Method
__init__
(self, channel, reduction=16)
networks/depth_decoder_ICRA.py:98
↓ 4 callers
Function
disp_to_depth
Convert network's sigmoid output into depth prediction The formula for this conversion is given in the 'additional considerations' section of
layers.py:14
↓ 4 callers
Method
train
Run the entire training pipeline
trainer_stage_one.py:107
↓ 4 callers
Function
upsample
Upsample input tensor by a factor of 2
layers.py:219
↓ 3 callers
Function
get_smooth_loss
Computes the smoothness loss for a disparity image The color image is used for edge-aware smoothness
layers.py:225
↓ 3 callers
Function
ncc_loss
calculate the normalize local cross correlation between I and J assumes I, J are sized [batch_size, *vol_shape, nb_feats]
layers.py:312
↓ 2 callers
Function
check_file_matches_md5
(checksum, fpath)
utils.py:84
↓ 2 callers
Method
compute_reprojection_loss
(self, pred, target)
trainer_end_to_end.py:566
↓ 2 callers
Function
dump
(source_to_target_transformations)
visualize_pose.py:16
↓ 2 callers
Function
dump_r
(source_to_target_transformations)
evaluate_pose.py:27
↓ 2 callers
Function
dump_xyz
(source_to_target_transformations)
evaluate_pose.py:16
↓ 2 callers
Method
generate_images_pred
Generate the warped (reprojected) color images for a minibatch. Generated images are saved into the `outputs` dictionary.
trainer_stage_two.py:348
↓ 2 callers
Method
generate_images_pred
Generate the warped (reprojected) color images for a minibatch. Generated images are saved into the `outputs` dictionary.
trainer_end_to_end.py:514
↓ 2 callers
Method
get_color
(self, folder, frame_index, side, do_flip)
datasets/mono_dataset.py:195
↓ 2 callers
Function
get_smooth_bright
Computes the smoothness loss for a appearance flow
layers.py:242
↓ 2 callers
Method
log
Write an event to the tensorboard events file
trainer_stage_two.py:554
↓ 2 callers
Method
log
Write an event to the tensorboard events file
trainer_end_to_end.py:718
↓ 2 callers
Function
normalize_image
Rescale image pixels to span range [0, 1]
utils.py:16
↓ 2 callers
Method
predict_poses
(self, inputs)
trainer_stage_one.py:160
↓ 2 callers
Method
predict_poses
Predict poses between input frames for monocular sequences.
trainer_stage_two.py:285
↓ 2 callers
Method
predict_poses
Predict poses between input frames for monocular sequences.
trainer_end_to_end.py:451
↓ 2 callers
Method
set_train
Convert all models to training mode
trainer_stage_one.py:95
↓ 2 callers
Method
set_train
Convert all models to training mode
trainer_stage_two.py:188
↓ 2 callers
Method
set_train
Convert all models to training mode
trainer_end_to_end.py:225
↓ 1 callers
Method
__init__
(self, num_layers, pretrained, num_input_images=1)
networks/resnet_encoder.py:59
↓ 1 callers
Method
__init__
(self, *args, **kwargs)
datasets/scared_dataset.py:13
↓ 1 callers
Function
batch_post_process_disparity
Apply the disparity post-processing method as introduced in Monodepthv1
evaluate_depth.py:48
↓ 1 callers
Method
check_depth
(self)
datasets/mono_dataset.py:198
↓ 1 callers
Function
compute_ate
(gtruth_xyz, pred_xyz_o)
evaluate_pose.py:39
↓ 1 callers
Function
compute_errors
Computation of error metrics between predicted and ground truth depths
evaluate_depth.py:27
↓ 1 callers
Function
compute_local_sums
(I, J, filt, stride, padding, win)
layers.py:346
↓ 1 callers
Method
compute_losses
(self, inputs, outputs)
trainer_stage_one.py:193
↓ 1 callers
Method
compute_losses
(self, inputs, outputs)
trainer_stage_two.py:413
↓ 1 callers
Method
compute_losses
(self, inputs, outputs)
trainer_end_to_end.py:579
↓ 1 callers
Method
compute_losses_0
(self, inputs, outputs)
trainer_end_to_end.py:383
↓ 1 callers
Method
compute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_stage_one.py:255
↓ 1 callers
Method
compute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_stage_two.py:513
↓ 1 callers
Method
compute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_end_to_end.py:677
↓ 1 callers
Function
compute_re
(gtruth_r, pred_r)
evaluate_pose.py:54
↓ 1 callers
Method
compute_reprojection_loss
(self, pred, target)
trainer_stage_one.py:180
↓ 1 callers
Method
compute_reprojection_loss
(self, pred, target)
trainer_stage_two.py:400
↓ 1 callers
Function
compute_scale
(gtruth, pred)
visualize_pose.py:26
↓ 1 callers
Function
evaluate
Evaluate odometry on the SCARED dataset
evaluate_pose.py:71
↓ 1 callers
Function
evaluate
Evaluates a pretrained model using a specified test set
evaluate_depth.py:59
↓ 1 callers
Function
export_gt_depths_SCARED
()
export_gt_depth.py:12
↓ 1 callers
Function
export_gt_depths_SCARED
()
export_gt_pose.py:11
↓ 1 callers
Function
get_corresponding_map
:param data: unnormalized coordinates Bx2xHxW :return: Bx1xHxW
layers.py:555
↓ 1 callers
Method
get_depth
(self, folder, frame_index, side, do_flip)
datasets/mono_dataset.py:201
↓ 1 callers
Method
get_image_path
(self, folder, frame_index, side)
datasets/scared_dataset.py:41
↓ 1 callers
Function
get_smooth_registration
Computes the smoothness loss for a optical flow
layers.py:269
↓ 1 callers
Function
get_translation_matrix
Convert a translation vector into a 4x4 transformation matrix
layers.py:46
↓ 1 callers
Method
load_model
Load model(s) from disk
trainer_stage_one.py:341
↓ 1 callers
Method
load_model
Load model(s) from disk
trainer_stage_two.py:614
↓ 1 callers
Method
load_model
Load model(s) from disk
trainer_end_to_end.py:778
↓ 1 callers
Method
log_time
Print a logging statement to the terminal
trainer_stage_one.py:284
↓ 1 callers
Method
log_time
Print a logging statement to the terminal
trainer_stage_two.py:542
↓ 1 callers
Method
log_time
Print a logging statement to the terminal
trainer_end_to_end.py:706
↓ 1 callers
Function
parse_args
()
test_simple.py:19
↓ 1 callers
Method
predict_poses_0
Predict poses between input frames for monocular sequences.
trainer_end_to_end.py:328
↓ 1 callers
Method
preprocess
Resize colour images to the required scales and augment if required We create the color_aug object in advance and apply the same augmentation
datasets/mono_dataset.py:85
↓ 1 callers
Method
process_batch
Pass a minibatch through the network and generate images and losses
trainer_stage_one.py:148
↓ 1 callers
Method
process_batch
Pass a minibatch through the network and generate images and losses
trainer_stage_two.py:251
↓ 1 callers
Method
process_batch
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:417
↓ 1 callers
Method
process_batch_0
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:316
↓ 1 callers
Method
process_batch_val
Pass a minibatch through the network and generate images and losses
trainer_stage_one.py:243
↓ 1 callers
Method
process_batch_val
Pass a minibatch through the network and generate images and losses
trainer_stage_two.py:479
↓ 1 callers
Method
process_batch_val
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:643
↓ 1 callers
Function
resnet_multiimage_input
Constructs a ResNet model. Args: num_layers (int): Number of resnet layers. Must be 18 or 50 pretrained (bool): If True, returns a
networks/resnet_encoder.py:36
↓ 1 callers
Method
robust_rand_sample
(self, match, mask, num, robust=True)
layers.py:637
↓ 1 callers
Function
rot_from_axisangle
Convert an axisangle rotation into a 4x4 transformation matrix (adapted from https://github.com/Wallacoloo/printipi) Input 'vec' has to be Bx1
layers.py:62
↓ 1 callers
Method
run_epoch
Run a single epoch of training and validation
trainer_stage_one.py:118
↓ 1 callers
Method
run_epoch
Run a single epoch of training and validation
trainer_stage_two.py:219
↓ 1 callers
Method
run_epoch
Run a single epoch of training and validation
trainer_end_to_end.py:277
↓ 1 callers
Method
save_model
Save model weights to disk
trainer_stage_one.py:321
↓ 1 callers
Method
save_model
Save model weights to disk
trainer_stage_two.py:594
↓ 1 callers
Method
save_model
Save model weights to disk
trainer_end_to_end.py:758
↓ 1 callers
Method
save_opts
Save options to disk so we know what we ran this experiment with
trainer_stage_one.py:310
↓ 1 callers
Method
save_opts
Save options to disk so we know what we ran this experiment with
trainer_stage_two.py:583
↓ 1 callers
Method
save_opts
Save options to disk so we know what we ran this experiment with
trainer_end_to_end.py:747
↓ 1 callers
Function
sec_to_hm
Convert time in seconds to time in hours, minutes and seconds e.g. 10239 -> (2, 50, 39)
utils.py:25
↓ 1 callers
Method
set_eval
Convert all models to testing/evaluation mode
trainer_stage_one.py:101
↓ 1 callers
Method
set_eval
Convert all models to testing/evaluation mode
trainer_stage_two.py:198
↓ 1 callers
Method
set_eval
Convert all models to testing/evaluation mode
trainer_end_to_end.py:256
↓ 1 callers
Method
set_train_0
Convert all models to training mode
trainer_end_to_end.py:194
↓ 1 callers
Function
test_simple
Function to predict for a single image or folder of images
test_simple.py:36
↓ 1 callers
Method
top_ratio_sample
(self, match, mask, ratio)
layers.py:658
↓ 1 callers
Method
val
Validate the model on a single minibatch
trainer_stage_one.py:225
↓ 1 callers
Method
val
Validate the model on a single minibatch
trainer_stage_two.py:462
Method
__getitem__
Returns a single training item from the dataset as a dictionary. Values correspond to torch tensors. Keys in the dictionary are eithe
datasets/mono_dataset.py:109
Method
__init__
(self, options)
trainer_stage_one.py:17
Method
__init__
(self, in_channels, out_channels)
layers.py:107
Method
__init__
(self, in_channels, out_channels, use_refl=True)
layers.py:122
next →
1–100 of 158, ranked by callers