drivable/datasets/bdd100k.py
def format_results(  # pylint: disable=arguments-differ
        self, results: List[np.ndarray], imgfile_prefix: str  # type: ignore
    ) -> List[str]:
        """Format the results into dir (standard format for BDD100K)."""
        assert isinstance(results, list), "results must be a list"
        assert len(results) == len(self), (
            "The length of results is not equal to the dataset len: "
            f"{len(results)} != {len(self)}"
        )
        result_files = self.results2img(results, imgfile_prefix)

        return result_files
Format the results into dir (standard format for BDD100K).
Format the results into dir (standard format for BDD100K).
Format the results into dir ( standard format for BDD100K ) .
def format_results(  
        self, results: List[np.ndarray], imgfile_prefix: str  
    ) -> List[str]:
        assert isinstance(results, list), "results must be a list"
        assert len(results) == len(self), (
            "The length of results is not equal to the dataset len: "
            f"{len(results)} != {len(self)}"
        )
        result_files = self.results2img(results, imgfile_prefix)
        return result_files
def format_results ( self , results : List [ np . ndarray ] , imgfile_prefix : str ) -> List [ str ] : assert isinstance ( results , list ) , "results must be a list" assert len ( results ) == len ( self ) , ( "The length of results is not equal to the dataset len: " f"{len(results)} != {len(self)}" ) result_files = self . results2img ( results , imgfile_prefix ) return result_files
Format the results into dir (standard format for BDD100K).
Format the results into dir ( standard format for BDD100K ) .
# pylint: disable=arguments-differ # type: ignore """Format the results into dir (standard format for BDD100K)."""
self
results
List[np.ndarray]
imgfile_prefix
str