Download inference/core/utils/validate.py from Sankie005/Docker_ml: direct link, hf CLI and curl.
- Browser
- Download file 142 Bytes
-
https://huggingface.co/spaces/Sankie005/Docker_ml/resolve/main/inference/core/utils/validate.py
- Command line
-
hf download hf://spaces/Sankie005/Docker_ml/inference/core/utils/validate.py
-
curl -L -o validate.py https://huggingface.co/spaces/Sankie005/Docker_ml/resolve/main/inference/core/utils/validate.py
142 Bytes
| def get_num_classes_from_model_prediction_shape(len_prediction, masks=0): | |
| num_classes = len_prediction - 5 - masks | |
| return num_classes | |