MCPcopy Create free account

hub / github.com/ShuweiShao/AF-SfMLearner / functions

Functions158 in github.com/ShuweiShao/AF-SfMLearner

↓ 12 callersMethod__init__
(self)
layers.py:282
↓ 10 callersFunctionreadlines
Read all the lines in a text file and return as a list
utils.py:8
↓ 8 callersMethodtrain
Run the entire training pipeline
trainer_end_to_end.py:266
↓ 6 callersMethodlog
Write an event to the tensorboard events file
trainer_stage_one.py:296
↓ 6 callersFunctionsec_to_hm_str
Convert time in seconds to a nice string e.g. 10239 -> '02h50m39s'
utils.py:37
↓ 6 callersMethodtrain
Run the entire training pipeline
trainer_stage_two.py:208
↓ 5 callersMethodparse
(self)
options.py:224
↓ 5 callersFunctiontransformation_from_parameters
Convert the network's (axisangle, translation) output into a 4x4 matrix
layers.py:26
↓ 4 callersMethod__init__
(self, channel, reduction=16)
networks/depth_decoder_ICRA.py:98
↓ 4 callersFunctiondisp_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 callersMethodtrain
Run the entire training pipeline
trainer_stage_one.py:107
↓ 4 callersFunctionupsample
Upsample input tensor by a factor of 2
layers.py:219
↓ 3 callersFunctionget_smooth_loss
Computes the smoothness loss for a disparity image The color image is used for edge-aware smoothness
layers.py:225
↓ 3 callersFunctionncc_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 callersFunctioncheck_file_matches_md5
(checksum, fpath)
utils.py:84
↓ 2 callersMethodcompute_reprojection_loss
(self, pred, target)
trainer_end_to_end.py:566
↓ 2 callersFunctiondump
(source_to_target_transformations)
visualize_pose.py:16
↓ 2 callersFunctiondump_r
(source_to_target_transformations)
evaluate_pose.py:27
↓ 2 callersFunctiondump_xyz
(source_to_target_transformations)
evaluate_pose.py:16
↓ 2 callersMethodgenerate_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 callersMethodgenerate_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 callersMethodget_color
(self, folder, frame_index, side, do_flip)
datasets/mono_dataset.py:195
↓ 2 callersFunctionget_smooth_bright
Computes the smoothness loss for a appearance flow
layers.py:242
↓ 2 callersMethodlog
Write an event to the tensorboard events file
trainer_stage_two.py:554
↓ 2 callersMethodlog
Write an event to the tensorboard events file
trainer_end_to_end.py:718
↓ 2 callersFunctionnormalize_image
Rescale image pixels to span range [0, 1]
utils.py:16
↓ 2 callersMethodpredict_poses
(self, inputs)
trainer_stage_one.py:160
↓ 2 callersMethodpredict_poses
Predict poses between input frames for monocular sequences.
trainer_stage_two.py:285
↓ 2 callersMethodpredict_poses
Predict poses between input frames for monocular sequences.
trainer_end_to_end.py:451
↓ 2 callersMethodset_train
Convert all models to training mode
trainer_stage_one.py:95
↓ 2 callersMethodset_train
Convert all models to training mode
trainer_stage_two.py:188
↓ 2 callersMethodset_train
Convert all models to training mode
trainer_end_to_end.py:225
↓ 1 callersMethod__init__
(self, num_layers, pretrained, num_input_images=1)
networks/resnet_encoder.py:59
↓ 1 callersMethod__init__
(self, *args, **kwargs)
datasets/scared_dataset.py:13
↓ 1 callersFunctionbatch_post_process_disparity
Apply the disparity post-processing method as introduced in Monodepthv1
evaluate_depth.py:48
↓ 1 callersMethodcheck_depth
(self)
datasets/mono_dataset.py:198
↓ 1 callersFunctioncompute_ate
(gtruth_xyz, pred_xyz_o)
evaluate_pose.py:39
↓ 1 callersFunctioncompute_errors
Computation of error metrics between predicted and ground truth depths
evaluate_depth.py:27
↓ 1 callersFunctioncompute_local_sums
(I, J, filt, stride, padding, win)
layers.py:346
↓ 1 callersMethodcompute_losses
(self, inputs, outputs)
trainer_stage_one.py:193
↓ 1 callersMethodcompute_losses
(self, inputs, outputs)
trainer_stage_two.py:413
↓ 1 callersMethodcompute_losses
(self, inputs, outputs)
trainer_end_to_end.py:579
↓ 1 callersMethodcompute_losses_0
(self, inputs, outputs)
trainer_end_to_end.py:383
↓ 1 callersMethodcompute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_stage_one.py:255
↓ 1 callersMethodcompute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_stage_two.py:513
↓ 1 callersMethodcompute_losses_val
Compute the reprojection, perception_loss and smoothness losses for a minibatch
trainer_end_to_end.py:677
↓ 1 callersFunctioncompute_re
(gtruth_r, pred_r)
evaluate_pose.py:54
↓ 1 callersMethodcompute_reprojection_loss
(self, pred, target)
trainer_stage_one.py:180
↓ 1 callersMethodcompute_reprojection_loss
(self, pred, target)
trainer_stage_two.py:400
↓ 1 callersFunctioncompute_scale
(gtruth, pred)
visualize_pose.py:26
↓ 1 callersFunctionevaluate
Evaluate odometry on the SCARED dataset
evaluate_pose.py:71
↓ 1 callersFunctionevaluate
Evaluates a pretrained model using a specified test set
evaluate_depth.py:59
↓ 1 callersFunctionexport_gt_depths_SCARED
()
export_gt_depth.py:12
↓ 1 callersFunctionexport_gt_depths_SCARED
()
export_gt_pose.py:11
↓ 1 callersFunctionget_corresponding_map
:param data: unnormalized coordinates Bx2xHxW :return: Bx1xHxW
layers.py:555
↓ 1 callersMethodget_depth
(self, folder, frame_index, side, do_flip)
datasets/mono_dataset.py:201
↓ 1 callersMethodget_image_path
(self, folder, frame_index, side)
datasets/scared_dataset.py:41
↓ 1 callersFunctionget_smooth_registration
Computes the smoothness loss for a optical flow
layers.py:269
↓ 1 callersFunctionget_translation_matrix
Convert a translation vector into a 4x4 transformation matrix
layers.py:46
↓ 1 callersMethodload_model
Load model(s) from disk
trainer_stage_one.py:341
↓ 1 callersMethodload_model
Load model(s) from disk
trainer_stage_two.py:614
↓ 1 callersMethodload_model
Load model(s) from disk
trainer_end_to_end.py:778
↓ 1 callersMethodlog_time
Print a logging statement to the terminal
trainer_stage_one.py:284
↓ 1 callersMethodlog_time
Print a logging statement to the terminal
trainer_stage_two.py:542
↓ 1 callersMethodlog_time
Print a logging statement to the terminal
trainer_end_to_end.py:706
↓ 1 callersFunctionparse_args
()
test_simple.py:19
↓ 1 callersMethodpredict_poses_0
Predict poses between input frames for monocular sequences.
trainer_end_to_end.py:328
↓ 1 callersMethodpreprocess
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 callersMethodprocess_batch
Pass a minibatch through the network and generate images and losses
trainer_stage_one.py:148
↓ 1 callersMethodprocess_batch
Pass a minibatch through the network and generate images and losses
trainer_stage_two.py:251
↓ 1 callersMethodprocess_batch
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:417
↓ 1 callersMethodprocess_batch_0
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:316
↓ 1 callersMethodprocess_batch_val
Pass a minibatch through the network and generate images and losses
trainer_stage_one.py:243
↓ 1 callersMethodprocess_batch_val
Pass a minibatch through the network and generate images and losses
trainer_stage_two.py:479
↓ 1 callersMethodprocess_batch_val
Pass a minibatch through the network and generate images and losses
trainer_end_to_end.py:643
↓ 1 callersFunctionresnet_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 callersMethodrobust_rand_sample
(self, match, mask, num, robust=True)
layers.py:637
↓ 1 callersFunctionrot_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 callersMethodrun_epoch
Run a single epoch of training and validation
trainer_stage_one.py:118
↓ 1 callersMethodrun_epoch
Run a single epoch of training and validation
trainer_stage_two.py:219
↓ 1 callersMethodrun_epoch
Run a single epoch of training and validation
trainer_end_to_end.py:277
↓ 1 callersMethodsave_model
Save model weights to disk
trainer_stage_one.py:321
↓ 1 callersMethodsave_model
Save model weights to disk
trainer_stage_two.py:594
↓ 1 callersMethodsave_model
Save model weights to disk
trainer_end_to_end.py:758
↓ 1 callersMethodsave_opts
Save options to disk so we know what we ran this experiment with
trainer_stage_one.py:310
↓ 1 callersMethodsave_opts
Save options to disk so we know what we ran this experiment with
trainer_stage_two.py:583
↓ 1 callersMethodsave_opts
Save options to disk so we know what we ran this experiment with
trainer_end_to_end.py:747
↓ 1 callersFunctionsec_to_hm
Convert time in seconds to time in hours, minutes and seconds e.g. 10239 -> (2, 50, 39)
utils.py:25
↓ 1 callersMethodset_eval
Convert all models to testing/evaluation mode
trainer_stage_one.py:101
↓ 1 callersMethodset_eval
Convert all models to testing/evaluation mode
trainer_stage_two.py:198
↓ 1 callersMethodset_eval
Convert all models to testing/evaluation mode
trainer_end_to_end.py:256
↓ 1 callersMethodset_train_0
Convert all models to training mode
trainer_end_to_end.py:194
↓ 1 callersFunctiontest_simple
Function to predict for a single image or folder of images
test_simple.py:36
↓ 1 callersMethodtop_ratio_sample
(self, match, mask, ratio)
layers.py:658
↓ 1 callersMethodval
Validate the model on a single minibatch
trainer_stage_one.py:225
↓ 1 callersMethodval
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