birdnet.geo.models.v2_4 package¶
Submodules¶
birdnet.geo.models.v2_4.model module¶
- class birdnet.geo.models.v2_4.model.GeoDownloaderBaseV2_4¶
Bases:
object-
AVAILABLE_LANGUAGES:
OrderedSet[str] = OrderedSet(['af', 'ar', 'cs', 'da', 'de', 'en_uk', 'en_us', 'es', 'fi', 'fr', 'hu', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt', 'ro', 'ru', 'sk', 'sl', 'sv', 'th', 'tr', 'uk', 'zh'])¶
-
AVAILABLE_LANGUAGES:
- class birdnet.geo.models.v2_4.model.GeoModelV2_4(model_path, species_list, is_custom_model, backend_type, backend_kwargs)¶
Bases:
GeoModelBase- Attributes:
- backend_kwargs
- backend_type
- is_custom_model
- model_path
- n_species
- species_list
Methods
get_model_type
get_version
load
load_custom
predict
predict_session
- final classmethod get_model_type()¶
- Return type:
Literal['acoustic','geo']
- final classmethod get_version()¶
- Return type:
Literal['2.4','3.0']
- classmethod load(model_path, species_list, backend_type, backend_kwargs)¶
- Return type:
- classmethod load_custom(model_path, species_list, backend_type, backend_kwargs, check_validity)¶
- Return type:
- predict(latitude, longitude, /, *, week=None, year_round_aggregation='max', min_confidence=0.03, half_precision=False, device='CPU')¶
- Return type:
- predict_session(*, min_confidence=0.03, half_precision=False, device='CPU')¶
- Return type:
birdnet.geo.models.v2_4.pb module¶
- class birdnet.geo.models.v2_4.pb.GeoPBBackendFP32V2_4(model_path, device_name, half_precision)¶
Bases:
PBBackend,VersionedGeoBackendProtocol- Attributes:
- n_species
Methods
copy_from_device
copy_to_device
encode
encoding_key
encoding_signature_name
half_precision
input_key
load
name
precision
predict
prediction_key
prediction_signature_name
supports_cow
supports_encoding
unload
year_round_week_inputs
- classmethod encoding_key()¶
- Return type:
str|None
- classmethod encoding_signature_name()¶
- Return type:
str|None
- classmethod input_key()¶
- Return type:
str
- classmethod precision()¶
- Return type:
Literal['int8','fp16','fp32']
- classmethod prediction_key()¶
- Return type:
str
- classmethod prediction_signature_name()¶
- Return type:
str
- classmethod supports_encoding()¶
- Return type:
bool
- classmethod year_round_week_inputs()¶
- Return type:
tuple[float,...]
- class birdnet.geo.models.v2_4.pb.GeoPBDownloaderV2_4¶
Bases:
GeoDownloaderBaseV2_4Methods
get_model_path_and_labels
- classmethod get_model_path_and_labels(lang)¶
- Return type:
tuple[Path,OrderedSet[str]]
birdnet.geo.models.v2_4.tf module¶
- class birdnet.geo.models.v2_4.tf.GeoTFBackendFP32V2_4(model_path, device_name, half_precision, **kwargs)¶
Bases:
TFBackend,VersionedGeoBackendProtocol- Attributes:
- n_species
Methods
copy_from_device
copy_to_device
encode
encoding_out_idx
half_precision
in_idx
load
name
precision
predict
prediction_out_idx
supports_cow
supports_encoding
unload
year_round_week_inputs
- classmethod encoding_out_idx()¶
- Return type:
int|None
- classmethod in_idx()¶
- Return type:
int
- classmethod precision()¶
- Return type:
Literal['int8','fp16','fp32']
- classmethod prediction_out_idx()¶
- Return type:
int
- classmethod supports_encoding()¶
- Return type:
bool
- classmethod year_round_week_inputs()¶
- Return type:
tuple[float,...]
- class birdnet.geo.models.v2_4.tf.GeoTFDownloaderV2_4¶
Bases:
GeoDownloaderBaseV2_4Methods
get_model_path_and_labels
- classmethod get_model_path_and_labels(lang)¶
- Return type:
tuple[Path,OrderedSet[str]]