Skip to content

Commit

Permalink
fix: SEGS_Classify - invalid processing of expr
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata committed Nov 5, 2023
1 parent 1e7b87b commit 6f1071c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/impact/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os


version = "V4.29.2"
version = "V4.29.3"

dependency_version = 17

Expand Down
5 changes: 4 additions & 1 deletion modules/impact/hf_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,15 @@ def doit(self, classifier, segs, preset_expr, manual_expr, ref_image_opt=None):
if b_is_lab:
bvalue = SEGS_Classify.lookup_classified_label_score(res, b)
else:
bvalue = a
bvalue = b

if avalue is None or bvalue is None:
remained_SEGS.append(seg)
continue

avalue = float(avalue)
bvalue = float(bvalue)

if op == '>':
cond = avalue > bvalue
elif op == '<':
Expand Down

0 comments on commit 6f1071c

Please sign in to comment.