Skip to content

[how to remove cropping] Is resolution=1024 required? Can I not train a LORA with Dreambooth for SDXL with 1920x1080 images? #9018

Answered by asomoza
dkebudi asked this question in Q&A
Discussion options

You must be logged in to vote

That's a two part question, the script has some arguments to set the resolution and cropping of the images:

--resolution and --center_crop which seems you're using.

I don't really use the default scripts because I'm always testing new stuff, but if you want to change it so it can accept non-square images you will need to change the Dataset object.

This line is the one that does the resizing so you'll need to change it. If you're using the same resolution images you can practically just delete the resizing from the dataset.

make enough tweaks to the under lying code such that I allow for different aspect ratios in trianing

Just as a heads up, If you're struggling with just the image resi…

Replies: 3 comments 52 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@asomoza
Comment options

Answer selected by dkebudi
Comment options

You must be logged in to vote
51 replies
@dkebudi
Comment options

@asomoza
Comment options

@dkebudi
Comment options

@ScilenceForest
Comment options

@asomoza
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants