CeLuigi / Grid-Anchor-based-Image-Cropping-Pytorch

PyTorch implementation of "Grid anchor based image cropping"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grid-Anchor-based-Image-Cropping-Pytorch

This code includes several extensions we have made to our conference version. Please read the paper for details.

Requirements

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

Usage

  1. Download the source code, the dataset and the pretrained model.

  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)

About

PyTorch implementation of "Grid anchor based image cropping"

License:MIT License


Languages

Language:Python 65.2%Language:C 18.5%Language:Cuda 12.4%Language:Shell 2.7%Language:C++ 1.2%