Merge pull request #510 from roboflow/509-mask-annotator-from-sam-error

fix(notebook): 🐛📘 sam detection ColorLookup param and enum added and sv version updated
This commit is contained in:
Piotr Skalski 2023-10-21 12:28:12 +02:00 committed by GitHub
commit de45e9d67f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
demo.ipynb vendored
View File

@ -226,7 +226,7 @@
"output_type": "stream",
"text": [
"\u001b[?25l \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m0.0/45.4 kB\u001b[0m \u001b[31m?\u001b[0m eta \u001b[36m-:--:--\u001b[0m\r\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m45.4/45.4 kB\u001b[0m \u001b[31m3.4 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
"\u001b[?25h0.15.0\n"
"\u001b[?25h0.16.0\n"
]
}
],
@ -540,7 +540,7 @@
}
],
"source": [
"mask_annotator = sv.MaskAnnotator(color_map=\"index\")\n",
"mask_annotator = sv.MaskAnnotator(color_lookup=sv.ColorLookup.INDEX)\n",
"\n",
"annotated_image = mask_annotator.annotate(image.copy(), detections=detections)\n",
"\n",