fix(ml): batch axis not being added for recognition model (#12588)

* fix has_batch_axis

* fix typing
This commit is contained in:
Mert 2024-09-11 23:21:12 -04:00 committed by GitHub
parent fa095c3ca0
commit 22dc9bcebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View file

@ -1,5 +0,0 @@
from app.schemas import ModelSession
def has_batch_axis(session: ModelSession) -> bool:
return not isinstance(session.get_inputs()[0].shape[0], int) or session.get_inputs()[0].shape[0] < 0