class_docstr: An internal YOLO model wrapper that tracks metrics, and logs models to Weights & Biases.
  
  Usage:
  ```python
  from wandb.integration.yolov8.yolov8 import WandbCallback
  
  model = YOLO("yolov8n.pt")
  wandb_logger = WandbCallback(
      model,
  )
  for event, callback_fn in wandb_logger.callbacks.items():
      model.add_callback(event, callback_fn)
  ```
class_docstr_tok: ["An","internal","YOLO","model","wrapper","that","tracks","metrics",",","and","logs","models","to","Weights","&","Biases",".","Usage",":","``","`","python","from","wandb.integration.yolov8.yolov8","import","WandbCallback","model","=","YOLO","(","``","yolov8n.pt","''",")","wandb_logger","=","WandbCallback","(","model",",",")","for","event",",","callback_fn","in","wandb_logger.callbacks.items","(",")",":","model.add_callback","(","event",",","callback_fn",")","``","`"]
docstr: A utility class to manage wandb run and various callbacks for the ultralytics YOLOv8 framework.
  
  Args:
      yolo: A YOLOv8 model that's inherited from `:class:ultralytics.yolo.engine.model.YOLO`
      run_name, str: The name of the Weights & Biases run, defaults to an auto generated run_name if `trainer.args.name` is not defined.
      project, str: The name of the Weights & Biases project, defaults to `"YOLOv8"` if `trainer.args.project` is not defined.
      tags, List[str]: A list of tags to be added to the Weights & Biases run, defaults to `["YOLOv8"]`.
      resume, str: Whether to resume a previous run on Weights & Biases, defaults to `None`.
      **kwargs: Additional arguments to be passed to `wandb.init()`.
docstr_tok: ["A","utility","class","to","manage","wandb","run","and","various","callbacks","for","the","ultralytics","YOLOv8","framework",".","Args",":","yolo",":","A","YOLOv8","model","that","'s","inherited","from","`",":","class",":","ultralytics.yolo.engine.model.YOLO","`","run_name",",","str",":","The","name","of","the","Weights","&","Biases","run",",","defaults","to","an","auto","generated","run_name","if","`","trainer.args.name","`","is","not","defined",".","project",",","str",":","The","name","of","the","Weights","&","Biases","project",",","defaults","to","`","``","YOLOv8","''","`","if","`","trainer.args.project","`","is","not","defined",".","tags",",","List","[","str","]",":","A","list","of","tags","to","be","added","to","the","Weights","&","Biases","run",",","defaults","to","`","[","``","YOLOv8","''","]","`",".","resume",",","str",":","Whether","to","resume","a","previous","run","on","Weights","&","Biases",",","defaults","to","`","None","`",".","*","*","kwargs",":","Additional","arguments","to","be","passed","to","`","wandb.init","(",")","`","."]
code: def __init__(
      self,
      yolo: YOLO,
      run_name: Optional[str] = None,
      project: Optional[str] = None,
      tags: Optional[List[str]] = None,
      resume: Optional[str] = None,
      **kwargs: Optional[Any],
  ) -> None:
      """A utility class to manage wandb run and various callbacks for the ultralytics YOLOv8 framework.
  
      Args:
          yolo: A YOLOv8 model that's inherited from `:class:ultralytics.yolo.engine.model.YOLO`
          run_name, str: The name of the Weights & Biases run, defaults to an auto generated run_name if `trainer.args.name` is not defined.
          project, str: The name of the Weights & Biases project, defaults to `"YOLOv8"` if `trainer.args.project` is not defined.
          tags, List[str]: A list of tags to be added to the Weights & Biases run, defaults to `["YOLOv8"]`.
          resume, str: Whether to resume a previous run on Weights & Biases, defaults to `None`.
          **kwargs: Additional arguments to be passed to `wandb.init()`.
      """
      self.yolo = yolo
      self.run_name = run_name
      self.project = project
      self.tags = tags
      self.resume = resume
      self.kwargs = kwargs
  
file_path: wandb/wandb/integration/yolov8/yolov8.py
imports: from typing import Any, Callable, Dict, List, Optional
  from ultralytics.yolo.engine.model import YOLO
  from ultralytics.yolo.engine.trainer import BaseTrainer
  from ultralytics.yolo.v8.classify.train import ClassificationTrainer
  import wandb
  from wandb.sdk.lib import telemetry
label_desc: Use image node_id 1 to create a new WandbCallback object  with example: obj = WandbCallback(yolo, run_name, project, tags, resume)