Skip to content

Commit

Permalink
(Refactor) Cleand up the code.
Browse files Browse the repository at this point in the history
  • Loading branch information
frederik committed Nov 1, 2021
1 parent a2138b5 commit 2cacf81
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions icevision/parsers/coco_parser.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
__all__ = [
# "coco",
"COCOBaseParser",
"COCOBBoxParser",
"COCOMaskParser",
Expand All @@ -13,21 +12,6 @@
from icevision.parsers import *


# # TODO: Deprecated
# def coco(
# annotations_file: Union[str, Path],
# img_dir: Union[str, Path],
# mask: bool = True,
# idmap: Optional[IDMap] = None,
# ) -> Parser:
# logger.warning(
# "This function will be deprecated, instantiate the concrete "
# "classes instead: `COCOBBoxParser`, `COCOMaskParser`, `COCOKeypointsParser`"
# )
# parser_cls = COCOMaskParser if mask else COCOBBoxParser
# return parser_cls(annotations_file, img_dir, idmap=idmap)


class COCOBaseParser(Parser):
def __init__(
self,
Expand Down

0 comments on commit 2cacf81

Please sign in to comment.