負責同學:R10922172 彭旻翊
放置資料夾:Exp_1
一、針對indoor, outdoor不同場景使用不同model, 觀察效果
二、調整並嘗試不同resize參數, 並觀察input size對結果的影響為何
三、調整並嘗試不同max_superpoints參數, 並觀察superpoints數量對結果的影響為何
四、嘗試將indoor的圖片用於outdoor的model。outdoor的圖片用於indoor的model。觀察效果
- Python 3 >= 3.5
- PyTorch >= 1.1
- OpenCV >= 3.4 (4.1.2.30 recommended for best GUI keyboard interaction, see this note)
- Matplotlib >= 3.1
- NumPy >= 1.18
The --input
flag also accepts a path to a directory. We provide a directory of sample images.
./demo_superglue.py --input input/indoor/ --output_dir output/dump_indoor --resize 320 240 --no_display
The --resize
flag can be used to resize the input image in three ways:
--resize
width
height
: will resize to exactwidth
xheight
dimensions--resize
max_dimension
: will resize largest input image dimension tomax_dimension
--resize
-1
: will not resize (i.e. use original image dimensions)--max_keypoints
: Maximum number of keypoints detected by Superpoint ('-1' keeps all keypoints) (default: -1)- Use
--show_keypoints
to visualize the detected keypoints (default:False
).
負責同學:R11922185 杜嘉煒
放置資料夾:Exp_3_2
- Python == 3.8.10
- Torch == 1.13.0a0+936e930
- OpenCV_Python == 4.5.1
- matplotlib == 3.6.2
- NumPy == 1.23.5
libGL.so.1: cannot open shared object file: No such file or directory 的報錯,我們只需執行以下命令即可修復
sudo apt-get update
sudo apt-get install ffmpeg libsm6 libxext6 -y
python trainer.py
--epoch
可以設置epoch數目 (default: 20
).
--train_path
用來設置你的訓練資料集的位置.
--eval_output_dir
用來設置可視化的圖片的輸出位置 (default: pairs/
).
--show_keypoints
可以設置是否查看關鍵點的位置 (default: False
).
若要更換爲自己的訓練集,需要命名為COCO
+數字
的組合,也可以直接執行rename.py
負責同學:R11943113 葉冠宏
放置資料夾:Exp_3_1
本次實驗主要在比較superpoint+superglue用於作業三之效果呈現。由於原本作業三已經執行過orb+brute-force matcher,因此資料夾的code中僅執行superpoint+superglue的部分。
python vo.py --input ./frames/ --camera_parameters camera_parameters.npy
--input 後面放置的參數為影像所放置的資料夾,--camera_parameters 後面所放置的參數為相機的內在參數檔案。
- numpy
- cv2
- sys
- os
- argparse
- glob
- torch
- collections
- matplotlib
- copy
- pathlib
- open3d
負責同學:R11943113 葉冠宏
放置資料夾:Exp_3_2
本次實驗主要在比較orb+bruteforce matcher, superpoint+flann matcher, superpoint+superglue 三種方法對於trajectory的預測情形,以及和groundtruth做比較。我使用的資料集是來自於KITTI。
python trajectory.py --detector superpoint --matcher superglue
--detector 後面所放的參數為所欲使用的detector演算法,包含superpoint或是ORB。--matcher 後面所放置的參數為所欲使用的matching演算法,包含superglue,flann,或是bruteforce matcher。
- numpy
- cv2
- sys
- os
- argparse
- glob
- torch
- collections
- matplotlib
- copy
- pathlib