multimodalart HF staff commited on
Commit
f07954b
1 Parent(s): 7b0ac85

Update sketch_helper.py

Browse files
Files changed (1) hide show
  1. sketch_helper.py +1 -1
sketch_helper.py CHANGED
@@ -35,7 +35,7 @@ def color_quantization(image, n_colors=8, rounds=1):
35
  count += 1
36
 
37
  compactness, labels, centers = cv2.kmeans(samples,
38
- clusters,
39
  None,
40
  (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10000, 0.0001),
41
  rounds,
 
35
  count += 1
36
 
37
  compactness, labels, centers = cv2.kmeans(samples,
38
+ n_colors,
39
  None,
40
  (cv2.TERM_CRITERIA_EPS + cv2.TERM_CRITERIA_MAX_ITER, 10000, 0.0001),
41
  rounds,