eloy.ballet.model#
Classes#
Functions#
|
Load model weights from a .npz file. |
Download pretrained weights from HuggingFace Hub. |
Module Contents#
- class eloy.ballet.model.CNN[source]#
Bases:
flax.linen.ModuleConvolutional Neural Network for centroid regression.
- eloy.ballet.model.load_weights_file(file)[source]#
Load model weights from a .npz file.
- Parameters:
file (str or Path) – Path to the .npz weights file.
- Returns:
Dictionary mapping layer names to their kernel and bias arrays.
- Return type:
dict
- eloy.ballet.model.download_weights()[source]#
Download pretrained weights from HuggingFace Hub.
- Returns:
Path to the downloaded weights file.
- Return type:
str