Spaces:
Runtime error
Runtime error
Commit
·
da291f3
1
Parent(s):
f67edd4
Update sketch_helper.py
Browse files- sketch_helper.py +1 -1
sketch_helper.py
CHANGED
|
@@ -19,7 +19,7 @@ def color_quantization(image, n_colors):
|
|
| 19 |
labels = np.argmin(dists, axis=1)
|
| 20 |
new_image = colors[labels].reshape(image.shape).astype(np.uint8)
|
| 21 |
|
| 22 |
-
return new_image
|
| 23 |
|
| 24 |
|
| 25 |
def get_high_freq_colors(image):
|
|
|
|
| 19 |
labels = np.argmin(dists, axis=1)
|
| 20 |
new_image = colors[labels].reshape(image.shape).astype(np.uint8)
|
| 21 |
|
| 22 |
+
return new_image
|
| 23 |
|
| 24 |
|
| 25 |
def get_high_freq_colors(image):
|