Fix resolution list.
This commit is contained in:
+28
-1
@@ -1,7 +1,34 @@
|
||||
|
||||
# Define resolution presets
|
||||
# Resolutions which appear to work well for SDXL as used in https://github.com/lllyasviel/Fooocus
|
||||
BASE_RESOLUTIONS = [(1024, 1024), (704, 1408), (704, 1344), (768, 1344), (768, 1280), (832, 1216), (832, 1152), (896, 1152), (896, 1088), (960, 1088), (960, 1024), (1024, 960), (1088, 960), (1088, 896), (1152, 896), (1152, 832), (1216, 832), (1280, 768), (1344, 768), (1344, 704), (1408, 704), (1472, 704), (1536, 640), (1600, 640), (1664, 576), (1728, 576)]
|
||||
BASE_RESOLUTIONS = [
|
||||
(1024, 1024),
|
||||
(704, 1408),
|
||||
(704, 1344),
|
||||
(768, 1344),
|
||||
(768, 1280),
|
||||
(832, 1216),
|
||||
(832, 1152),
|
||||
(896, 1152),
|
||||
(896, 1088),
|
||||
(960, 1088),
|
||||
(960, 1024),
|
||||
(1024, 960),
|
||||
(1088, 960),
|
||||
(1088, 896),
|
||||
(1152, 896),
|
||||
(1152, 832),
|
||||
(1216, 832),
|
||||
(1280, 768),
|
||||
(1344, 768),
|
||||
(1344, 704),
|
||||
(1408, 704),
|
||||
(1472, 704),
|
||||
(1536, 640),
|
||||
(1600, 640),
|
||||
(1664, 576),
|
||||
(1728, 576)
|
||||
]
|
||||
|
||||
# Create a list of resolution strings for the drop-down menu
|
||||
resolution_strings = [f"{width}x{height}" for width, height in BASE_RESOLUTIONS]
|
||||
|
||||
Reference in New Issue
Block a user