Spaces:
Running
Running
Update pred_color.py
Browse files- pred_color.py +2 -2
pred_color.py
CHANGED
@@ -70,8 +70,8 @@ def conditioning_from_landmarks(landmarks, size=512):
|
|
70 |
|
71 |
fig.canvas.draw()
|
72 |
buffer, (width, height) = fig.canvas.print_to_buffer()
|
73 |
-
assert width == height
|
74 |
-
assert width == size
|
75 |
|
76 |
buffer = np.frombuffer(buffer, np.uint8).reshape((height, width, 4))
|
77 |
buffer = buffer[:, :, 0:3]
|
|
|
70 |
|
71 |
fig.canvas.draw()
|
72 |
buffer, (width, height) = fig.canvas.print_to_buffer()
|
73 |
+
#assert width == height
|
74 |
+
#assert width == size
|
75 |
|
76 |
buffer = np.frombuffer(buffer, np.uint8).reshape((height, width, 4))
|
77 |
buffer = buffer[:, :, 0:3]
|