Skip to content

Commit

Permalink
Fix "not enough values to unpack" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglongMa committed Jul 2, 2023
1 parent 6cc677f commit daddc7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/stone/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def classify(image, is_bw, to_bw, skin_tone_palette, tone_labels, n_dominant_col
accuracy = round(100 - distance, 2)
result.extend([tone_hex, PERLA, accuracy])
if not verbose:
return result,
return result, None

# 0. Create initial report image
report_image = initial_report_image(image, report_image, skin_mask, use_face, to_bw)
Expand Down Expand Up @@ -318,6 +318,8 @@ def show(image):


def face_report_image(face, idx, image):
if image is None:
return None
x1, y1, x2, y2 = face
width = x2 - x1
height = 20
Expand Down

0 comments on commit daddc7f

Please sign in to comment.