Skip to content

reformatco/training-image-cropper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Image cropper

Simple image cropper that allows you to specify a directory and then crop all images inside to the required size. Created for making dataset images for training Stable Diffusion.

Any images smaller than the crop size will be deleted.

Built With

  • Python - The programming language used
  • OpenCV - The computer vision library used

Authors

  • Ben Palmer

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • Hat tip to ChatGPT for making all this

TODO

[ ] Add https://github.com/eugenesiow/super-image for upscaling

Instructions

Install virtualenv using pip on the new computer (if it's not already installed):

pip install virtualenv

Navigate to your project directory on the new computer and create a new virtual environment:

virtualenv venv

Activate the virtual environment:

source venv/bin/activate

Install your project dependencies using pip:

pip install -r requirements.txt

When you're done working on your project, you can deactivate the virtual environment:

deactivate

This will deactivate the virtual environment and return you to the global Python environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages