← 开源
JiahuiYu

generative_inpainting

DeepFill v1/v2 with Contextual Attention and Gated Convolution, CVPR 2018, and ICCV 2019 Oral

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
3.47k
Star
797
Fork
+1
本周
1
贡献者
创建于 2018-01-24 · 更新于 2026-10-13 · 今日第 7927 名
主要开发者

JiahuiYu/generative_inpainting 排名第 7,927,有 3,471 个星标。

同类别比较

JiahuiYu/generative_inpainting 排名第 7,927,此处有 8 个同类条目;Docta-ai/docta 排名第 7,923。

同类别比较
名称排名指标
POSTECH-CVLab/PyTorch-StudioGAN7,920
语言:
Python
星标数:
3,485
分叉数:
343
简介:
StudioGAN is a Pytorch library providing implementations of representative Generative Adversarial Networks (GANs) for conditional/unconditional image generation.
aim-uofa/AdelaiDet7,921
语言:
Python
星标数:
3,479
分叉数:
652
简介:
AdelaiDet is an open source toolbox for multiple instance-level detection and recognition tasks.
open-mmlab/mmyolo7,922
语言:
Python
星标数:
3,479
分叉数:
628
简介:
OpenMMLab YOLO series toolbox and benchmark. Implemented RTMDet, RTMDet-Rotated,YOLOv5, YOLOv6, YOLOv7, YOLOv8,YOLOX, PPYOLOE, etc.
Docta-ai/docta7,923
语言:
Python
星标数:
3,478
分叉数:
256
简介:
A Doctor for your data
tensorlayer/SRGAN7,931
语言:
Python
星标数:
3,467
分叉数:
811
简介:
Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network
TJU-DRL-LAB/AI-Optimizer7,932
语言:
Python
星标数:
3,466
分叉数:
597
简介:
The next generation deep reinforcement learning tookit
PaddlePaddle/PARL7,936
语言:
Python
星标数:
3,459
分叉数:
811
简介:
A high-performance distributed training framework for Reinforcement Learning
ShangtongZhang/DeepRL7,938
语言:
Python
星标数:
3,456
分叉数:
694
简介:
Modularized Implementation of Deep RL Algorithms in PyTorch
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
星标数3,471
分叉数797
贡献者1
创建日期2018-01-24
更新日期2026-10-13
1 天星标数0
7 天星标数1
排名7,927
上次排名8,035
排名变化108
7 天星标排名9,182
上次 7 天星标排名9,242
7 天星标排名变化60
总星标排名3,944
上次总星标排名3,938
总星标排名变化-6
国家China
README 摘录

Generative Image Inpainting An open source framework for generative image inpainting task, with the support of Contextual Attention (CVPR 2018) and Gated Convolution (ICCV 2019 Oral). **For the code of previous version (DeepFill v1), please checkout branch v1. ** CVPR 2018 Paper | ICCV 2019 Oral Paper | Project | Demo | YouTube v1 | YouTube v2 | BibTex Free-form image inpainting results by our system built on gated convolution. Each triad shows original image, free-form input and our result from left to right. Pretrained

models Places2 | CelebA-HQ Download the model dirs and put it under (rename to because google drive automatically add ext after download). Run testing or resume training as described above. All models are trained with images of resolution 256x256 and largest hole size 128x128, above which the results may be deteriorated. Please run: **Note:** Please make sure the mask file completely cover the masks in input file. You may check it with saving a new image to visualize . TensorBoard Visualization

on TensorBoard for training and validation is supported. 0 Attribution-NonCommercial International The software is for educational and academic research purposes only.

常见问题

记录了多少星标和分叉?

JiahuiYu/generative_inpainting 有 3,471 个星标和 797 个分叉。

仓库排名是多少?

JiahuiYu/generative_inpainting 排名第 7,927。

记录的语言和类别是什么?

JiahuiYu/generative_inpainting 有 3,471 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

JiahuiYu/generative_inpainting 与 Docta-ai/docta 比较,后者排名第 7,923,有 3,478 个星标。

README

Generative Image Inpainting

An open source framework for generative image inpainting task, with the support of Contextual Attention (CVPR 2018) and Gated Convolution (ICCV 2019 Oral).

For the code of previous version (DeepFill v1), please checkout branch v1.0.0.

CVPR 2018 Paper | ICCV 2019 Oral Paper | Project | Demo | YouTube v1 | YouTube v2 | BibTex

Free-form image inpainting results by our system built on gated convolution. Each triad shows original image, free-form input and our result from left to right.

Run

  1. Requirements:
    • Install python3.
    • Install tensorflow (tested on Release 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0).
    • Install tensorflow toolkit neuralgym (run pip install git+https://github.com/JiahuiYu/neuralgym).
  2. Training:
    • Prepare training images filelist and shuffle it (example).
    • Modify inpaint.yml to set DATA_FLIST, LOG_DIR, IMG_SHAPES and other parameters.
    • Run python train.py.
  3. Resume training:
    • Modify MODEL_RESTORE flag in inpaint.yml. E.g., MODEL_RESTORE: 20180115220926508503_places2_model.
    • Run python train.py.
  4. Testing:
    • Run python test.py --image examples/input.png --mask examples/mask.png --output examples/output.png --checkpoint model_logs/your_model_dir.
  5. Still have questions?
    • If you still have questions (e.g.: How filelist looks like? How to use multi-gpus? How to do batch testing?), please first search over closed issues. If the problem is not solved, please open a new issue.

Pretrained models

Places2 | CelebA-HQ

Download the model dirs and put it under model_logs/ (rename checkpoint.txt to checkpoint because google drive automatically add ext after download). Run testing or resume training as described above. All models are trained with images of resolution 256x256 and largest hole size 128x128, above which the results may be deteriorated. We provide several example test cases. Please run:

# Places2 512x680 input
python test.py --image examples/places2/case1_input.png --mask examples/places2/case1_mask.png --output examples/places2/case1_output.png --checkpoint_dir model_logs/release_places2_256
# CelebA-HQ 256x256 input
# Please visit CelebA-HQ demo at: jhyu.me/deepfill

Note: Please make sure the mask file completely cover the masks in input file. You may check it with saving a new image to visualize cv2.imwrite('new.png', img - mask).

TensorBoard

Visualization on TensorBoard for training and validation is supported. Run tensorboard --logdir model_logs --port 6006 to view training progress.

License

CC 4.0 Attribution-NonCommercial International

The software is for educational and academic research purposes only.

Citing

@article{yu2018generative,
  title={Generative Image Inpainting with Contextual Attention},
  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
  journal={arXiv preprint arXiv:1801.07892},
  year={2018}
}

@article{yu2018free,
  title={Free-Form Image Inpainting with Gated Convolution},
  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
  journal={arXiv preprint arXiv:1806.03589},
  year={2018}
}
排名相邻
同类项目