Giter Site home page Giter Site logo

pfnet's Introduction

PWC


Perspective Field Network

Code Repo of 'Rethinking Planar Homography Estimation Using Perspective Fields'

Tensorflow/Keras implementation for reproducing Perspective Network (PFNet) results in the paper Rethinking Planar Homography Estimation Using Perspective Fields by Rui Zeng, Simon Denman, Sridha Sridharan, Clinton Fookes.


COCO Dataset


Trained Weights.


Dependencies

python 3.6

  • Tensorflow >= 1.5.0
  • Keras >= 2.2.0
  • Opencv >= 3.0.0

In addition, please add the project folder to PYTHONPATH and pip install the packages if ImportError: No module named xxx error message occur.


Training

  • Train a PFNet model on the COCO dataset from scratch:
    • python train.py --dataset=/home/COCO

Evaluation

  • Evaluate the *.h5 model checkpoint
    • python evaluate.py --dataset=/home/COCO --model=./pfnet.h5

Citing PFNet

If you find PFNet useful in your research, please consider citing:


@inproceedings{zeng18rethinking,
  author    = {Rui Zeng and Simon Denman and Sridha Sridharan and Clinton Fookes},
  title     = {Rethinking Planar Homography Estimation Using Perspective Fields},
  booktitle = {Asian Conference on Computer Vision (ACCV)},
  year      = {2018},
}

pfnet's People

Contributors

ruizengalways avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

pfnet's Issues

MACE of provided model

Hi @ruizengalways ,

What MACE should the provided model have? I've downloaded pfnet_0200.h5 , run the eval script and ended up with:
MACE Metric: 7.451346

It sounds like a way worse quality than reported in the paper. Could you please help me to reproduce your results?

Best,
Danie;

Training loss is stuck

Training loss seems to be stuck for out of box training with COCO data. Is there any knobs to turn on for the model to start learning ?

Something About branch1

I see when you compute the pf,you use
diff_branch1 but i cant find the diff_branch2
and I can see in your code comment:

    # Two branches. The CNN try to learn the H and inv(H) at the same time. So in the first branch, we just compute the
    #  homography H from the original image to a perturbed image. In the second branch, we just compute the inv(H)

But I cant find the another branch , have you ever try use two branch and got the worse result?

Weight link die

Hi author,
Your weight link of model is die, can you give me weight file of this model ?
thank you

Identity block

Hi @ruizengalways ,

I've got a question about the identity block. In the paper, on figure 2 the identity block has additional 1x1conv and batch norm on the shortcut connection:

Screenshot from 2020-08-18 11-47-29

But in the code, there is no 1x1conv + bn in the identity block:

    x = KL.Add()([x, input_tensor])
    x = KL.Activation('relu', name='res' + str(branch) + str(stage) + block + '_out')(x)

So, what's the proper design here?

Best,
Daniel

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.