mirror of
https://github.com/muerrilla/sd-webui-detail-daemon.git
synced 2026-11-05 01:37:56 +00:00
[PR #4] [MERGED] fix disable during hires fix #17
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
muerrilla/sd-webui-detail-daemon#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/muerrilla/sd-webui-detail-daemon/pull/4
Author: @w-e-w
Created: 7/1/2024
Status: ✅ Merged
Merged: 7/1/2024
Merged by: @muerrilla
Base:
main← Head:main📝 Commits (3)
da12d2efix disable during hires fix7042530formattingf1a3c5ePEP 8: E722 do not use bare 'except'📊 Changes
1 file changed (+21 additions, -15 deletions)
View changed files
📝
scripts/detail_daemon.py(+21 -15)📄 Description
processit's only executed ONCE per entire jobone job can have multiple
batch countsself.is_hires = Falseis inprocesswhen hires fix is enable
self.is_hires = Truewill be set inbefore_hrif the job end hear then it's fine
but this is not the end when
batch count > 1the next batch will not run
batch countssince
self.is_hiresnevert reseted to back toFalsefor 2nd batch and onwards extension will be disabledfix is simple
moveing
self.is_hires = Falsetobefore_process_batchshould solve the issueadditional changes apply some formatting
and importantly PEP 8: E722 do not use bare 'except'
most extension that requires knowing whether or not it's hires pass would would just access the
p.is_hr_passattribute and not needing the extra logic, but unfortunately you are working withdenoiser_callbackwithout easy access topI think current way is thg is the easiest method
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.