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
2cf23099
Commit
2cf23099
authored
Jan 18, 2024
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix console total progress bar when using txt2img_upscale
add p.txt2img_upscale as indicator
parent
e1dfd452
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
modules/processing.py
modules/processing.py
+5
-2
modules/txt2img.py
modules/txt2img.py
+1
-0
No files found.
modules/processing.py
View file @
2cf23099
...
@@ -1227,8 +1227,11 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
...
@@ -1227,8 +1227,11 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing):
if
not
state
.
processing_has_refined_job_count
:
if
not
state
.
processing_has_refined_job_count
:
if
state
.
job_count
==
-
1
:
if
state
.
job_count
==
-
1
:
state
.
job_count
=
self
.
n_iter
state
.
job_count
=
self
.
n_iter
if
getattr
(
self
,
'txt2img_upscale'
,
False
):
shared
.
total_tqdm
.
updateTotal
((
self
.
steps
+
(
self
.
hr_second_pass_steps
or
self
.
steps
))
*
state
.
job_count
)
total_steps
=
(
self
.
hr_second_pass_steps
or
self
.
steps
)
*
state
.
job_count
else
:
total_steps
=
(
self
.
steps
+
(
self
.
hr_second_pass_steps
or
self
.
steps
))
*
state
.
job_count
shared
.
total_tqdm
.
updateTotal
(
total_steps
)
state
.
job_count
=
state
.
job_count
*
2
state
.
job_count
=
state
.
job_count
*
2
state
.
processing_has_refined_job_count
=
True
state
.
processing_has_refined_job_count
=
True
...
...
modules/txt2img.py
View file @
2cf23099
...
@@ -64,6 +64,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
...
@@ -64,6 +64,7 @@ def txt2img_upscale(id_task: str, request: gr.Request, gallery, gallery_index, g
p
.
enable_hr
=
True
p
.
enable_hr
=
True
p
.
batch_size
=
1
p
.
batch_size
=
1
p
.
n_iter
=
1
p
.
n_iter
=
1
p
.
txt2img_upscale
=
True
geninfo
=
json
.
loads
(
generation_info
)
geninfo
=
json
.
loads
(
generation_info
)
...
...
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