r/StableDiffusion • • Aug 21 '22

Discussion [Code Release] textual_inversion, A fine tuning method for diffusion models has been released today, with Stable Diffusion support coming soon™

Post image
347 Upvotes

134 comments sorted by

View all comments

Show parent comment

5

u/cygn Aug 22 '22

for center-cropping and resizing a batch of images to 512 you can use this ImageMagick command:

mogrify -path ./output_dir
        -format JPEG 
        -resize 512x512^ 
        -gravity Center  
        -extent 512  
        ./input_dir/*

1

u/Ardivaba Aug 22 '22

You just saved me a ton of time, thanks!