Giter Site home page Giter Site logo

thin-structure-inpainting's Introduction

Adversarial-Gaps-Recovery-with-Policy-Gradient

Code for paper "Adversarial Large-scale Root Gaps Inpainting" and paper "Recovery of Gaps in Binary Segmentation Masks With Thin Structures With Adversarial Learning and Policy Gradient"

Authors: Hao Chen, Mario Valerio Giuffrida, Peter Doerner, and Sotirios A. Tsaftaris


Content

  • Installation
  • Dataset
  • Running

Installation

We use Pytorch for training the models and our experiments. First create a new conda environment, then clone the repo by running to your directory:

git clone [email protected]:s1786991/adversarial-gaps-recovery-with-policy-gradient.git

Finally install the required packages:

pip install -r requirements.txt

Dataset

Our project is running and testing on four datasets:

The chickpea root data is currently private and unavailable, but one can train the model only on synthetic root and apply the model on the desired root dataset.

Downloaded the dataset and put it in data/dataset_name/ directory and split then into train/valid/test directories.

Running

The specified dataset which the model will be trained on and all the hyper-parameters the model required is specified in configuration files in the configs directory.

To run the code and train the model (e.g. on root dataset):

python train.py -c configs/root_config.json

The trained model will be saved in saved/ directory

thin-structure-inpainting's People

Contributors

hhhhhhao avatar dependabot[bot] 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.