Skip to content

jayllfpt/RESFES2023-Inpainting

Repository files navigation

DMFN (Dense Multi-scale Fusion Network)

This is an unoffical repository for reproducing model DMFN from the paper [Image Fine-grained Inpainting]. The original repository is here, but author have not commit the rest of implement code yet.

Prerequisites

  • Python3.5 (or higher)
  • pytorch 1.0(or higher) with GPU
  • numpy
  • OpenCV
  • scipy
  • tensorboardX

Dataset

Result

Result for HCMC Contest

Result for Da Nang - Resfes 2023 Final Contest

`

Prepare the images used for training

contact us: yesure2023@gmail.com

How to test

You can specify the folder address by the option --dataset_path, and set the pretrained model path by --load_model_dir when calling test.py as the following

python test.py --dataset yesuredata/test --data_file yesuretxt/test.txt --load_model_dir checkpoints/40_net_DFBN.pth

We trained it first time 40 epochs with single GPU - GTX 1650, and also train again with advance image processing method, 50 epochs on single GTX 3060Ti, you can train it yourself for better performance or in custom dataset.

How to train

Use train.py as the following

python train.py --dataset_path data_final --data_file yesuretxt/train1.txt --batch_size 4 --lr 2e-4 --epochs 40 --load_model_dir checkpoints/40_net_DFBN.pth

You can load the pretrained model by the option --load_model_dir and edit default params in 2 python files in 'options' folder, too.

Refs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published