mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: update image size format and expand available options in tti.py
This commit is contained in:
parent
a7fd1ac650
commit
cef7075382
|
|
@ -15,15 +15,18 @@ class VolcanicEngineTTIModelGeneralParams(BaseForm):
|
|||
TooltipLabel(_('Image size'),
|
||||
_('If the gap between width, height and 512 is too large, the picture rendering effect will be poor and the probability of excessive delay will increase significantly. Recommended ratio and corresponding width and height before super score: width*height')),
|
||||
required=True,
|
||||
default_value='512*512',
|
||||
default_value='512x512',
|
||||
option_list=[
|
||||
{'value': '512*512', 'label': '512*512'},
|
||||
{'value': '512*384', 'label': '512*384'},
|
||||
{'value': '384*512', 'label': '384*512'},
|
||||
{'value': '512*341', 'label': '512*341'},
|
||||
{'value': '341*512', 'label': '341*512'},
|
||||
{'value': '512*288', 'label': '512*288'},
|
||||
{'value': '288*512', 'label': '288*512'},
|
||||
{'label': '512x512', 'value': '512x512'},
|
||||
{'label': '1024x1024', 'value': '1024x1024'},
|
||||
{'label': '864x1152', 'value': '864x1152'},
|
||||
{'label': '1152x864', 'value': '1152x864'},
|
||||
{'label': '1280x720', 'value': '1280x720'},
|
||||
{'label': '720x1280', 'value': '720x1280'},
|
||||
{'label': '832x1248', 'value': '832x1248'},
|
||||
{'label': '1248x832', 'value': '1248x832'},
|
||||
{'label': '1512x648', 'value': '1512x648'},
|
||||
|
||||
],
|
||||
text_field='label',
|
||||
value_field='value')
|
||||
|
|
|
|||
Loading…
Reference in New Issue