Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Fucius
/
OMG
like
37
Runtime error
App
Files
Files
Community
1
13cf4e1
OMG
/
inference
/
core
/
models
/
utils
/
validate.py
Fucius
Upload 422 files
df6c67d
verified
8 months ago
raw
Copy download link
history
blame
Safe
173 Bytes
def
get_num_classes_from_model_prediction_shape
(
len_prediction, masks=
0
, keypoints=
0
):
num_classes = len_prediction -
5
- masks - (keypoints *
3
)
return
num_classes