{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "9c4a7668-aede-4f8c-833a-bf6eedc489e7",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"faster_coco_eval.__version__='1.5.3'\n"
]
}
],
"source": [
"import json\n",
"import logging\n",
"import faster_coco_eval\n",
"from faster_coco_eval import COCO\n",
"from faster_coco_eval.extra import Curves\n",
"from faster_coco_eval.extra import PreviewResults\n",
"\n",
"print(f\"{faster_coco_eval.__version__=}\")\n",
"\n",
"logging.root.setLevel(\"INFO\")\n",
"logging.debug(\"Запись.\")"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "a28dde2b-7219-4d9c-acbe-0e4d9db05692",
"metadata": {},
"outputs": [],
"source": [
"prepared_coco_in_dict = COCO.load_json(\"../tests/dataset/gt_dataset.json\")\n",
"prepared_anns = COCO.load_json(\"../tests/dataset/dt_dataset.json\")"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "1b95cda6",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" \n",
" "
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"plotlyServerURL": "https://plot.ly"
},
"data": [
{
"hovertemplate": "Pre: %{y:.3f}
Rec: %{x:.3f}
Score: %{text:.3f}