Git Product home page Git Product logo

gigadet-pgn's Introduction

PGN(Patch Generation Network)

Train

python examples/train.py --config-file /path/to/config_file.yml 

If you want to output DEBUG level logs, you can modify INFO.LOG_LEVEL option in the config file or use:

python examples/train.py --config-file /path/to/config_file.yml INFO.LOG_LEVEL DEBUG

Logger with DEBUG level will output most of time consuming information.

Eval

Simply get patches for a image:

python examples/eval_single.py --config-file /path/to/config_file.yml --image_path /path/to/image.jpg

If you want to show recall evaluation result, just add --load_panda_annotation flag.

python examples/eval_single.py --config-file /path/to/config_file.yml --image_path /path/to/image.jpg --load_panda_annotation

The annotation info for PANDA test set will be loaded according to the config in config_file, so be sure the image_path refers to an image in PANDA test set.

Visualize

If you want to visualize the patches in the image, just add --display flag.

python examples/eval_single.py --config-file /path/to/config_file.yml --image_path /path/to/image.jpg --display

If the operation system does not support the display mode, you can user the --save_path parameter to save result into a file:

python examples/eval_single.py --config-file /path/to/config_file.yml --image_path /path/to/image.jpg --save_path result.jpg

gigadet-pgn's People

Contributors

ckmessi avatar

Watchers

 avatar

gigadet-pgn's Issues

about annotation of panda image test

Hi Kai, thanks for sharing your wonderful work!
could you please share how to obtain the person_bbox_test_real.json, as the downloaded files from my side only contain person_bbox_test.json which seems does not have box annotation in it.

Thanks!

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.