jhc13 / taggui

Tag manager and captioner for image datasets
GNU General Public License v3.0
762 stars 36 forks source link

Feature request: simple image modification (crop, resize, mask painting) #294

Open ChristianMayer opened 4 weeks ago

ChristianMayer commented 4 weeks ago

General request

It would be great to be able to draw a selection frame in TagGUI which would then crop the image to the selected content and resize it (only shrinking) to then fit a configured maximum size. And for masked training it would be great when the mask could be drawn in TagGUI as well.

Refinement

It would be great to be able to configure a list of valid aspect ratios or sizes and then the selection frame will automatically be constraint to them. This would be great for batched training and keeping the number of batches small.

Implementation idea

TagGUI doesn't modify the images only the captions. This is great as it prevents you from worrying about modifying precious data! So I suggest to store the image manipulation data either in a hidden tag or in a side file like my_image_name.jpg.meta. And then TagGUI could offers an export menu entry where then all images are cropped and resized and stored together with their caption file in a new directory.

Additional information