LEv145 / --sd-webui-ar-plus

Select img aspect ratio from presets in sd-webui
51 stars 5 forks source link

Suggestion: Option to ommit either row #22

Open altoiddealer opened 6 months ago

altoiddealer commented 6 months ago

Hello, I think it should be possible for the user to ommit either one of the rows, by either commenting out all the values or some other extension setting that could be added in the A1111 / Forge UI settings.

Screenshot 2024-03-10 102512

This is related to the other issue I just submitted...

While the ratio calculation method remains as it is, I won't be using those buttons and will only have custom sizes. For now, I will have this irrelevant icon creating an empty row.

LEv145 commented 6 months ago

I can remove the icon and the line as a whole if no parameter is specified in the config

If I have time, I will implement it. It's just that right now I don't even have an A1111 on my PC

https://github.com/LEv145/--sd-webui-ar-plus/blob/main/scripts/sd-webui-ar.py#L244 In theory, you just need to add a line here:

if self.aspect_ratios:
    self._render_aspect_ratio_row()