Veit commited on
Commit
eb9411f
·
verified ·
1 Parent(s): e079b16

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +44 -0
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags: [image-classification, plankton, PISCO, vision-transformer]
3
+ license: mit
4
+ ---
5
+ # M181_multiclass
6
+
7
+ Second stage of the PISCO dual-ViT: taxon classification of crops the binary
8
+ stage called living. Fine-tuned `google/vit-base-patch16-224-in21k` on
9
+ expert-validated crops from cruise **M181** (tropical Atlantic, April-May
10
+ 2022). Test accuracy 96.17% (13 classes).
11
+
12
+ **Classes (13):** Appendicularia, Asteroidea larvae, Bacillariophyceae,
13
+ Chaetognatha, Cnidaria, Copepoda, Ctenophora, Eumalacostraca, Noctiluca sp.,
14
+ Pyrocystis, Rhizaria, Thaliacea, Trichodesmium
15
+
16
+ ## Known limitations
17
+ * **Echinoderm pluteus larvae are systematically labelled `Rhizaria`** - the
18
+ model has no pluteus class. On a North Sea dataset (ATAIR-BSH) 2,354 objects
19
+ called Rhizaria were on validation almost entirely pluteus.
20
+ * `Asteroidea larvae` and `Noctiluca sp.` are **deprecated taxa in EcoTaxa**;
21
+ the pipeline remaps them to `Asteroidea` / `Noctiluca` at export so imports
22
+ remain validatable.
23
+ * Trained on tropical Atlantic plankton; expect a domain gap elsewhere.
24
+
25
+ ## Important: this model is coupled to its preprocessing
26
+ Trained on crops produced by the **231204 LUCYD deconvolution**
27
+ (`lucyd-edof-plankton_231204.pth`, the pipeline default) with **non-isolated**
28
+ crops (neighbouring particles present). Running it on crops from a different
29
+ deconvolution model, or on neighbour-isolated crops, is an out-of-domain shift:
30
+ measured on ATAIR-BSH, swapping the deconvolution alone collapsed the living
31
+ rate by 83-93% at unchanged confidence. Treat deconvolution + crop isolation +
32
+ classifier as one versioned unit.
33
+
34
+ Preprocessing: resize longest edge to 224, centre-pad to 224x224 with white
35
+ (255), normalise mean=std=0.5. No rotation at inference. Crops must carry no
36
+ scale bar (or have it removed with `utils.strip_scale_bar`).
37
+
38
+ ## Use in the pipeline
39
+ These are the pipeline defaults (`--binary-model-dir` / `--living-model-dir`),
40
+ or from any machine:
41
+ ```
42
+ process_pisco_profiles.py --binary-model-hf Veit/M181_binary --living-model-hf Veit/M181_multiclass
43
+ process_pisco_profiles.py --dualvit-model M181 # resolves both from the Hub when not local
44
+ ```