- prediction/image/ FastAPI 서버 Docker 환경 구성 - Dockerfile: PyTorch 2.1 + CUDA 12.1 기반 GPU 이미지 - docker-compose.yml: GPU 할당 + 데이터 볼륨 마운트 - requirements.txt: 서버 의존성 목록 - .env.example: 환경변수 템플릿 - DOCKER_USAGE.md: 빌드/실행/API 사용법 문서 - Dockerfile에 .dockerignore 제외 폴더 mkdir -p 추가 - .gitignore: prediction/image 결과물 및 모델 가중치(.pth) 제외 추가 - dbInsert_csv.py, dbInsert_shp.py 삭제 (미사용 DB 로직) - api.py: dbInsert import 및 주석 처리된 DB 호출 코드 제거 - aerialRouter.ts: req.params 타입 오류 수정 |
||
|---|---|---|
| .. | ||
| dnl_r50-d8_512x512_80k_ade20k.py | ||
| dnl_r50-d8_512x512_160k_ade20k.py | ||
| dnl_r50-d8_512x1024_40k_cityscapes.py | ||
| dnl_r50-d8_512x1024_80k_cityscapes.py | ||
| dnl_r50-d8_769x769_40k_cityscapes.py | ||
| dnl_r50-d8_769x769_80k_cityscapes.py | ||
| dnl_r101-d8_512x512_80k_ade20k.py | ||
| dnl_r101-d8_512x512_160k_ade20k.py | ||
| dnl_r101-d8_512x1024_40k_cityscapes.py | ||
| dnl_r101-d8_512x1024_80k_cityscapes.py | ||
| dnl_r101-d8_769x769_40k_cityscapes.py | ||
| dnl_r101-d8_769x769_80k_cityscapes.py | ||
| dnlnet.yml | ||
| README.md | ||
DNLNet
Disentangled Non-Local Neural Networks
Introduction
Abstract
The non-local block is a popular module for strengthening the context modeling ability of a regular convolutional neural network. This paper first studies the non-local block in depth, where we find that its attention computation can be split into two terms, a whitened pairwise term accounting for the relationship between two pixels and a unary term representing the saliency of every pixel. We also observe that the two terms trained alone tend to model different visual clues, e.g. the whitened pairwise term learns within-region relationships while the unary term learns salient boundaries. However, the two terms are tightly coupled in the non-local block, which hinders the learning of each. Based on these findings, we present the disentangled non-local block, where the two terms are decoupled to facilitate learning for both terms. We demonstrate the effectiveness of the decoupled design on various tasks, such as semantic segmentation on Cityscapes, ADE20K and PASCAL Context, object detection on COCO, and action recognition on Kinetics.
Citation
This example is to reproduce "Disentangled Non-Local Neural Networks" for semantic segmentation. It is still in progress.
Citation
@misc{yin2020disentangled,
title={Disentangled Non-Local Neural Networks},
author={Minghao Yin and Zhuliang Yao and Yue Cao and Xiu Li and Zheng Zhang and Stephen Lin and Han Hu},
year={2020},
booktitle={ECCV}
}
Results and models (in progress)
Cityscapes
| Method | Backbone | Crop Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|---|---|---|---|---|---|---|---|---|---|
| DNLNet | R-50-D8 | 512x1024 | 40000 | 7.3 | 2.56 | 78.61 | - | config | model | log |
| DNLNet | R-101-D8 | 512x1024 | 40000 | 10.9 | 1.96 | 78.31 | - | config | model | log |
| DNLNet | R-50-D8 | 769x769 | 40000 | 9.2 | 1.50 | 78.44 | 80.27 | config | model | log |
| DNLNet | R-101-D8 | 769x769 | 40000 | 12.6 | 1.02 | 76.39 | 77.77 | config | model | log |
| DNLNet | R-50-D8 | 512x1024 | 80000 | - | - | 79.33 | - | config | model | log |
| DNLNet | R-101-D8 | 512x1024 | 80000 | - | - | 80.41 | - | config | model | log |
| DNLNet | R-50-D8 | 769x769 | 80000 | - | - | 79.36 | 80.70 | config | model | log |
| DNLNet | R-101-D8 | 769x769 | 80000 | - | - | 79.41 | 80.68 | config | model | log |
ADE20K
| Method | Backbone | Crop Size | Lr schd | Mem (GB) | Inf time (fps) | mIoU | mIoU(ms+flip) | config | download |
|---|---|---|---|---|---|---|---|---|---|
| DNLNet | R-50-D8 | 512x512 | 80000 | 8.8 | 20.66 | 41.76 | 42.99 | config | model | log |
| DNLNet | R-101-D8 | 512x512 | 80000 | 12.8 | 12.54 | 43.76 | 44.91 | config | model | log |
| DNLNet | R-50-D8 | 512x512 | 160000 | - | - | 41.87 | 43.01 | config | model | log |
| DNLNet | R-101-D8 | 512x512 | 160000 | - | - | 44.25 | 45.78 | config | model | log |