Skip to content

Commit

Permalink
seg tutorial fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel-wj-chapman committed Sep 23, 2024
1 parent 078fd09 commit 2497698
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@
"source": [
"from tutorials.mct_model_garden.models_pytorch.yolov8.yolov8 import seg_model_predict\n",
"from tutorials.mct_model_garden.evaluation_metrics.coco_evaluation import evaluate_yolov8_segmentation\n",
"device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\n",
"model = model.to(device)\n",
"evaluate_yolov8_segmentation(model, seg_model_predict, data_dir='coco', data_type='val2017', img_ids_limit=100, output_file='results.json', iou_thresh=0.7, conf=0.001, max_dets=300,mask_thresh=0.55)"
]
},
Expand Down

0 comments on commit 2497698

Please sign in to comment.