Giter Site home page Giter Site logo

aquastripe / grid-anchor-based-image-cropping-pytorch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from huizeng/grid-anchor-based-image-cropping-pytorch

0.0 0.0 0.0 128 KB

PyTorch implementation of "Grid anchor based image cropping"

License: MIT License

Python 65.18% Shell 2.71% C 18.53% C++ 1.22% Cuda 12.37%

grid-anchor-based-image-cropping-pytorch's Introduction

Grid-Anchor-based-Image-Cropping-Pytorch

The extension of this work has been accepted by TPAMI. Please read the paper for details.

Requirements

python 2.7, pytorch 0.4.1, numpy, cv2, scipy.

Usage

  1. Download the source code, the datasets [conference version], [journal version] and the pretrained models [conference version] [journal version]

  2. Run TrainModel.py to train a new model on our dataset or Run demo_eval.py to test the pretrained model on any images.

  3. To change the aspect ratio of generated crops, please change the generate_bboxes function in croppingDataset.py (line 115).

Annotation software

The executable annotation software can be found here.

Other implementation

  1. PyTorch 1.0 or later
  2. Matlab (conference version)

Citation

@inproceedings{zhang2019deep,
  title={Reliable and Efficient Image Cropping: A Grid Anchor based Approach},
  author={Zeng, Hui, Li, Lida, Cao, Zisheng and Zhang, Lei},
  booktitle={IEEE Conference on Computer Vision and Pattern Recognition},
  year={2019}
}
@article{zeng2020cropping,
  title={Grid Anchor based Image Cropping: A New Benchmark and An Efficient Model},
  author={Zeng, Hui and Li, Lida and Cao, Zisheng and Zhang, Lei},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  volume={},
  number={},
  pages={},
  year={2020},
  publisher={IEEE}
}

grid-anchor-based-image-cropping-pytorch's People

Contributors

huizeng 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.