mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
Small tweaks
This commit is contained in:
parent
203e767338
commit
e3cc943b0d
@ -13,7 +13,7 @@ class FaceRecognitionConfig(FrigateBaseModel):
|
|||||||
default=0.8, title="Face similarity score required to be considered a match."
|
default=0.8, title="Face similarity score required to be considered a match."
|
||||||
)
|
)
|
||||||
min_area: int = Field(
|
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."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -196,7 +196,7 @@ class GenericONNXEmbedding:
|
|||||||
|
|
||||||
# handle images larger than input size
|
# handle images larger than input size
|
||||||
width, height = pil.size
|
width, height = pil.size
|
||||||
if width > 112 or height > 112:
|
if width != 112 or height != 112:
|
||||||
if width > height:
|
if width > height:
|
||||||
new_height = int(((height / width) * 112) // 4 * 4)
|
new_height = int(((height / width) * 112) // 4 * 4)
|
||||||
pil = pil.resize((112, new_height))
|
pil = pil.resize((112, new_height))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user