/AI-training-image-processing-scripts

various scripts designed to handle a range of image processing tasks for AI diffusion fine tuning and LoRA creation

Primary LanguagePythonMIT LicenseMIT

Image Processing Scripts

Welcome to the Image Processing Scripts repository! This collection includes various scripts designed to handle a range of image processing tasks for AI diffusion fine tuning and LoRA creation, such as renaming, resizing, rotating, removing metadata, processing text descriptions, handling errors, bucketing images, error searching and scraping images online.

I use Kohya sd scripts and Hugging Face Diffusers advanced scripts to finetune and train LoRA's:

https://github.com/kohya-ss/sd-scripts

https://github.com/huggingface/diffusers/blob/main/examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py

Categories

Our scripts are organized into the following categories:

  1. Image Renaming: Scripts to rename image files based on specific criteria.
  2. Image Resizing: Scripts to resize images to new dimensions while maintaining aspect ratios.
  3. Image Rotation: Scripts to rotate images based on specific conditions.
  4. Image Metadata: Scripts to remove metadata from image files.
  5. Text Processing: Scripts to process and create text files associated with images.
  6. Error Handling: Scripts to identify and manage errors in image caption files.
  7. Image Search: Scripts to search for and download images from the web.
  8. Utils: Utility scripts for normalizing buckets, checking ICC profiles, duplicates and more

Usage

Each script is located in its respective category folder. Navigate to the appropriate folder to find the relevant script. Detailed usage instructions and comments are provided within each script to help you understand and utilize the code effectively.

Installation

To get started, clone the repository and install the required dependencies:

  1. Clone the Repository:

    git clone https://github.com/Visual-Synthesizer/image-processing-scripts.git
    cd image-processing-scripts
  2. Install Dependencies:

    Make sure you have Python and pip installed on your system. Then, install the required Python packages:

    pip install -r requirements.txt

Contributing

We welcome contributions! If you have a script to add or improvements to make, please fork the repository and submit a pull request. Be sure to follow the existing code style and include detailed comments.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or feedback, please open an issue in the repository or contact us at vsynthesizer@gmail.com.


Thank you for using our Image Processing Scripts repository. We hope these scripts help you with your image processing tasks!