- KITTI dataset
- image_2 (.png) and ground truth poses (.txt) are required.
- download link
- image_2 (.png) and ground truth poses (.txt) are required.
- Pre-trained LSeg model
${ROOT}
└── data/
└── kitti/
└── 00/
└── image_2/
└── poses.txt
└── pittsburgh/
└── lseg/
└── codebook.npy
└── text_embedding.npy
└── sripts/
└── checkpoints/
└── demo_e200.ckpt
mode
: Select mode. (default:train
, options:train
,test
,cluster
)resume
: Path to load checkpoint from, for resuming training or testing.dataset
: Dataset to use. (default:pittsburgh
, options:pittsburgh
,kitti
)random
: Randomize dataset for test. (default:False
)extract_dataset
: Extract partial dataset from whole dataset. (default:False
)
python main.py --mode=test --resume=<path to checkpoint> --dataset=pittsburgh
- Use image_2 for the test.
mode
: Select mode. (default:train
, options:train
,test
,cluster
)resume
: Path to load checkpoint from, for resuming training or testing.dataset
: Dataset to use. (default:pittsburgh
, options:pittsburgh
,kitti
)random
: Randomize dataset for test. (default:False
)
python main.py --mode=test --resume=<path to checkpoint> --dataset=kitti
- Input custom label set to create text embedding.
cd <path to repository>
python build_text_embedding.py
dataset
: Dataset to use. (default:pittsburgh
, options:pittsburgh
,kitti
)random
: Randomize dataset for test. (default:False
)build_codebook
: IfTrue
, generate codebook for BoW. IfFalse
calculate recall for query images. (default:False
)use_codebook
: IfTrue
, use predefined codebook. (default:False
)extract_dataset
: Extract partial dataset from whole dataset. (default:False
)
cd <path to repository>
python extract_pixel_level_embedding.py --dataset=pittsburgh
dataset
: Dataset to use. (default:pittsburgh
, options:pittsburgh
,kitti
)random
: Randomize dataset for test. (default:False
)build_codebook
: IfTrue
, generate codebook for BoW. IfFalse
calculate recall for query images. (default:False
)use_codebook
: IfTrue
, use predefined codebook. (default:False
)extract_dataset
: Extract partial dataset from whole dataset. (default:False
)
cd <path to repository>
python extract_pixel_level_embedding.py --dataset=kitti