All Projects → thePetrMarek → AutomaticNeuralImageCropper

thePetrMarek / AutomaticNeuralImageCropper

Licence: Apache-2.0 license
Neural network making the best looking crops of images

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to AutomaticNeuralImageCropper

Faimagecropper
Image Cropper like Instagram
Stars: ✭ 188 (+571.43%)
Mutual labels:  crop-image
cropimg
Another cropping jQuery plugin
Stars: ✭ 30 (+7.14%)
Mutual labels:  crop-image
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+1971.43%)
Mutual labels:  crop-image
Croppie
A Javascript Image Cropper
Stars: ✭ 2,330 (+8221.43%)
Mutual labels:  crop-image
react-simple-crop
✂️ A React component library for cropping and previewing images
Stars: ✭ 19 (-32.14%)
Mutual labels:  crop-image
capella
Cloud service for image storage and delivery
Stars: ✭ 116 (+314.29%)
Mutual labels:  crop-image
Zimagecropper
A Swift 5 repo to crop image in any shape.
Stars: ✭ 174 (+521.43%)
Mutual labels:  crop-image
ImageResize
Image resizing tool for .Net applications with ability to add text/image watermark, Supports animated images as well.
Stars: ✭ 45 (+60.71%)
Mutual labels:  crop-image
SSImagePicker
Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... 📸
Stars: ✭ 227 (+710.71%)
Mutual labels:  crop-image
xcrop
Mobile image cropping component - Vue React 移动端裁剪组件
Stars: ✭ 27 (-3.57%)
Mutual labels:  crop-image
Igrphototweaks
Drag, Rotate, Scale and Crop
Stars: ✭ 212 (+657.14%)
Mutual labels:  crop-image
React Image Crop
A responsive image cropping tool for React
Stars: ✭ 2,924 (+10342.86%)
Mutual labels:  crop-image
react-drop-n-crop
An opinionated implementation of react-dropzone and react-cropper
Stars: ✭ 17 (-39.29%)
Mutual labels:  crop-image
Cropiwa
📐 Configurable Custom Crop widget for Android
Stars: ✭ 2,185 (+7703.57%)
Mutual labels:  crop-image
PhotoSelectAndCrop
This package integrates a UIImagePickerController into a SwiftUI app. Obtain 1) a copy of the original image, 2) a scaled and / or cropped version of it, 3) a CGFloat and 4) CGPoint. The CGFloat and CGPoint represent the scale and position of the original image used to make the processed version.
Stars: ✭ 57 (+103.57%)
Mutual labels:  crop-image
Smartcrop.py
smartcrop implementation in Python
Stars: ✭ 178 (+535.71%)
Mutual labels:  crop-image
react-image-crop
A responsive image cropping tool for React
Stars: ✭ 3,312 (+11728.57%)
Mutual labels:  crop-image
WAProfileImage
WAProfileImage - A library for Android for choosing and editing profile image like WhatsApp
Stars: ✭ 29 (+3.57%)
Mutual labels:  crop-image
LyEditImageView
iOS Image Editor View
Stars: ✭ 20 (-28.57%)
Mutual labels:  crop-image
vue-crop
[举个例子]https://codesandbox.io/s/910ro8ym9r [演示链接(戳我直达)]http://www.wwwwxy.top/html/blg/
Stars: ✭ 38 (+35.71%)
Mutual labels:  crop-image

Automatic Neural Image Cropper

Neural network trained to make the best looking crops of images. It is described in the blog Automatic neural image cropper.

Automatic Neural Image Cropper

How to run

  1. Download checkpoint of Inception v4 from https://github.com/tensorflow/models/tree/master/slim#pre-trained-models and unpack it to root.

  2. Install all requirements by running

    pip install requirements.txt

  3. Find some data (you have to do it on your own. AVA dataset maybe...). It is JSON containing array with objects: {"picture":"path/to/picture","good_example":True} Method to decide if picture is good or bad is described in blog Automatic neural image cropper. You can take inspiration from data_preprocess.py.

  4. Open Main.py. There are several parameters at the beginning of the file.

Parameter Function
TRAIN Run training or run cropping (Bool)
EPOCHS How many epochs will we train? (Int)
BATCH_SIZE Size of batch (Int)
TRAIN_ACCURACY Do we want to evaluate accuracy on trainig set? This will make training A LOT slower. (Bool)
MODEL_NAME Name of model (String)
RESTORE Will we restore the model from checkpoint? (Bool)
CHECKPOINT Path to checkpoint (String)
EPOCH From which epoch to continue? (Int)
[training|validation|testing]_dataset Path to folder with dataset and name of json file (String, String)
IMAGE_FOLDER Path to folder with photos to crop (String)
  1. Set parameters to train and run training by

    py -3 Main.py

  2. Set parameters to cropping and run cropping by

    py -3 Main.py

Examples

Automatic neural image cropper

Automatic neural image cropper

Automatic neural image cropper

Automatic neural image cropper

Automatic neural image cropper

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].