Skip to content

Commit

Permalink
Incorrect confidence type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhejhal authored Feb 20, 2024
1 parent c1d9e6c commit a246dcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autodistill_owlv2/owlv2_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, ontology: CaptionOntology):
)
self.ontology = ontology

def predict(self, input: Any, confidence: int = 0.1) -> sv.Detections:
def predict(self, input: Any, confidence: float = 0.1) -> sv.Detections:
image = load_image(input, return_format="PIL")
texts = [self.ontology.prompts()]

Expand Down

0 comments on commit a246dcc

Please sign in to comment.