Skip to content

Commit

Permalink
Fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
faustomorales committed Jul 25, 2022
1 parent f535adc commit 7faae52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mira/detectors/assets/serve/object_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def handle(self, data, context):
return output

def postprocess(self, data, thresholds):
if API_MODE == "torch":
if API_MODE == "torchserve":
return super().postprocess(data)
return [
[
Expand Down
2 changes: 1 addition & 1 deletion mira/detectors/detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def to_torchserve(
archive_format: tx.Literal["default", "no-archive"] = "default",
score_threshold: float = 0.5,
model_version="1.0",
api_mode: tx.Literal["mira", "torchserver"] = "mira",
api_mode: tx.Literal["mira", "torchserve"] = "mira",
):
"""Build a TorchServe-compatible MAR file for this model."""
assert (
Expand Down

0 comments on commit 7faae52

Please sign in to comment.