diff --git a/lectures/4_segmentation.ipynb b/lectures/4_segmentation.ipynb index 4eefa4a..54f3150 100644 --- a/lectures/4_segmentation.ipynb +++ b/lectures/4_segmentation.ipynb @@ -338,7 +338,7 @@ "indices = draw.circle_perimeter(100, 220, 25)\n", "\n", "astronaut_labels[indices] = 1\n", - "astronaut_labels[points[:, 1].astype(np.int), points[:, 0].astype(np.int)] = 2\n", + "astronaut_labels[points[:, 1].astype(int), points[:, 0].astype(int)] = 2\n", "\n", "image_show(astronaut_labels);" ]