boostcampaitech3 / final-project-level3-cv-17

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

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

πŸ‘‰ Presentation Slide : https://drive.google.com/drive/folders/1_bYN3mC4viJHQI5G_y1e7f1iK3_IRDwW?usp=sharing

πŸ’TEAM

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

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

πŸ“ƒ Project Abstract

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