Small tweaks

This commit is contained in:
Nicolas Mowen 2024-10-22 12:41:04 -06:00
parent 203e767338
commit e3cc943b0d
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class FaceRecognitionConfig(FrigateBaseModel):
default=0.8, title="Face similarity score required to be considered a match."
)
min_area: int = Field(
default=1000, title="Min area of face box to consider running face recognition."
default=500, title="Min area of face box to consider running face recognition."
)

View File

@ -196,7 +196,7 @@ class GenericONNXEmbedding:
# handle images larger than input size
width, height = pil.size
if width > 112 or height > 112:
if width != 112 or height != 112:
if width > height:
new_height = int(((height / width) * 112) // 4 * 4)
pil = pil.resize((112, new_height))