Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set my own values on the latent image presets node? #113

Open
scofano opened this issue Sep 11, 2024 · 10 comments
Open

How to set my own values on the latent image presets node? #113

scofano opened this issue Sep 11, 2024 · 10 comments

Comments

@scofano
Copy link

scofano commented Sep 11, 2024

Hi, how can I set my own values on the latent image presets node?

I'd like to set up 1024x576 (SVD size)

@kijai
Copy link
Owner

kijai commented Sep 17, 2024

You would have to edit this the code:

image

But I added the SVD resolution now, as well as aspect ratio display to the selection (has no effect in functionality)

@scofano
Copy link
Author

scofano commented Sep 17, 2024

@kijai thanks a lot.

I'd like to be able to set up all the flux resolutions as well. I'm actually doing this, but it is not neat. Your custom node is the solution to this mess.
image

https://www.reddit.com/r/StableDiffusion/comments/1enxdga/flux_recommended_resolutions_from_01_to_20/

@scofano
Copy link
Author

scofano commented Sep 17, 2024

My suggestion to improve your node is to create a first dropdown with the model size(1.5/sdxl/flux) and then, the resolutions for each one. I understand if I change the JSON manually, it will be overwritten when the node is updated from git, right?

@kijai
Copy link
Owner

kijai commented Sep 17, 2024

My suggestion to improve your node is to create a first dropdown with the model size(1.5/sdxl/flux) and then, the resolutions for each one. I understand if I change the JSON manually, it will be overwritten when the node is updated from git, right?

Yeah you're right, I made another node called EmptyLatentImageCustomPresets which loads the choices from a new custom_dimensions.json file in this custom node's root, you can set whatever you want there:

image

@scofano
Copy link
Author

scofano commented Sep 17, 2024

@kijai that's wonderful! So, I'm assuming this file won't be updated by git, so edits won't be lost, right? Just one thing, would it be possible to "label" the sizes? Like "portrait 9:16" "iPhone portrait", etc.? (It would be easier to spot the right choice, I can't remember the ratios by just looking at the resolutions)

@kijai
Copy link
Owner

kijai commented Sep 17, 2024

Okay, let's do it like this then:

image

And I won't update the custom_dimensions.json in the future.

@scofano
Copy link
Author

scofano commented Sep 17, 2024

Just perfect. Thanks a lot!

@scofano scofano closed this as completed Sep 17, 2024
@scofano
Copy link
Author

scofano commented Sep 17, 2024

In case you want to update your initial file with these values:

[
{
"label": "Flux Max 1:1 Rounded",
"value": "1408x1408"
},
{
"label": "Flux Max 3:2 Rounded",
"value": "1728x1152"
},
{
"label": "Flux Max 4:3 Rounded",
"value": "1664x1216"
},
{
"label": "Flux Max 16:9 Rounded",
"value": "1920x1088"
},
{
"label": "Flux Max 21:9 Rounded",
"value": "2176x960"
},
{
"label": "Flux Min 0.1 MP",
"value": "512x512"
},
{
"label": "SVD Landscape",
"value": "1024x576"
},
{
"label": "SVD Portrait",
"value": "576x1024"
},
{
"label": "SDXL 1:1 Rounded",
"value": "1024x1024"
},
{
"label": "SDXL 3:2 Rounded",
"value": "1216x832"
},
{
"label": "SDXL 4:3 Rounded",
"value": "1152x896"
},
{
"label": "SDXL 16:9 Rounded",
"value": "1344x768"
},
{
"label": "SDXL 21:9 Rounded",
"value": "1536x640"
}
]

@scofano
Copy link
Author

scofano commented Sep 18, 2024

Hi @kijai Just a reminder that I've updated the nodes today and the custom size file was overwritten (being replaced with the basic one).

@scofano scofano reopened this Sep 18, 2024
@scofano
Copy link
Author

scofano commented Sep 18, 2024

And I also got this:
image

It looks like an update regression.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants