wing-ops/prediction/image/mx15hdi/Detect/mmsegmentation/configs/nonlocal_net
jeonghyo.k 3946ff6a25 feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거
- 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 타입 오류 수정
2026-03-10 18:37:36 +09:00
..
nonlocal_net.yml feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x512_20k_voc12aug.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x512_40k_voc12aug.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x512_80k_ade20k.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x512_160k_ade20k.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x1024_40k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_512x1024_80k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_769x769_40k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r50-d8_769x769_80k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x512_20k_voc12aug.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x512_40k_voc12aug.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x512_80k_ade20k.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x512_160k_ade20k.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x1024_40k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_512x1024_80k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_769x769_40k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
nonlocal_r101-d8_769x769_80k_cityscapes.py feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00
README.md feat(prediction): 이미지 분석 서버 Docker 패키징 + DB 코드 제거 2026-03-10 18:37:36 +09:00

NonLocal Net

Non-local Neural Networks

Introduction

Official Repo

Code Snippet

Abstract

Both convolutional and recurrent operations are building blocks that process one local neighborhood at a time. In this paper, we present non-local operations as a generic family of building blocks for capturing long-range dependencies. Inspired by the classical non-local means method in computer vision, our non-local operation computes the response at a position as a weighted sum of the features at all positions. This building block can be plugged into many computer vision architectures. On the task of video classification, even without any bells and whistles, our non-local models can compete or outperform current competition winners on both Kinetics and Charades datasets. In static image recognition, our non-local models improve object detection/segmentation and pose estimation on the COCO suite of tasks. Code is available at this https URL.

Citation

@inproceedings{wang2018non,
  title={Non-local neural networks},
  author={Wang, Xiaolong and Girshick, Ross and Gupta, Abhinav and He, Kaiming},
  booktitle={Proceedings of the IEEE conference on computer vision and pattern recognition},
  pages={7794--7803},
  year={2018}
}

Results and models

Cityscapes

Method Backbone Crop Size Lr schd Mem (GB) Inf time (fps) mIoU mIoU(ms+flip) config download
NonLocalNet R-50-D8 512x1024 40000 7.4 2.72 78.24 - config model | log
NonLocalNet R-101-D8 512x1024 40000 10.9 1.95 78.66 - config model | log
NonLocalNet R-50-D8 769x769 40000 8.9 1.52 78.33 79.92 config model | log
NonLocalNet R-101-D8 769x769 40000 12.8 1.05 78.57 80.29 config model | log
NonLocalNet R-50-D8 512x1024 80000 - - 78.01 - config model | log
NonLocalNet R-101-D8 512x1024 80000 - - 78.93 - config model | log
NonLocalNet R-50-D8 769x769 80000 - - 79.05 80.68 config model | log
NonLocalNet R-101-D8 769x769 80000 - - 79.40 80.85 config model | log

ADE20K

Method Backbone Crop Size Lr schd Mem (GB) Inf time (fps) mIoU mIoU(ms+flip) config download
NonLocalNet R-50-D8 512x512 80000 9.1 21.37 40.75 42.05 config model | log
NonLocalNet R-101-D8 512x512 80000 12.6 13.97 42.90 44.27 config model | log
NonLocalNet R-50-D8 512x512 160000 - - 42.03 43.04 config model | log
NonLocalNet R-101-D8 512x512 160000 - - 44.63 45.79 config model | log

Pascal VOC 2012 + Aug

Method Backbone Crop Size Lr schd Mem (GB) Inf time (fps) mIoU mIoU(ms+flip) config download
NonLocalNet R-50-D8 512x512 20000 6.4 21.21 76.20 77.12 config model | log
NonLocalNet R-101-D8 512x512 20000 9.8 14.01 78.15 78.86 config model | log
NonLocalNet R-50-D8 512x512 40000 - - 76.65 77.47 config model | log
NonLocalNet R-101-D8 512x512 40000 - - 78.27 79.12 config model | log