Code Monkey home page Code Monkey logo

lcfcn's Introduction

LCFCN - ECCV 2018

Where are the Blobs: Counting by Localization with Point Supervision

[Paper][Video]

Requirements

  • Pytorch version 0.4 or higher.

Description

Given a test image, the trained model outputs blobs in the image, then counts the number of predicted blobs (see Figure below).

Shanghai test image

Test on single image

We test a trained ResNet on a Trancos example image as follows:

python main.py -image_path figures/test.png \
                -model_path checkpoints/best_model_trancos_ResFCN.pth \
                -model_name ResFCN

The expected output is shown below, and the output image will be saved in the same directory as the test image.

Trancos test image Trancos predicted image
Trancos test image Trancos pred image

Running the saved models

  1. Download the checkpoints,
bash checkpoints/download.sh
  1. Output the saved results,
python main.py -m summary -e trancos
  1. Re-evaluate the saved model,
python main.py -m test -e trancos

Training the models from scratch

To train the model,

python main.py -m train -e trancos

Benchmark

Method Trancos Pascal
ResFCN 3.39 0.31
Paper 3.32 0.31

Citation

If you find the code useful for your research, please cite:

@Article{laradji2018blobs,
    title={Where are the Blobs: Counting by Localization with Point Supervision},
    author={Laradji, Issam H and Rostamzadeh, Negar and Pinheiro, Pedro O and Vazquez, David and Schmidt, Mark},
    journal = {ECCV},
    year = {2018}
}

lcfcn's People

Contributors

issamlaradji avatar mlaradji avatar

Watchers

James Cloos 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.