LoginSignup
0
1

More than 1 year has passed since last update.

明るすぎるところと暗すぎるところの混在する画像をきれいにしたい

既存の露出補正用の機械学習モデルは、露出過多と露出不足のどちらか一方しか補正できないものが多かったです。

LCDPNetで一発解決

1d5bddbe-9256-46d4-b74b-d70106423da9.png a1135-050716_214208__I2E4324.png

LCDPNetは画像内の明るすぎる部分と暗すぎる部分を特定して、それぞれ補正してくれます。
これにより、明るい部分が過剰になることなく暗い部分が補正されます。

使い方

リポジトリをクローン。

src/config/ds/test.yaml
で入力画像ディレクトリを以下のように指定します。

test.yaml
# @package ds
class: img_dataset
name: ours-cslab.test
input:
  - images/*
GT:
  - images/*

提供されているweightを指定します。

git clone https://github.com/hywang99/LCDPNet.git
cd LCDPNet/
pip install hydra-core --upgrade
pip install pytorch_lightning
pip install ipdb
pip install kornia
pip install wandb
pip install thop
python src/test.py checkpoint_path="trained_on_ours.ckpt"

saveフォルダの名前など聞かれた場合は、入力してエンターします。

🐣


フリーランスエンジニアです。
お仕事のご相談こちらまで
rockyshikoku@gmail.com

Core MLやARKitを使ったアプリを作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium
GitHub

0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1