MCPcopy Create free account

hub / github.com/drinkingcoder/FlowFormer-Official / functions

Functions336 in github.com/drinkingcoder/FlowFormer-Official

↓ 21 callersMethodpad
(self, *inputs)
core/utils/utils.py:20
↓ 15 callersMethod__init__
(self, hidden_dim=128, input_dim=192+128)
core/FlowFormer/LatentCostFormer/cnn.py:307
↓ 15 callersFunctioncoords_grid
(batch, ht, wd)
core/utils/utils.py:93
↓ 14 callersMethod__init__
(self, dim, num_heads, mlp_ratio=4., drop=0., attn_drop=0., drop_path=0., act_layer=nn.GELU,
core/FlowFormer/LatentCostFormer/twins.py:752
↓ 14 callersFunctionbilinear_sampler
Wrapper for grid_sample, uses pixel coordinates
core/utils/utils.py:58
↓ 14 callersMethodleft_multiply
(self, u0, u1, u2, u3, u4, u5)
core/utils/flow_transforms.py:85
↓ 12 callersFunctionLinearPositionEmbeddingSine
(x, dim=128, NORMALIZE_FACOR=1/200)
core/FlowFormer/LatentCostFormer/attention.py:150
↓ 10 callersMethodpad
(self, *inputs)
evaluate_FlowFormer_tile.py:49
↓ 9 callersMethodupdate
(self)
train_FlowFormer.py:47
↓ 6 callersMethod__init__
(self, hidden_dim=128, input_dim=192+128)
core/update.py:17
↓ 6 callersMethod__init__
(self, aug_params=None, root='datasets/HD1k')
core/utils/datasets.py:393
↓ 6 callersMethod__init__
(self, patch_size=16, in_chans=1, embed_dim=64, pe='linear')
core/FlowFormer/LatentCostFormer/encoder.py:25
↓ 6 callersFunction_cfg
(url='', **kwargs)
core/FlowFormer/LatentCostFormer/twins.py:30
↓ 6 callersFunctioncompute_grid_indices
(image_shape, patch_size=TRAIN_SIZE, min_overlap=20)
evaluate_FlowFormer_tile.py:57
↓ 6 callersFunctioncompute_weight
(hws, image_shape, patch_size=TRAIN_SIZE, sigma=1.0, wtype='gaussian')
evaluate_FlowFormer_tile.py:68
↓ 6 callersMethodgrid_transform
(self, meshgrid, t, normalize=True, gridsize=None)
core/utils/flow_transforms.py:113
↓ 5 callersMethod__init__
(self, hidden_dim=128, input_dim=192+128)
core/FlowFormer/LatentCostFormer/gru.py:16
↓ 4 callersMethod__init__
(self, aug_params=None, root='datasets/HD1k')
core/datasets.py:182
↓ 4 callersFunctionbuild_flowformer
(cfg)
core/FlowFormer/__init__.py:2
↓ 4 callersMethodunpad
(self,x)
core/utils/utils.py:23
↓ 3 callersMethod__init__
(self, output_dim=128, norm_fn='batch', dropout=0.0)
core/extractor.py:119
↓ 3 callersMethod__init__
(self, cfg)
core/FlowFormer/LatentCostFormer/decoder.py:152
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
core/extractor.py:159
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
core/extractor.py:235
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
core/FlowFormer/LatentCostFormer/cnn.py:162
↓ 3 callersMethod_make_layer
(self, dim, stride=1)
core/FlowFormer/LatentCostFormer/cnn.py:245
↓ 3 callersMethodto_identity
(self)
core/utils/flow_transforms.py:82
↓ 2 callersFunctionExpPositionEmbeddingSine
(x, dim=128, NORMALIZE_FACOR=1/200)
core/FlowFormer/LatentCostFormer/attention.py:156
↓ 2 callersFunctionFeedForward
(dim, expansion_factor = 4, dropout = 0., dense = nn.Linear)
core/FlowFormer/LatentCostFormer/mlpmixer.py:15
↓ 2 callersMethod__init__
Args: max_shape (tuple): for 1/8 featmap, the max length of 256 corresponds to 2048 pixels
core/position_encoding.py:12
↓ 2 callersMethod__init__
(self, in_dim=22, out_dim=1, innter_dim=96, depth=5)
core/FlowFormer/common.py:336
↓ 2 callersMethod__init__
( self, max_pos_size, dim_head )
core/FlowFormer/LatentCostFormer/gma.py:7
↓ 2 callersMethod__init__
(self, normalized_shape, eps=1e-6, data_format="channels_last")
core/FlowFormer/LatentCostFormer/convnext.py:69
↓ 2 callersMethod__init__
(self, dim, heads)
core/FlowFormer/LatentCostFormer/attention.py:38
↓ 2 callersMethodattend_with_rpe
(self, Q, K, rpe_bias)
core/FlowFormer/common.py:384
↓ 2 callersMethodclose
(self)
core/utils/logger.py:51
↓ 2 callersMethodpca_image
(self, rgb)
core/utils/flow_transforms.py:326
↓ 2 callersMethodstep
(self, optimizer)
train_FlowFormer.py:45
↓ 2 callersMethodunpad
(self,x)
evaluate_FlowFormer_tile.py:52
↓ 1 callersMethod__init__
(self, pretrained=True)
core/FlowFormer/encoders.py:7
↓ 1 callersMethod__init__
(self, dim, cfg, drop_path=0., dropout=0.)
core/FlowFormer/LatentCostFormer/mlpmixer.py:25
↓ 1 callersMethod_print_training_status
(self)
core/utils/logger.py:13
↓ 1 callersMethodattend_with_rpe
(self, Q, K)
core/FlowFormer/LatentCostFormer/attention.py:17
↓ 1 callersMethodattend_with_rpe
(self, Q, K)
core/FlowFormer/LatentCostFormer/attention.py:45
↓ 1 callersMethodattend_with_rpe
Q: [BH1W1, 1, dim] K: [BH1W1, H3W3, dim] Q_r: [BH1W1, H3W3, dim] K_r: [BH1W1, H3W3, dim]
core/FlowFormer/LatentCostFormer/attention.py:115
↓ 1 callersFunctionbuild_model
()
visualize_flow.py:143
↓ 1 callersFunctionbuild_optimizer
(model, config)
core/optimizer/__init__.py:15
↓ 1 callersFunctionbuild_scheduler
Returns: scheduler (dict):{ 'scheduler': lr_scheduler, 'interval': 'step', # or 'epoch' }
core/optimizer/__init__.py:40
↓ 1 callersMethodchrom_aug
(self, rgb)
core/utils/flow_transforms.py:425
↓ 1 callersMethodcolor_transform
Photometric augmentation
core/utils/augmentor.py:39
↓ 1 callersMethodcolor_transform
(self, img1, img2)
core/utils/augmentor.py:167
↓ 1 callersFunctioncompute_adaptive_image_size
(image_size)
visualize_flow.py:102
↓ 1 callersFunctioncompute_flow
(model, image1, image2, weights=None)
visualize_flow.py:69
↓ 1 callersFunctioncompute_grid_indices
(image_shape, patch_size=TRAIN_SIZE, min_overlap=20)
visualize_flow.py:30
↓ 1 callersMethodcorr
(fmap1, fmap2)
core/corr.py:52
↓ 1 callersMethodcorr
(self, fmap1, fmap2)
core/FlowFormer/LatentCostFormer/encoder.py:324
↓ 1 callersFunctioncount_parameters
(model)
train_FlowFormer.py:53
↓ 1 callersFunctioncreate_sintel_submission
Create submission for the Sintel leaderboard
evaluate_FlowFormer.py:82
↓ 1 callersMethodencode_flow_token
cost_maps - B*H1*W1, cost_heads_num, H2, W2 coords - B, 2, H1, W1
core/FlowFormer/LatentCostFormer/decoder.py:185
↓ 1 callersMethoderaser_transform
Occlusion augmentation
core/utils/augmentor.py:55
↓ 1 callersMethoderaser_transform
(self, img1, img2)
core/utils/augmentor.py:173
↓ 1 callersFunctionfetch_optimizer
Create the optimizer and learning rate scheduler
core/optimizer/__init__.py:4
↓ 1 callersFunctionflow_uv_to_colors
Applies the flow color wheel to (possibly clipped) flow components u and v. According to the C++ source code of Daniel Scharstein Accord
core/utils/flow_viz.py:70
↓ 1 callersMethodforward
Estimate optical flow between pair of frames
core/raft.py:86
↓ 1 callersMethodforward_features
(self, x)
core/FlowFormer/LatentCostFormer/twins.py:916
↓ 1 callersFunctiongenerate_pairs
(dirname, start_idx, end_idx)
visualize_flow.py:175
↓ 1 callersFunctionget_cfg
()
configs/kitti.py:70
↓ 1 callersFunctionget_cfg
()
configs/submission.py:64
↓ 1 callersFunctionindexing
Wrapper for grid_sample, uses pixel coordinates
core/utils/utils.py:74
↓ 1 callersFunctioninitialize_flow
Flow is represented as difference between two means flow = mean1 - mean0
core/FlowFormer/LatentCostFormer/decoder.py:20
↓ 1 callersMethodinitialize_flow
Flow is represented as difference between two coordinate grids flow = coords1 - coords0
core/raft.py:63
↓ 1 callersMethodinverse
(self)
core/utils/flow_transforms.py:97
↓ 1 callersFunctionmake_colorwheel
Generates a color wheel for optical flow visualization as presented in: Baker et al. "A Database and Evaluation Methodology for Optical F
core/utils/flow_viz.py:20
↓ 1 callersFunctionprepare_image
(root_dir, viz_root_dir, fn1, fn2, keep_size)
visualize_flow.py:116
↓ 1 callersFunctionprocess_cfg
(cfg)
core/utils/misc.py:14
↓ 1 callersFunctionprocess_sintel
(sintel_dir)
visualize_flow.py:165
↓ 1 callersFunctionprocess_transformer_cfg
(cfg)
core/utils/misc.py:5
↓ 1 callersMethodpush
(self, metrics)
core/utils/logger.py:31
↓ 1 callersFunctionreadFlow
Read .flo file in Middlebury format
core/utils/frame_utils.py:12
↓ 1 callersFunctionreadPFM
(file)
core/utils/frame_utils.py:33
↓ 1 callersMethodresize_sparse_flow_map
(self, flow, valid, fx=1.0, fy=1.0)
core/utils/augmentor.py:186
↓ 1 callersFunctionretrieve_tokens
(feat, center, window_size, sampler)
core/FlowFormer/common.py:283
↓ 1 callersMethodscale
(self, loss)
train_FlowFormer.py:41
↓ 1 callersFunctionsequence_loss
Loss function defined over sequence of flow predictions
core/loss.py:5
↓ 1 callersMethodspatial_transform
(self, img1, img2, flow)
core/utils/augmentor.py:70
↓ 1 callersMethodspatial_transform
(self, img1, img2, flow, valid)
core/utils/augmentor.py:220
↓ 1 callersFunctiontrain
(cfg)
train_FlowFormer.py:56
↓ 1 callersMethodunscale_
(self, optimizer)
train_FlowFormer.py:43
↓ 1 callersFunctionupflow8
(flow, mode='bilinear')
core/utils/utils.py:99
↓ 1 callersMethodupsample_flow
Upsample flow field [H/8, W/8, 2] -> [H, W, 2] using convex combination
core/raft.py:72
↓ 1 callersMethodupsample_flow
Upsample flow field [H/8, W/8, 2] -> [H, W, 2] using convex combination
core/FlowFormer/LatentCostFormer/decoder.py:172
↓ 1 callersFunctionvalidate_chairs
Perform evaluation on the FlyingChairs (test) split
evaluate_FlowFormer.py:27
↓ 1 callersFunctionvalidate_kitti
Peform validation using the KITTI-2015 (train) split
evaluate_FlowFormer.py:113
↓ 1 callersFunctionvalidate_sintel
Peform validation using the Sintel (train) split
evaluate_FlowFormer.py:48
↓ 1 callersFunctionvisualize_flow
(root_dir, viz_root_dir, model, img_pairs, keep_size)
visualize_flow.py:154
↓ 1 callersMethodwrite_dict
(self, results)
core/utils/logger.py:44
FunctionPYBIND11_MODULE
alt_cuda_corr/correlation.cpp:51
Method__call__
(self, coords)
core/corr.py:29
Method__call__
(self, coords)
core/corr.py:73
Method__call__
(self, img1, img2, flow)
core/utils/augmentor.py:119
next →1–100 of 336, ranked by callers