Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
75e7eb91
You need to sign in or sign up before continuing.
Commit
75e7eb91
authored
Mar 23, 2023
by
space-nuko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
img2img resolution preview should use currently selected tab's image
parent
7ea5d395
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
javascript/ui.js
javascript/ui.js
+10
-3
No files found.
javascript/ui.js
View file @
75e7eb91
...
...
@@ -106,7 +106,14 @@ function create_tab_index_args(tabId, args){
function
get_img2img_tab_index
()
{
let
res
=
args_to_array
(
arguments
)
res
.
splice
(
-
2
)
res
.
splice
(
-
2
)
// gradio also sends outputs to the arguments, pop them off
res
[
0
]
=
get_tab_index
(
'
mode_img2img
'
)
return
res
}
function
get_img2img_tab_index_for_res_preview
()
{
let
res
=
args_to_array
(
arguments
)
res
.
splice
(
-
1
)
// gradio also sends outputs to the arguments, pop them off
res
[
0
]
=
get_tab_index
(
'
mode_img2img
'
)
return
res
}
...
...
@@ -345,7 +352,7 @@ function selectCheckpoint(name){
}
function
onCalcResolutionImg2Img
(
init_img
,
scale
,
width
,
height
,
resize_mode
){
function
onCalcResolutionImg2Img
(
mode
,
scale
,
width
,
height
,
resize_mode
,
init_img
,
sketch
,
init_img_with_mask
,
inpaint_color_sketch
,
init_img_inpaint
){
i2iScale
=
gradioApp
().
getElementById
(
'
img2img_scale
'
)
i2iWidth
=
gradioApp
().
getElementById
(
'
img2img_width
'
)
i2iHeight
=
gradioApp
().
getElementById
(
'
img2img_height
'
)
...
...
@@ -354,5 +361,5 @@ function onCalcResolutionImg2Img(init_img, scale, width, height, resize_mode){
setInactive
(
i2iWidth
,
scale
>
1
)
setInactive
(
i2iHeight
,
scale
>
1
)
return
[
init_img
,
width
,
height
,
scale
,
resize_mode
]
return
[
];
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment