Ultimate Batch Image Pre-Processing App With YOLO Models (Legacy) (Patreon)
Downloads
Content
Ultimate Batch Image Pre-Processing Gradio app crops subjects with YOLO models and resizes training images with face focus; it is deprecated for a newer app.
Note: this is an older post kept for reference. The current, maintained version is Ultimate Image Processing App: 1-Click Batch Cropping, SAM 3.1 Masking.
1-click to install and use on Windows and cloud (RunPod, Massed Compute), with a Kaggle notebook added later. Features a face extractor, a subject cropper for 79 classes such as car, person and cat, and a resizer with white-background padding.
This post is deprecated new post is here : https://www.patreon.com/posts/ultimate-image-2-120352012
-
-
-
Please use this post now : https://www.patreon.com/posts/ultimate-image-2-120352012
-
-
-
-
Please use this post now : https://www.patreon.com/posts/ultimate-image-2-120352012
-
-
-
Patreon exclusive posts index to find our scripts easily, Patreon scripts updates history to see which updates arrived to which scripts and amazing Patreon special generative scripts list that you can use in any of your task.
Join discord to get help, chat, discuss and also tell me your discord username to get your special rank : SECourses Discord
Please also Star, Watch and Fork our Stable Diffusion & Generative AI GitHub repository and join our Reddit subreddit and follow me on LinkedIn (my real profile)
=======
Latest installer zip file : Ulti_Img_PreProcess_v8.zip
9 December 2024 Update
Face Extractor code fixed and now fully working
Now you can multi-threaded extract faces with add or remove padding option
It uses face_yolov9c.pt model from adetailer developer
The image types Yolo can process was limited
Now the app will convert images into png to be able to process all images during runtime like jfif type
20 November 2024 Update
Yolo version upgraded to Yolo V11 from V10
You can use this app code to understand and write a Yolo standalone application easily
Overwrite older files and click install again to upgrade
3 November 2024 Update
Kaggle notebook added upon request
17 October 2024 Update
The error on Ubuntu systems, Massed Compute and RunPod fixed
Use newer Massed_Compute_Instructions_READ.txt file command
Save as JPEG option added
Windows Requirements
Python 3.10, FFmpeg, CUDA 12.4, cuDNN 8.9.7, C++ Tools and Git
If it doesn't work make sure to below NEW tutorial and install everything exactly as shown in this below tutorial
How To Install
Just extract into your main drives like c:/resize - dont use space char or special letters
Double click and execute Windows_Install.bat to install
When updating just extract new zip file and rerun Windows_Install.bat file
For RunPod and Massed Compute follow the instructions
How To Use
This app is developed by me from scratch to pre-process your training images.
First use Image Cropper tab to extract subjects from your images (it will not cut the parts of the subject)
It uses Yolo v10 model and supports following classes (79 class like car, person, cat, etc..), you can select class from drop-down box : Yolo_10_Class_List.txt
So this will zoom the subject with trying to match to the given aspect ratio
Still you may not get the perfect aspect ratio if the subject needs to be cropped
The benefit of this that, you should zoom the training subject in your images
You can watch this video to understand : https://youtu.be/Fbuyu35TkE4
Hopefully I will make a full new tutorial soon
Then use the Image Resizer tab to resize them into your exact resolution
This will focus to the face when resizing however if you don't have a face in image like you are resizing car images, it will just resize without any focus of any part of the subject
I also added option resize without cropping (center image and add white background) so that it will expand image with white background to not crop any part of the image
Check following how to use images : How To Use Image Cropper.png , How To Use Image Resizer.png
First crop images with auto cropper and then use outputs folder of the auto cropper with resizer and it should work hopefully perfect
The following tabs of the images still in development : Move Low-Res Files, Rename Files, Extract Faces, Find Duplicates
Used Model Files
I have used official yolov10x.pt from : https://docs.ultralytics.com/models/yolov10/
And face_yolov9c.pt from (developer of ADetailer extension) https://huggingface.co/Bingsu/adetailer/tree/main
Related posts
Ultimate Image Processing App: 1-Click Batch Cropping, SAM 3.1 Masking
All JoyCaption Apps: 1-Click Installers With Batch Captioning
Ultimate Image Processing App Released: Batch Crop, Resize & SAM 3.1
All posts in this topic: Captioning, Dataset and Image Processing Tools · New to SECourses? Start Here: Best and Most Popular SECourses Posts