Skip to content

[2022.05.16 ~ 2022.06.10] πŸŒ€οΈλ―Έμ„Έλ¨Όμ§€ μ—†λŠ” 맑은 μ‚¬μ§„πŸ“· - λΆ€μŠ€νŠΈμΊ ν”„ AI Tech 3κΈ° μ΅œμ’… ν”„λ‘œμ νŠΈ

Notifications You must be signed in to change notification settings

boostcampaitech3/final-project-level3-cv-17

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸŒ€οΈλ―Έμ„Έλ¨Όμ§€ μ—†λŠ” 맑은 μ‚¬μ§„πŸ“·

πŸ’TEAM

CV 17μ‘° MGμ„ΈλŒ€

λ―Όμ„ μ•„ λ°±κ²½λ₯œ 이도연 μž„λ™μš° μ΄νš¨μ„
@seonahmin @baekkr95 @omocomo @Dongwoo-Im @hyoseok1223
Image Dehazing Product Serving Product Serving Image Dehazing PM, Sky Replacement

πŸ“ƒ Project Abstract

  • Problem Definition

    • νŠΉλ³„ν•œ λ‚ , νŠΉλ³„ν•œ μž₯μ†Œμ—μ„œ 미세먼지 λ•Œλ¬Έμ— μ›ν•˜λŠ” 사진을 찍지 λͺ»ν•˜κ±°λ‚˜ μ•ˆ μ°λŠ” 상황이 생김
    • ν•˜μ§€λ§Œ 보정에 λŒ€ν•œ μ „λ¬Έ 지식이 λΆ€μ‘±ν•˜κ±°λ‚˜ ν•„ν„°κ°€ μ œν•œλ˜λŠ” 경우 μ‚¬μš©μžκ°€ μ›ν•˜λŠ” λ°©ν–₯으둜 사진을 λ³΄μ •ν•˜κΈ° μ–΄λ €μ› μŒ
  • Main features

    • μ‚¬μš©μžκ°€ μ—…λ‘œλ“œν•œ Hazyν•œ 이미지λ₯Ό 미세먼지가 μ—†λŠ” μ„ λͺ…ν•œ μ‚¬μ§„μœΌλ‘œ λ³€ν™˜
    • μ‚¬μš©μžλŠ” μ›ν•˜λŠ” Keyword의 ν•˜λŠ˜ 이미지λ₯Ό μ—…λ‘œλ“œν•œ 사진에 ν•©μ„±

image

πŸ–₯ Service Architecture

κΉƒν—™μ„œλΉ„μŠ€μ‚¬μ§„

🎞 Demo

  1. Dependencies and Installation

    • environment.yaml의 name, prefix μ„€μ •

    • κ°€μƒν™˜κ²½ 생성 및 install

      cd serving
      conda env create -f environment.yaml # κ°€μƒν™˜κ²½ 생성 + install
      conda activate serving # environment.yaml의 name
      pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu110/torch1.7/index.html
      
  2. λͺ¨λΈ Weights λ‹€μš΄λ‘œλ“œ

    • serving/app μ•ˆμ— weights 폴더λ₯Ό λ§Œλ“­λ‹ˆλ‹€. κ΅¬μ‘°λŠ” λ‹€μŒκ³Ό κ°™μŠ΅λ‹ˆλ‹€.

      weights
      β”œβ”€β”€ Dehazing
      β”‚   └── Dehazeformer-Finetune.pth
      └── Sky
          β”œβ”€β”€ SkyDB
          β”‚   └── sky_db_clip.h5
          └── SkySegmentation
              └── seg_epoch_20.pth
    • weightsλŠ” ꡬ글 λ“œλΌμ΄λΈŒμ—μ„œ λ‹€μš΄λ‘œλ“œ 받을 수 μžˆμŠ΅λ‹ˆλ‹€.

  3. DB URL μ„€μ •

    • serving/app/db/__init__.py의 MONGO_URL μ„€μ •
  4. μ‹€ν–‰ μ‹œν‚€κΈ°

    cd serving
    make -j 2 run_app
    
    • Makefile run_client의 streamlit이 μ‹€ν–‰λ˜λ©΄ ν•΄λ‹Ή urlμ—μ„œ λ™μž‘μ„ 확인할 수 μžˆμŠ΅λ‹ˆλ‹€.
  5. 데λͺ¨ μ˜μƒ

이미지 μ—…λ‘œλ“œ ν›„ Dehazing μ‹€ν–‰

κΉƒν—ˆλΈŒλ°λͺ¨μ•žλΆ€λΆ„

μ›ν•˜λŠ” ν•˜λŠ˜ 사진 선택

κΉƒν—ˆλΈŒμ€‘κ°„λ°λͺ¨

ν•˜λŠ˜ ν•©μ„±κΉŒμ§€ μ™„λ£Œλœ μ΅œμ’… 이미지

κΉƒν—ˆλΈŒλ§ˆμ§€λ§‰λ°λͺ¨

πŸ–Ό Model Process

image

πŸ“– Reference

About

[2022.05.16 ~ 2022.06.10] πŸŒ€οΈλ―Έμ„Έλ¨Όμ§€ μ—†λŠ” 맑은 μ‚¬μ§„πŸ“· - λΆ€μŠ€νŠΈμΊ ν”„ AI Tech 3κΈ° μ΅œμ’… ν”„λ‘œμ νŠΈ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •