All Projects → lck1201 → win_det_heatmaps

lck1201 / win_det_heatmaps

Licence: MIT license
Window Detection in Facade Using Heatmaps Fushion

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to win det heatmaps

dotnet-design-patterns-samples
The samples of .NET design patterns
Stars: ✭ 25 (-13.79%)
Mutual labels:  facade
zipcode
ZipCode Cep do Brazil
Stars: ✭ 43 (+48.28%)
Mutual labels:  facade
laracash
PHP Laravel Money Package 💰
Stars: ✭ 52 (+79.31%)
Mutual labels:  facade
laravel-barcode-generator
Generate multiple barcode in Laravel as well as in core PHP for your project, Very easy to install and easy to manage, no difficulties or no complexities for use, keep always smile. :)
Stars: ✭ 17 (-41.38%)
Mutual labels:  facade
thermostat
Collection of NLP model explanations and accompanying analysis tools
Stars: ✭ 126 (+334.48%)
Mutual labels:  heatmaps
oh-my-design-patterns
🎨 Record the articles and code I wrote while learning design patterns
Stars: ✭ 33 (+13.79%)
Mutual labels:  facade
scalajs-react-material-ui
Scala.js wrapper of http://material-ui.com for use with https://github.com/japgolly/scalajs-react
Stars: ✭ 29 (+0%)
Mutual labels:  facade
Seotools
SEO Tools for Laravel
Stars: ✭ 2,406 (+8196.55%)
Mutual labels:  facade
Design patterns in typescript
📐 Design pattern implementations in TypeScript
Stars: ✭ 4,072 (+13941.38%)
Mutual labels:  facade
laravel-s3-tools
This Laravel package contains additional functionality not currently in Laravel for interfacing with Amazon's S3 service (including managing versioned objects).
Stars: ✭ 31 (+6.9%)
Mutual labels:  facade
yii2-facades
Facades for Yii 2
Stars: ✭ 21 (-27.59%)
Mutual labels:  facade
lara-block-io
A Laravel Package/Facade for the Block.io API
Stars: ✭ 22 (-24.14%)
Mutual labels:  facade
Geo Heatmap
🗺️ Generate an interactive geo heatmap from your Google location data
Stars: ✭ 1,861 (+6317.24%)
Mutual labels:  heatmaps
Heatmap.js
🔥 JavaScript Library for HTML5 canvas based heatmaps
Stars: ✭ 5,685 (+19503.45%)
Mutual labels:  heatmaps
Countly Server
Countly helps you get insights from your application. Available self-hosted or on private cloud.
Stars: ✭ 4,857 (+16648.28%)
Mutual labels:  heatmaps
heatmap-rails
Complete solution for clicks & user focused areas on websites. It includes functionality to store & show heatmap related data.
Stars: ✭ 33 (+13.79%)
Mutual labels:  heatmaps
chessalyzer.js
A JavaScript library for batch analyzing chess games
Stars: ✭ 14 (-51.72%)
Mutual labels:  heatmaps

Window Detection in Facades Using Heatmaps Fusion

Official implementation of our paper.

Chuan-Kang Li, Hong-Xin Zhang, Jia-Xin Liu, Yuan-Qing Zhang, Shan-Chen Zou, Yu-Tong Fang. Window Detection in Facades Using Heatmap Fusion[J].Journal of Computer Science and Technology, 2020, 35(4): 900-912.

Introduction

Window detection is a key component in many graphics and vision applications related to 3D city modeling and scene visualization. We present a novel approach for learning to recognize windows in a colored facade image. Rather than predicting bounding boxes or performing facade segmentation, our system locates keypoints of windows, and learns keypoint relationships to group them together into windows. A further module provides extra recognizable information at the window center. Locations and relationships of keypoints are encoded in different types of heatmaps, which are learned in an end-to-end network. We have also constructed a facade dataset with 3418 annotated images to facilitate research in this field. It has richly varying facade structure, occlusion, lighting conditions, and angle of view. On our dataset, our method achieves precision of 91.4% and recall of 91.0% under 50% IoU. We also make a quantitative comparison with state-of-the-art methods to verify the utility of our proposed method. Applications based on our window detector are also demonstrated, such as window blending.

image

Preparation

Environment

Please install PyTorch following the official webite. In addition, you have to install other necessary dependencies.

pip3 install -r requirements.txt

Dataset

The zju_facade_jcst2020 database is described in the paper, and now avaliable on BaiduYun(code: qlx5), GoogleDrive

Facade images were collected from the Internet and existing datasets including TSG-20, TSG-60, ZuBuD, CMP, ECP, and then data cleaning proceeded to ensure data quality standards. Using the open source software LabelMe, we manually annotated the positions of four corners of windows in order.

Model

You can use our trained models from BaiduYun(code: n0ev), GoogleDrive. ResNet18, MobileNetV2, ShuffleNetV2 are provided. All the configurations are written in *.yaml files and config_pytorch.py, and you can change it up to your own needs.

The table concludes the performance of three models on our i7-6700K + 1080Ti platform. Note that center verification module is not used.

Architecture #Params FLOPs Time P_50 P_75 P_mean R_50 R_75 R_mean
ShuffleNetV2 + Head 13.8M 29.5G 62ms 85.2% 62.8% 54.9% 86.2% 63.5% 55.5%
MobileNetV2 + Head 16.9M 31.2G 65ms 87.0% 64.9% 56.8% 90.0% 67.1% 58.5%
ResNet18 + Head 19.6M 32.0G 62ms 88.4% 68.4% 58.7% 91.2% 70.5% 60.5%

Usage

Train

python train.py --cfg /path/to/yaml/config \
    --data /path/to/data/root \
    --out /path/to/output/root

Test

python test.py --cfg /path/to/yaml/config --model /path/to/model \
    --data /path/to/data/root \
    --out /path/to/output/root

Inference

python infer.py --cfg /path/to/yaml/config \
                --model /path/to/model \
                --infer /path/to/image/directory

Examples

Applications

Facade Unification

We have developed a computational workflow for window texture blending based on our window detection method. Based on our technique, graphics designer can easily manipulate facade photos to create ideal building textures, while removing windows which are unsatisfactory due to their open or closed status, lighting conditions and occlusion, replacing them with the selected unified window texture.

Facade Beautification

Applying the above workflow, image beautification can be also performed to generate visually pleasant results with mixed features.

Facade Analytics

As our method can efficiently locate windows in urban facade images, it is of use for automatically analyzing semantic structure and extracting numerical information. With additional simple steps, it is easy to determine the windows in a single row or column. Furthermore, it can be adopted to predict building layers and symmetric feature lines.

Citation

If our code/dataset/models/paper helps your research, please cite with:

@article{Chuan-Kang Li:900, 
    author = {Chuan-Kang Li, Hong-Xin Zhang, Jia-Xin Liu, Yuan-Qing Zhang, Shan-Chen Zou, Yu-Tong Fang},
    title = {Window Detection in Facades Using Heatmap Fusion},
    publisher = {Journal of Computer Science and Technology},
    year = {2020},
    journal = {Journal of Computer Science and Technology},
    volume = {35},
    number = {4},
    eid = {900},
    numpages = {12},
    pages = {900},
    keywords = {facade parsing;window detection;keypoint localization},
    url = {http://jcst.ict.ac.cn/EN/abstract/article_2660.shtml},
    doi = {10.1007/s11390-020-0253-4}
}    

Acknowledgement

The major contributors of this repository include Chuankang Li, Yuanqing Zhang, Shanchen Zou, and Hongxin Zhang.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].