Update comet from init() to login() (#14793)
Co-authored-by: UltralyticsAssistant <web@ultralytics.com>
This commit is contained in:
parent
9532ad7cae
commit
6d5a68ec47
1 changed files with 10 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ Then, you can initialize your Comet project. Comet will automatically detect the
|
||||||
```python
|
```python
|
||||||
import comet_ml
|
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.
|
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
|
# Load a model
|
||||||
model = YOLO("yolov8n.pt")
|
model = YOLO("yolov8n.pt")
|
||||||
|
|
||||||
# train the model
|
# Train the model
|
||||||
results = model.train(
|
results = model.train(
|
||||||
data="coco8.yaml",
|
data="coco8.yaml",
|
||||||
project="comet-example-yolov8-coco128",
|
project="comet-example-yolov8-coco128",
|
||||||
|
|
@ -200,7 +200,7 @@ To integrate Comet ML with Ultralytics YOLOv8, follow these steps:
|
||||||
```python
|
```python
|
||||||
import comet_ml
|
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**:
|
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")
|
model = YOLO("yolov8n.pt")
|
||||||
results = model.train(
|
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"
|
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?
|
### How do I view detailed metrics and visualizations of my YOLOv8 training on Comet ML?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue