Official implementation for "Harmonious Semantic Line Detection via Maximal Weight Clique Selection" [paper] [supp] [video] [arxiv].
- PyTorch >= 1.3.1
- CUDA >= 10.0
- CuDNN >= 7.6.5
- python >= 3.6
Create conda environment:
$ conda create -n MWCS python=3.6 anaconda
$ conda activate MWCS
$ pip install opencv-python==3.4.2.16
$ conda install pytorch==1.6.0 torchvision==0.7.0 cudatoolkit=10.1 -c pytorch
Download repository:
$ git clone https://github.com/dongkwonjin/Semantic-Line-MWCS.git
-
Download preprocessed data for SEL, SEL_Hard, and NKL(SL5K) datasets to
root/Preprocessing/
. You can generate these data using the source codes inPreprocessing/
.SEL
andSEL_Hard
datasets are provided in here.NKL
dataset is provided in here. -
Download our model parameters to
root/Modeling/
if you want to get the performance of the paper. -
Edit
config.py
. Please modifysettings for path
in the script file. Also, if you want to get the performance of the paper, please inputrun_mode
to 'test_paper'. -
Run with
cd Semantic-Line-MWCS-master/(Modeling or Prerpocessing)/(..)/code/
python main.py
@Inproceedings{
Jin2021MWCS,
title={Harmonious Semantic Line Detection via Maximal Weight Clique Selection},
author={Jin, Dongkwon and Park, Wonhui and Jeong, Seong-Gyun and Kim, Chang-Su},
booktitle={CVPR},
year={2021}
}