Skip to content

Commit

Permalink
✨ feat(generate_image): add mutual exclusion and quality modifier
Browse files Browse the repository at this point in the history
Add mutual exclusion and quality modifier options to GenerateImageInfer.

🔧 chore: update model to NAI_DIFFUSION_3 in generate_image.py

Bump version to 0.7.2 in pyproject.toml.
  • Loading branch information
sudoskys committed Jan 3, 2025
1 parent 3f1f0e7 commit 3a083a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/novelai_python/sdk/ai/generate_image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def enhance_message(_prompt):
logger.trace("Mutual exclusion is enabled, will modify negative prompt.")
input_prompt = {x.strip(): x for x in self.input.split(",")}
uc_prompt = {x.strip(): x for x in self.parameters.negative_prompt.split(",")}
# 以 input 为主,如果 uc_prompt 有 input 中的内容,就删除
# Remove conflicting negative words
for key in input_prompt:
if key in uc_prompt:
uc_prompt.pop(key)
Expand Down

0 comments on commit 3a083a1

Please sign in to comment.