Skip to content

Commit

Permalink
update res list
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed May 31, 2024
1 parent f63a2e5 commit 257e2ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion discord_tron_client/classes/image_manipulation/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

class ResolutionManager:
resolutions = [
# 1:1 aspect ratio
{"width": 768, "height": 768},
{"width": 1024, "height": 1024, "default_max": True},
{"width": 1280, "height": 1280},
{"width": 2048, "height": 2048},
# SDXL Resolutions, widescreen
{"width": 1984, "height": 512},
{"width": 1920, "height": 512},
{"width": 1856, "height": 512},
Expand All @@ -31,6 +33,7 @@ class ResolutionManager:
{"width": 1088, "height": 896},
{"width": 1088, "height": 960},
{"width": 1024, "height": 960},
# SDXL Resolutions, portrait
{"width": 960, "height": 1024},
{"width": 960, "height": 1088},
{"width": 896, "height": 1088},
Expand All @@ -49,8 +52,9 @@ class ResolutionManager:
{"width": 512, "height": 1856},
{"width": 512, "height": 1920},
{"width": 512, "height": 1984},
# Terminus resolutions - 1152x960, 896x1152 (in sdxl section above)
{"width": 1152, "height": 960},
]

@staticmethod
def get_resolutions_with_extra_data(aspectratio=None):
# Return ResolutionManager.resolutions after adding more information to each row, such as whether we will attention scale that resolution, and its aspect ratio
Expand Down

0 comments on commit 257e2ad

Please sign in to comment.