src/estimators/detectron.py
def _set_checkpoint(self, checkpoint):
        """
        Returns a path or URI to a checkpoint
        Args:
            checkpoint: Path or URI to checkpoint.

        Returns:
            Path to checkpoint
        """
        if "COCO-Detection" in checkpoint:
            return model_zoo.get_checkpoint_url(checkpoint)
        elif ".pth" in checkpoint:
            return checkpoint
        elif "detectron2://" in checkpoint:
            return checkpoint
        return checkpoint

        Returns a path or URI to a checkpoint
        Args:
            checkpoint: Path or URI to checkpoint.

        Returns:
            Path to checkpoint
        
Returns a path or URI to a checkpoint
Returns a path or URI to a checkpoint
def _set_checkpoint(self, checkpoint):
        if "COCO-Detection" in checkpoint:
            return model_zoo.get_checkpoint_url(checkpoint)
        elif ".pth" in checkpoint:
            return checkpoint
        elif "detectron2://" in checkpoint:
            return checkpoint
        return checkpoint
def _set_checkpoint ( self , checkpoint ) : if "COCO-Detection" in checkpoint : return model_zoo . get_checkpoint_url ( checkpoint ) elif ".pth" in checkpoint : return checkpoint elif "detectron2://" in checkpoint : return checkpoint return checkpoint
Returns a path or URI to a checkpoint
Returns a path or URI to a checkpoint
"""
        Returns a path or URI to a checkpoint
        Args:
            checkpoint: Path or URI to checkpoint.

        Returns:
            Path to checkpoint
        """
Path to checkpoint
Path to checkpoint
self
checkpoint
Path or URI to checkpoint.
Path or URI to checkpoint .