Coder Social home page Coder Social logo

futureword123456 / graphfill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shash29-dev/graphfill

0.0 0.0 0.0 115.34 MB

GraphFill: Deep Image Inpainting using Graphs

License: GNU General Public License v3.0

Shell 0.15% JavaScript 17.37% Python 79.45% CSS 0.31% HTML 2.72%

graphfill's Introduction

GraphFill

GraphFill: Deep Image Inpainting using Graphs

Project Page

Evaluation

We provide various settings in run.sh

  • python main.py config=main.yaml "util_args.predict_only=True" "util_args.eval_mode=True" "data=places_256"

    • predict_only: Setting this flag to False will calculate losses and evaluate metrics. Set True to track performance on validation performance while training.
    • eval_mode: Sets mode for Inference/Training
    • data: change config accordingly at config/data with appropriate paths to training datasets, Validation datasets.
  • python data_gen_pickle.py config=main.yaml "data=places_256" "data.train.indir=./Datasets/places365_standard/train"

    • Pyramidal graph generation can be a bottleneck while loading data. Create pickled data for fast loading (Optional).
    • If skipping pickling of data it is recommended to increase num_workers in dataloader kwargs.
  • python main.py config=main.yaml "util_args.eval_mode=False" "data=places_256" "data.train.pickle_data=True"

    • Trains GraphFill.

Download trained models from Here

Place downloaded models at as pointed by the key model_load in main.yaml config. Note that shared model contains weights for discriminator, pre-trained model weights for perceptual loss calculation, etc. which are irrelevant in evaluation setting.

Requirements

pytorch_lightning==1.9.0
torch==1.13.1
networkx==2.6
torch_geometric==1.5.0
torch_scatter==2.1.1
torch_sparse==0.6.17 

Code in this repository is highly inspred from: LaMa: Resolution-robust Large Mask Inpainting with Fourier Convolutions. Please follow there Instruction to setup ./models folder, make random masks of sizes medium,thin,thick.

Bib

@inproceedings{verma2024graphfill,
  title={GraphFill: Deep Image Inpainting Using Graphs},
  author={Verma, Shashikant and Sharma, Aman and Sheshadri, Roopa and Raman, Shanmuganathan},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
  pages={4996--5006},
  year={2024}
}

graphfill's People

Contributors

shashikantverma29 avatar shash29-dev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.