forked from jiexiong2016/GCNv2_SLAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for arbitrary resolutioin, created nn_only for fixed 32…
…0x240 size
- Loading branch information
t
committed
May 22, 2019
1 parent
a9e0b53
commit 76d9f29
Showing
10 changed files
with
110 additions
and
28 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
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,69 @@ | ||
%YAML:1.0 | ||
|
||
#-------------------------------------------------------------------------------------------- | ||
# Camera Parameters. Adjust them! | ||
#-------------------------------------------------------------------------------------------- | ||
|
||
# Camera calibration and distortion parameters (OpenCV) | ||
Camera.fx: 267.7 | ||
Camera.fy: 269.6 | ||
Camera.cx: 160.05 | ||
Camera.cy: 123.8 | ||
|
||
Camera.k1: 0.0 | ||
Camera.k2: 0.0 | ||
Camera.p1: 0.0 | ||
Camera.p2: 0.0 | ||
|
||
Camera.width: 320 | ||
Camera.height: 240 | ||
|
||
# Camera frames per second | ||
Camera.fps: 30.0 | ||
|
||
# IR projector baseline times fx (aprox.) | ||
Camera.bf: 40.0 | ||
|
||
# Color order of the images (0: BGR, 1: RGB. It is ignored if images are grayscale) | ||
Camera.RGB: 1 | ||
|
||
# Close/Far threshold. Baseline times. | ||
ThDepth: 40.0 | ||
|
||
# Deptmap values factor | ||
DepthMapFactor: 5000.0 | ||
|
||
#-------------------------------------------------------------------------------------------- | ||
# ORB Parameters | ||
#-------------------------------------------------------------------------------------------- | ||
|
||
# ORB Extractor: Number of features per image | ||
ORBextractor.nFeatures: 1000 | ||
|
||
# ORB Extractor: Scale factor between levels in the scale pyramid | ||
ORBextractor.scaleFactor: 1.2 | ||
|
||
# ORB Extractor: Number of levels in the scale pyramid | ||
ORBextractor.nLevels: 8 | ||
|
||
# ORB Extractor: Fast threshold | ||
# Image is divided in a grid. At each cell FAST are extracted imposing a minimum response. | ||
# Firstly we impose iniThFAST. If no corners are detected we impose a lower value minThFAST | ||
# You can lower these values if your images have low contrast | ||
ORBextractor.iniThFAST: 20 | ||
ORBextractor.minThFAST: 7 | ||
|
||
#-------------------------------------------------------------------------------------------- | ||
# Viewer Parameters | ||
#-------------------------------------------------------------------------------------------- | ||
Viewer.KeyFrameSize: 0.05 | ||
Viewer.KeyFrameLineWidth: 1 | ||
Viewer.GraphLineWidth: 0.9 | ||
Viewer.PointSize:2 | ||
Viewer.CameraSize: 0.08 | ||
Viewer.CameraLineWidth: 3 | ||
Viewer.ViewpointX: 0 | ||
Viewer.ViewpointY: -0.7 | ||
Viewer.ViewpointZ: -1.8 | ||
Viewer.ViewpointF: 500 | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# GCNv2 trained with more augmentations and larger batch | ||
GCN_PATH=gcn2_aug.pt ./rgbd_gcn ../Vocabulary/GCNvoc.bin TUM3.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt | ||
# Run GCN, removed resolution requirment. It may affect the actual performance. Ideally, GCNv2 should be trained/finetuned in desired resolution. | ||
GCN_PATH=gcn2.pt ./rgbd_gcn ../Vocabulary/GCNvoc.bin TUM3.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt | ||
|
||
# Reproduce results in comparison with ORB as in our paper, will enable NN_ONLY and use 320x240 resolution. | ||
|
||
# GCNv2 | ||
./rgbd_gcn ../Vocabulary/GCNvoc.bin TUM3.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt | ||
# NN_ONLY=1 GCN_PATH=gcn2.pt ./rgbd_gcn ../Vocabulary/GCNvoc.bin TUM3_small.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt | ||
|
||
# Vanilla ORB | ||
USE_ORB=1 ./rgbd_gcn ../Vocabulary/ORBvoc.bin TUM3.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt | ||
# NN_ONLY=1 USE_ORB=1 ./rgbd_gcn ../Vocabulary/ORBvoc.bin TUM3_small.yaml ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household ~/Workspace/Datasets/TUM/freiburg3/rgbd_dataset_freiburg3_long_office_household/associations.txt |
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