2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

比較的大きな穴でも修復できる inpaintingモデルRecurrent Feature Reasoning for Image Inpainting

Last updated at Posted at 2023-02-01

正解→マスクした画像→推論結果
paris.jpg
ca1356f1-2eb0-419d-b2b3-8027a75c0256.png
97cb67cb-8870-4e36-80e2-497faf0d7002.png

使い方

インストール

git clone https://github.com/jingyuanli001/RFR-Inpainting.git
cd RFR-Inpainting
pip install --upgrade gdown 
gdown https://drive.google.com/u/0/uc?id=1jnUb-EvBw9DcwyWUQyWDdN9o42BPH7uT

実行

python run.py --data_root images --mask_root masks --model_path checkpoint_paris.pth --test --mask_mode 2

mask_mode 1 にするとランダムマスクを生成して適用してくれる。
その場合、model.pyの87行目をコメントアウトする必要がある。

            # masks = torch.cat([masks]*3, dim = 1)

🐣


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

機械学習、ARアプリ(Web/iOS)を作っています。
機械学習/AR関連の情報を発信しています。

Twitter
Medium
GitHub

2
5
0

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
2
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?