Skip to content

Commit

Permalink
fix: LBW - no effect if weight is less than 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Aug 17, 2024
1 parent f64c987 commit 56f4f01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import importlib

version_code = [0, 85, 1]
version_code = [0, 85, 2]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
print(f"### Loading: ComfyUI-Inspire-Pack ({version_str})")

Expand Down
2 changes: 1 addition & 1 deletion inspire/lora_block_weight.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def parse_unet_num(s):

last_k_unet_num = k_unet_num

if populated_ratio > 0:
if populated_ratio != 0:
new_modelpatcher.add_patches({k: v}, strength_model * populated_ratio)

# if inverse:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "comfyui-inspire-pack"
description = "This extension provides various nodes to support Lora Block Weight and the Impact Pack. Provides many easily applicable regional features and applications for Variation Seed."
version = "0.85.1"
version = "0.85.2"
license = { file = "LICENSE" }
dependencies = ["matplotlib", "cachetools"]

Expand Down

0 comments on commit 56f4f01

Please sign in to comment.