Git Product home page Git Product logo

gaf's Introduction

Generative Appearance Flow: A Hybrid Approach for Outdoor View Synthesis

    Muhammad Usman Rafique,   Hunter Blanton,   Noah Snavely,   Nathan Jacobs

    PaperSupplementalProjectTalk

result1 result1

Pre-trained Model

Pretrained models are included in this repo under checkpoints/

Using the Code

This repository contains scripts for training, evaluation, and generating visual results. The settings are stored in the file config.py. Before running any training or evaluation, please make sure that settings in config.py are correct.

Models

This repository comes with these models from our paper:

  • Improved appearance flow: AF++
  • Flow-guided direct synthesis: FDS
  • Generative appearance flow: GAF

Training

For training, you can specify a directory through cfg.train.out_dir (in config.py). Trained models and training logs will be saved in this directory. There are three models, which are trained sequentially AF++, FDS, and GAF.

  1. AF++: run python3 train_AF_plus.py. There is no prerequisite to train AF++.
  2. FDS: run python3 train_FDS.py. This requires a trained AF++. We have included a trained AF++ in checkpoints/, this will be loaded by default.
  3. GAF: run python3 train_GAF.py. Trained AF++ and FDS are required. These are included in checkpoints/ and will be loaded by default.

Evaluation & Visualization

For quantitative evaluation, or to generate visual results, please select the correct directory in which trained models are saved, or set cfg.train.out_dir='checkpoints'. Also, make sure to set the desired network through cfg.model.name.

For visual results, run python3 visualize.py. For quantitative evaluation python3 eval_trained.py.

BPS Dataset

All panoramic images have been north-aligned, cropped, and resized to the size 960 (width) x 160 (height). There are a total of 44 092 examples in the dataset; every example has two images and the relative camera transformations.

We have collected the dataset from google street view images. To ensure fair use and avoid duplication, please send an email to usman dot rafique @ uky . edu. We will share the dataset link by email.

Permission

The code is released only for academic and research purposes.

Recommended citation

@inproceedings{rafique2020gaf,
  title={Generative Appearance Flow: A Hybrid Approach for Outdoor View Synthesis},
  author={Rafique, M. Usman and Blanton, Hunter and Snavely, Noah and Jacobs, Nathan},
  booktitle={The British Machine Vision Conference},
  year={2020}
}

Updates

  • Oct 29, 2020: Uploaded the checkpoint for GAF. Visualization and evaluation scripts are updated to use the checkpoints provided in the directory checkpoints.

Note: I have noticed that evaluation results from these pretrained models are slightly different from the ones reported in the paper. This is due to the way images are downsampled for public release. For any quantitative comparison, we strongly recommend to train the models using the training scripts provided in this repository. If you have any trouble in reproducing the results, please feel to reach out: usman dot rafique @ uky . edu

gaf's People

Contributors

usman-rafique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

gaf's Issues

No such file or directory: 'checkpoints\\model_dict.pth'

I am trying to run code with a pre-trained model as written in Evaluation & Visualization section.
However, when I run visualize.py for eval_trained.py, an error message pop up saying there is no such file as 'model_dict.pth'

it seems like a pre-trained file, Is there any way I can run this code?

I used
cfg.model.name = 'GAF'
on config.py file.

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.