Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Essential Bug Fixes #91

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add files via upload
  • Loading branch information
Edwardsmith35 authored Dec 26, 2024
commit 49aa9e405587d54262708fbe71255e2589cf8bcf
16 changes: 5 additions & 11 deletions modules/async_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,17 +1391,11 @@ def callback(step, x0, x, total_steps, y):
print("Error: current_task_id exceeds the number of images to enhance.")
break

if current_task_id < len(images_to_enhance) and prompts_processed:
enhance_prompt = processed_tasks_dictionary[current_task_id]['positive']
last_enhance_prompt = enhance_prompt
enhance_negative_prompt = processed_tasks_dictionary[current_task_id]['negative']
last_enhance_negative_prompt = enhance_negative_prompt
#print(f"DEBUG processed_tasks_dictionary[{current_task_id}]['positive']: "+str(processed_tasks_dictionary[current_task_id]['positive'])) ##
else:
enhance_prompt = async_task.prompt
enhance_negative_prompt = async_task.negative_prompt
last_enhance_prompt = async_task.prompt
last_enhance_negative_prompt = async_task.negative_prompt

enhance_prompt = async_task.prompt
enhance_negative_prompt = async_task.negative_prompt
last_enhance_prompt = async_task.prompt
last_enhance_negative_prompt = async_task.negative_prompt

if enhance_uov_before: ## changed async_task.prompt to processed_tasks_dictionary[current_task_id]['positive']
#current_task_id += 1 ##
Expand Down