Skip to content

A simple tool for cropping images in a dataset to a specific aspect ratio. Made for training loras

Notifications You must be signed in to change notification settings

kooten111/KottCropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KottCropper

A simple tool for cropping images to a specific aspect ratio, useful for cropping large number of images, for example if you are training a LORA.

Birme.net lacks the ability to crop only specific parts of an image, so I made this tool to do that.

Screenshot

Usage

Install requirements

pip install flask pillow

Download the repo

git clone https://github.com/kooten111/KottCropper

Go to \images and put the images you want to crop there.

Run the app

python Cropper.py

Go to localhost:5000 in your browser and start cropping.

Your cropped images will be in \cropped_images

Credit

https://github.com/fengyuanchen/cropperjs I basically just used this library and made a simple flask app around it.

About

A simple tool for cropping images in a dataset to a specific aspect ratio. Made for training loras

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published