From 6d5a68ec4724729130b73ac88c0efdaf49e6e594 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Tue, 30 Jul 2024 03:35:28 +0200 Subject: [PATCH] Update comet from init() to login() (#14793) Co-authored-by: UltralyticsAssistant --- docs/en/integrations/comet.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/en/integrations/comet.md b/docs/en/integrations/comet.md index bc7cc05a..7c9ab2a9 100644 --- a/docs/en/integrations/comet.md +++ b/docs/en/integrations/comet.md @@ -53,7 +53,7 @@ Then, you can initialize your Comet project. Comet will automatically detect the ```python import comet_ml -comet_ml.init(project_name="comet-example-yolov8-coco128") +comet_ml.login(project_name="comet-example-yolov8-coco128") ``` If you are using a Google Colab notebook, the code above will prompt you to enter your API key for initialization. @@ -72,7 +72,7 @@ Before diving into the usage instructions, be sure to check out the range of [YO # Load a model model = YOLO("yolov8n.pt") - # train the model + # Train the model results = model.train( data="coco8.yaml", project="comet-example-yolov8-coco128", @@ -200,7 +200,7 @@ To integrate Comet ML with Ultralytics YOLOv8, follow these steps: ```python import comet_ml - comet_ml.init(project_name="comet-example-yolov8-coco128") + comet_ml.login(project_name="comet-example-yolov8-coco128") ``` 4. **Train your YOLOv8 model and log metrics**: @@ -210,7 +210,12 @@ To integrate Comet ML with Ultralytics YOLOv8, follow these steps: model = YOLO("yolov8n.pt") results = model.train( - data="coco8.yaml", project="comet-example-yolov8-coco128", batch=32, save_period=1, save_json=True, epochs=3 + data="coco8.yaml", + project="comet-example-yolov8-coco128", + batch=32, + save_period=1, + save_json=True, + epochs=3, ) ``` @@ -255,7 +260,7 @@ Comet ML allows for extensive customization of its logging behavior using enviro os.environ["COMET_EVAL_LOG_CONFUSION_MATRIX"] = "false" ``` -For more customization options, refer to the [Customizing Comet ML Logging](#customizing-comet-ml-logging) section. +Refer to the [Customizing Comet ML Logging](#customizing-comet-ml-logging) section for more customization options. ### How do I view detailed metrics and visualizations of my YOLOv8 training on Comet ML?