Dr. Richard Zinck commited on
Commit
2c4a903
1 Parent(s): 689552d

Set new 256kHz version

Browse files
bat_gui.py CHANGED
@@ -130,8 +130,8 @@ def runAnalysis(
130
  locale = "de"
131
 
132
  elif species_list_choice == "EU":
133
- cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz.tflite"
134
- cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-EU-144kHz_Labels.txt"
135
  cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
136
  cfg.LATITUDE = -1
137
  cfg.LONGITUDE = -1
@@ -495,11 +495,16 @@ def build_single_analysis_tab():
495
 
496
 
497
  if __name__ == "__main__":
 
 
 
 
498
  freeze_support()
499
  with gr.Blocks(
500
  css=r".d-block .wrap {display: block !important;} .mh-200 {max-height: 300px; overflow-y: auto !important;} footer {display: none !important;} #single_file_audio, #single_file_audio * {max-height: 81.6px; min-height: 0;}",
501
  theme=gr.themes.Default(),
502
  analytics_enabled=False,
 
503
  ) as demo:
504
  build_single_analysis_tab()
505
  demo.launch()
 
130
  locale = "de"
131
 
132
  elif species_list_choice == "EU":
133
+ cfg.CUSTOM_CLASSIFIER = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-Bavaria-256kHz-100.tflite"
134
+ cfg.LABELS_FILE = cfg.BAT_CLASSIFIER_LOCATION + "/BattyBirdNET-Bavaria-256kHz-100_Labels.txt"
135
  cfg.LABELS = utils.readLines(cfg.LABELS_FILE)
136
  cfg.LATITUDE = -1
137
  cfg.LONGITUDE = -1
 
495
 
496
 
497
  if __name__ == "__main__":
498
+
499
+ descr_txt = "Demo of BattyBirdNET deep learning-based bat echolocation call detection. " \
500
+ "<br>This model is trained on US and central European species (also covers UK and Scandinavia)."
501
+
502
  freeze_support()
503
  with gr.Blocks(
504
  css=r".d-block .wrap {display: block !important;} .mh-200 {max-height: 300px; overflow-y: auto !important;} footer {display: none !important;} #single_file_audio, #single_file_audio * {max-height: 81.6px; min-height: 0;}",
505
  theme=gr.themes.Default(),
506
  analytics_enabled=False,
507
+ description = descr_txt,
508
  ) as demo:
509
  build_single_analysis_tab()
510
  demo.launch()
checkpoints/bats/v1.0/BattyBirdNET-Bavaria-256kHz-100.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0a77c5c41c7bef8149003a8440e7b3ffc9ca39c1b9edf87bbc919848c125afc
3
+ size 103564
checkpoints/bats/v1.0/BattyBirdNET-Bavaria-256kHz-100_Labels.txt ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Barbastella barbastellus_Western barbastelle
2
+ Eptesicus nilssonii_Northern bat
3
+ Eptesicus serotinus_Serotine bat
4
+ Hypsugo savii_Savis pipistrelle
5
+ Miniopterus schreibersii_Common bent-wing bat
6
+ Myotis alcathoe_Alcathoe bat
7
+ Myotis bechsteinii_Bechsteins bat
8
+ Myotis brandtii_Brandt bat
9
+ Myotis dasycneme_Pond bat
10
+ Myotis daubentonii_Daubentons bat
11
+ Myotis emarginatus_Geoffroys bat
12
+ Myotis myotis_Greater mouse-eared bat
13
+ Myotis mystacinus_Whiskered bat
14
+ Myotis nattereri_Natterers bat
15
+ NOISE
16
+ Nyctalus leisleri_Lesser noctule
17
+ Nyctalus noctula_Common noctule
18
+ Pipistrellus kuhlii_Kuhls pipistrelle
19
+ Pipistrellus nathusii_Nathusius pipistrelle
20
+ Pipistrellus pipistrellus_Common pipistrelle
21
+ Pipistrellus pygmaeus_Soprano pipistrelle
22
+ Plecotus spec._Long eared bat
23
+ Rhinolophus ferrumequinum_Greater horseshoe bat
24
+ Rhinolophus hipposideros_Lesser horseshoe bat
25
+ Vespertilio murinus_Parti-coloured bat
config.py CHANGED
@@ -32,7 +32,7 @@ CUSTOM_CLASSIFIER = None
32
  # For bats we use: 144000 for 1 sec.
33
  # Note that only SIG_LENGTH * SAMPLING_RATE = 144000 combinations will work,
34
  # values possible e.g. 144000 240000 360000 check your classifier frequency!
35
- SAMPLE_RATE: int = 144000
36
 
37
  # We're using 1-second chunks
38
  SIG_LENGTH: float = 144000 / SAMPLE_RATE
 
32
  # For bats we use: 144000 for 1 sec.
33
  # Note that only SIG_LENGTH * SAMPLING_RATE = 144000 combinations will work,
34
  # values possible e.g. 144000 240000 360000 check your classifier frequency!
35
+ SAMPLE_RATE: int = 256000
36
 
37
  # We're using 1-second chunks
38
  SIG_LENGTH: float = 144000 / SAMPLE_RATE