def convert_super_gradients_model(model):
    """Converts the given SuperGradients model into a FiftyOne model.

    Args:
        model: a ``super_gradients.training.models.detection_models.yolo_nas``
            model

    Returns:
         a :class:`fiftyone.core.models.Model`

    Raises:
        ValueError: if the model could not be converted
    """
    if type(model).__module__.startswith(
        "super_gradients.training.models.detection_models.yolo_nas"
    ):
        return _convert_yolo_nas_detection_model(model)
    else:
        raise ValueError(
            "Unsupported model type; cannot convert %s to a FiftyOne model"
            % model
        )
Converts the given SuperGradients model into a FiftyOne model.

    Args:
        model: a ``super_gradients.training.models.detection_models.yolo_nas``
            model

    Returns:
         a :class:`fiftyone.core.models.Model`

    Raises:
        ValueError: if the model could not be converted
    
fiftyone/utils/super_gradients.py