-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
898 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Python Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [ assigned, opened, synchronize, reopened ] | ||
jobs: | ||
build: | ||
name: Run Python Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get remove libunwind-14-dev || true | ||
sudo apt-get install -y libceres-dev libeigen3-dev | ||
python -m pip install --upgrade pip | ||
python -m pip install pytest pytest-cov | ||
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu | ||
python -m pip install -e .[dev] | ||
python -m pip install -e .[extra] | ||
- name: Test with pytest | ||
run: | | ||
set -o pipefail | ||
pytest --junitxml=pytest.xml --cov=gluefactory tests/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
model: | ||
name: two_view_pipeline | ||
extractor: | ||
name: extractors.aliked | ||
max_num_keypoints: 2048 | ||
detection_threshold: 0.0 | ||
matcher: | ||
name: matchers.lightglue_pretrained | ||
features: aliked | ||
depth_confidence: -1 | ||
width_confidence: -1 | ||
filter_threshold: 0.1 | ||
benchmarks: | ||
megadepth1500: | ||
data: | ||
preprocessing: | ||
side: long | ||
resize: 1600 | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
hpatches: | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
model: | ||
extractor: | ||
max_num_keypoints: 1024 # overwrite config above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
data: | ||
name: homographies | ||
data_dir: revisitop1m | ||
train_size: 150000 | ||
val_size: 2000 | ||
batch_size: 128 | ||
num_workers: 14 | ||
homography: | ||
difficulty: 0.7 | ||
max_angle: 45 | ||
photometric: | ||
name: lg | ||
model: | ||
name: two_view_pipeline | ||
extractor: | ||
name: extractors.disk_kornia | ||
max_num_keypoints: 512 | ||
force_num_keypoints: True | ||
detection_threshold: 0.0 | ||
trainable: False | ||
ground_truth: | ||
name: matchers.homography_matcher | ||
th_positive: 3 | ||
th_negative: 3 | ||
matcher: | ||
name: matchers.lightglue | ||
filter_threshold: 0.1 | ||
input_dim: 128 | ||
flash: false | ||
checkpointed: true | ||
train: | ||
seed: 0 | ||
epochs: 40 | ||
log_every_iter: 100 | ||
eval_every_iter: 500 | ||
lr: 1e-4 | ||
lr_schedule: | ||
start: 20 | ||
type: exp | ||
on_epoch: true | ||
exp_div_10: 10 | ||
plot: [5, 'gluefactory.visualization.visualize_batch.make_match_figures'] | ||
benchmarks: | ||
hpatches: | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
data: | ||
name: megadepth | ||
preprocessing: | ||
resize: 1024 | ||
side: long | ||
square_pad: True | ||
train_split: train_scenes_clean.txt | ||
train_num_per_scene: 300 | ||
val_split: valid_scenes_clean.txt | ||
val_pairs: valid_pairs.txt | ||
min_overlap: 0.1 | ||
max_overlap: 0.7 | ||
num_overlap_bins: 3 | ||
read_depth: true | ||
read_image: true | ||
batch_size: 32 | ||
num_workers: 14 | ||
load_features: | ||
do: false # enable this if you have cached predictions | ||
path: exports/megadepth-undist-depth-r1024_DISK-k2048-nms5/{scene}.h5 | ||
padding_length: 2048 | ||
padding_fn: pad_local_features | ||
model: | ||
name: two_view_pipeline | ||
extractor: | ||
name: extractors.disk_kornia | ||
max_num_keypoints: 512 | ||
force_num_keypoints: True | ||
detection_threshold: 0.0 | ||
trainable: False | ||
ground_truth: | ||
name: matchers.homography_matcher | ||
th_positive: 3 | ||
th_negative: 3 | ||
matcher: | ||
name: matchers.lightglue | ||
filter_threshold: 0.1 | ||
input_dim: 128 | ||
flash: false | ||
checkpointed: true | ||
allow_no_extract: True | ||
train: | ||
seed: 0 | ||
epochs: 50 | ||
log_every_iter: 100 | ||
eval_every_iter: 1000 | ||
lr: 1e-4 | ||
lr_schedule: | ||
start: 30 | ||
type: exp | ||
on_epoch: true | ||
exp_div_10: 10 | ||
dataset_callback_fn: sample_new_items | ||
plot: [5, 'gluefactory.visualization.visualize_batch.make_match_figures'] | ||
benchmarks: | ||
megadepth1500: | ||
data: | ||
preprocessing: | ||
side: long | ||
resize: 1024 | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
hpatches: | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
model: | ||
extractor: | ||
max_num_keypoints: 1024 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
model: | ||
name: two_view_pipeline | ||
extractor: | ||
name: extractors.sift | ||
backend: pycolmap_cuda | ||
max_num_keypoints: 4096 | ||
matcher: | ||
name: matchers.lightglue_pretrained | ||
features: sift | ||
depth_confidence: -1 | ||
width_confidence: -1 | ||
filter_threshold: 0.1 | ||
benchmarks: | ||
megadepth1500: | ||
data: | ||
preprocessing: | ||
side: long | ||
resize: 1600 | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
hpatches: | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 | ||
model: | ||
extractor: | ||
max_num_keypoints: 1024 # overwrite config above |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
data: | ||
name: homographies | ||
data_dir: revisitop1m | ||
train_size: 150000 | ||
val_size: 2000 | ||
batch_size: 128 | ||
num_workers: 14 | ||
homography: | ||
difficulty: 0.7 | ||
max_angle: 45 | ||
photometric: | ||
name: lg | ||
model: | ||
name: two_view_pipeline | ||
extractor: | ||
name: gluefactory_nonfree.superpoint | ||
max_num_keypoints: 512 | ||
force_num_keypoints: True | ||
detection_threshold: 0.0 | ||
nms_radius: 3 | ||
trainable: False | ||
ground_truth: | ||
name: matchers.homography_matcher | ||
th_positive: 3 | ||
th_negative: 3 | ||
matcher: | ||
name: matchers.lightglue | ||
filter_threshold: 0.1 | ||
flash: false | ||
checkpointed: true | ||
train: | ||
seed: 0 | ||
epochs: 40 | ||
log_every_iter: 100 | ||
eval_every_iter: 500 | ||
lr: 1e-4 | ||
lr_schedule: | ||
start: 20 | ||
type: exp | ||
on_epoch: true | ||
exp_div_10: 10 | ||
plot: [5, 'gluefactory.visualization.visualize_batch.make_match_figures'] | ||
benchmarks: | ||
hpatches: | ||
eval: | ||
estimator: opencv | ||
ransac_th: 0.5 |
Oops, something went wrong.