Loading…
Loading…
Unofficial conversions of the flat-bug arthropod detector (sizes N and S) to LiteRT
.tflite files, made for the FaunaPulse
Android app. flat-bug is the work of Svenning et al. (2026), see
Original work below. These files are not provided or endorsed by the
flat-bug authors.
This detector is for demo purposes for the FaunaPulse app. I did not train this model, and its authors did not make it for FaunaPulse. It is converted to
tfliteand published here so that FaunaPulse can be tried with a ready-made detector. It has not yet been tested at scale in the app, so how well it works there is not known yet, especially in live use on natural backgrounds with insects flying to and visiting flowers. The model was not trained for that kind of deployment. See also Limitations.
| File | Bytes | SHA-256 | Input | Precision | Role |
|---|---|---|---|---|---|
flatbug-n_640_fp16.tflite |
5,659,266 | c111a732ff298a24d42a2a01d11de0f13e1eaa796a87c96a38ef59de6202f9db |
640 px | fp16 | detector, flat-bug n |
flatbug-n_640_fp16.json |
609 | aea66c28d1f660086948a6d4ce6fbf9c42133294aa970683a20441a1473ad7b5 |
export manifest of flat-bug n | ||
flatbug-s_640_fp16.tflite |
19,968,609 | 360a4cf0c4730412dffd45bdb20928c73ac556b231ca8d922681908dad156fd3 |
640 px | fp16 | detector, flat-bug s |
flatbug-s_640_fp16.json |
611 | 7c8109dde5b119513ff9633bc0b31efaa741b80ff4a2b52445f5d3f680df88de |
export manifest of flat-bug s |
flatbug-n_640_fp16.tflite: flat-bug N (nano), the faster one. flatbug-s_640_fp16.tflite:
flat-bug S (small), about 3.5 times larger. On a test phone it took about 1.8 times as long on
the GPU and 2.6 times as long on the CPU (see Checks)..json: the export manifest of each file: source weights and their SHA-256, the Ultralytics
version saved in the source checkpoint (8.3.15) and file sizes. Its
script field, tool/detector_export/export_detector.py, is where the export script lived
at the time (in the FaunaPulse app repository); it is now detector_export/export_detector.py
of fauna-pulse-models.LICENSE: flat-bug's licence (MIT), copied from the authors' repository.flat_bug_N.pt (SHA-256
e54eb199fb8397f70dc36aca4727b92836fb7f56b11f8544be60f54c13d273c0) and flat_bug_S.pt
(SHA-256 b410d2c902c8975f6c8263ee74871e618e55d670f86cf49ad49869de9a9ccc03), which the
authors publish in their model store at Aarhus University
(https://anon.erda.au.dk/cgi-sid/ls.py?share_id=Bb0CR1FHG6¤t_dir=models; the files:
https://anon.erda.au.dk/share_redirect/Bb0CR1FHG6/models/flat_bug_N.pt and
https://anon.erda.au.dk/share_redirect/Bb0CR1FHG6/models/flat_bug_S.pt); the flat-bug package
downloads the same files. The files converted here are byte-identical to these (same SHA-256,
checked against a download from these links on 16 October 2026).flat_bug_M_v2.pt (medium
size, YOLO26), which is not converted here.insect (any terrestrial arthropod). flat-bug finds arthropods; it
does not identify them.[1, 3, 640, 640] (NCHW), float32, values 0..1.[1, 5, 8400] (4 box values and 1
class score per candidate) without NMS (the app does NMS).description ("Ultralytics YOLOv8n-seg model trained on" plus the authors' training path),
author ("Ultralytics") and license ("AGPL-3.0 License") fields are default values that the
Ultralytics export tool writes into every file; they do not name the model's authors and are
not a statement by them (see Original work and Licence)..tflite and storing its weights with fewer bits (here fp16) can change its
outputs, so no claim is made here about how accurately they find insects when deployed in
FaunaPulse (see Limitations).In FaunaPulse versions after v0.8.0-alpha.1, home screen menu, Download & import models downloads a file from a link pinned to one commit of this repository and checks its SHA-256. With any version you can also download a file here and import it by hand (Import model files…).
detector_export/export_detector.py of
fauna-pulse-models
(CPU only, Ultralytics 8.4.170, 1 October 2026):
python export_detector.py --weights flat_bug_N.pt --name flatbug-n --imgsz 640 --out out
python export_detector.py --weights flat_bug_S.pt --name flatbug-s --imgsz 640 --out out
MIT, the licence of flat-bug: Copyright (c) 2025 Asger Svenning, Quentin Geissmann et al. The
full text is in LICENSE, copied from https://github.com/darsa-group/flat-bug/blob/main/LICENSE;
keep it with any copy. The authors added this licence "to make it clear that the code and models
are actually open source" (https://github.com/darsa-group/flat-bug/pull/120).
flat-bug was trained with Ultralytics YOLO, starting from Ultralytics' pretrained YOLOv8-seg models, and these files were exported with Ultralytics. Ultralytics offers its software and models under AGPL-3.0 or a paid Enterprise License and states that "all Ultralytics YOLO trained models fall under the AGPL-3.0 License by default" (https://www.ultralytics.com/license). So these files are also covered by AGPL-3.0: use them under its terms, or with an Ultralytics Enterprise License (for example for closed-source commercial use). The training dataset is CC BY 4.0.
If you use these files, please cite the flat-bug paper:
Svenning, A., Mougeot, G., Alison, J., Chevalier, D., Chavez Molina, N., Ong, S.-Q., Bjerge, K., Carrillo, J., Høye, T. T., & Geissmann, Q. (2026). A general method for detection and segmentation of terrestrial arthropods in images. Methods in Ecology and Evolution, 17(3), 727-739. https://doi.org/10.1111/2041-210x.70249
@article{svenning2026flatbug,
author = {Svenning, Asger and Mougeot, Guillaume and Alison, Jamie and Chevalier, Daphne and {Chavez Molina}, Nisa and Ong, Song-Quan and Bjerge, Kim and Carrillo, Juli and H{\o}ye, Toke Thomas and Geissmann, Quentin},
title = {A general method for detection and segmentation of terrestrial arthropods in images},
journal = {Methods in Ecology and Evolution},
year = {2026},
volume = {17},
number = {3},
pages = {727--739},
doi = {10.1111/2041-210x.70249}
}
Also relevant:
.json manifests, which the app does not download, may be corrected.