Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
柴进
/
GoogleNanoBananaApp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0c1488e1
authored
2025-12-11 10:42:31 +0800
by
柴进
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
移除宽高比处理
1 parent
2bdf43b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
image_generator.py
image_generator.py
View file @
0c1488e
...
...
@@ -1415,8 +1415,7 @@ class ImageGeneratorWindow(QMainWindow):
settings_layout
.
addWidget
(
QLabel
(
"宽高比"
))
self
.
aspect_ratio
=
QComboBox
()
self
.
aspect_ratio
.
addItems
([
"1:1"
,
"2:3"
,
"3:2"
,
"3:4"
,
"4:3"
,
"4:5"
,
"5:4"
,
"9:16"
,
"16:9"
,
"21:9"
,
"match_input_image"
])
self
.
aspect_ratio
.
setCurrentText
(
"match_input_image"
)
# 设置默认值
self
.
aspect_ratio
.
addItems
([
"1:1"
,
"2:3"
,
"3:2"
,
"3:4"
,
"4:3"
,
"4:5"
,
"5:4"
,
"9:16"
,
"16:9"
,
"21:9"
])
settings_layout
.
addWidget
(
self
.
aspect_ratio
)
settings_layout
.
addSpacing
(
10
)
...
...
@@ -1953,6 +1952,7 @@ class ImageGeneratorWindow(QMainWindow):
QMessageBox
.
warning
(
self
,
"提示"
,
"请输入图片描述!"
)
return
try
:
# Submit task to queue
task_id
=
self
.
task_manager
.
submit_task
(
...
...
Please
register
or
sign in
to post a comment