Skip to content

Commit

Permalink
Update mask.py fix Literal
Browse files Browse the repository at this point in the history
  • Loading branch information
MiXaiLL76 authored Sep 13, 2024
1 parent 0919ef9 commit c262f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faster_coco_eval/core/mask.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Original work Copyright (c) Piotr Dollar and Tsung-Yi Lin, 2014.
# Modified work Copyright (c) 2024 MiXaiLL76
from typing import Dict, List, Literal, Union
from typing import Dict, List, Union

import numpy as np

Expand Down Expand Up @@ -70,7 +70,7 @@ def rleToBoundaryCV(rle: dict, dilation_ratio: float = 0.02) -> dict:
def rleToBoundary(
rle: dict,
dilation_ratio: float = 0.02,
backend: Literal["mask_api", "opencv"] = "mask_api",
backend: str = "mask_api",
) -> dict:
"""Convert run-length encoding to boundary rle.
Expand Down

0 comments on commit c262f05

Please sign in to comment.