Added BioCLIP 2.5 Huge Text Embedding Files
Browse files- Updated README: fix typos, specified corrupted label removal process
- Added embeddings/txt_emb_bioclip-2.5-vith14.json embeddings/txt_emb_bioclip-2.5-vith14.npy
- both LFS tracked in `.gitattributes`
- embeddings L2-normed, 794,878 in total, dim 1024
.gitattributes
CHANGED
|
@@ -61,3 +61,4 @@ dataset/metadata/eol_metadata/taxon.tab filter=lfs diff=lfs merge=lfs -text
|
|
| 61 |
dataset/metadata/eol_metadata/media_manifest.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
embeddings/txt_emb_species.json filter=lfs diff=lfs merge=lfs -text
|
| 63 |
embeddings/txt_emb_bioclip-2.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 61 |
dataset/metadata/eol_metadata/media_manifest.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
embeddings/txt_emb_species.json filter=lfs diff=lfs merge=lfs -text
|
| 63 |
embeddings/txt_emb_bioclip-2.json filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
embeddings/txt_emb_bioclip-2.5-vith14.json filter=lfs diff=lfs merge=lfs -text
|
embeddings/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
|
| 3 |
Be sure to select the proper text embedding files for the model and dataset versions:
|
| 4 |
|
| 5 |
-
## BioCLIP 2
|
| 6 |
|
| 7 |
### Files
|
| 8 |
|
|
@@ -31,10 +31,11 @@ The [BioCLIP 2.5 Huge text embeddings of TreeOfLife-200M](txt_emb_bioclip-2.5-vi
|
|
| 31 |
|
| 32 |
## Taxonomic JSON Construction
|
| 33 |
|
| 34 |
-
The `JSON` files were created from the [TreeOfLife-200M catalog](../catalog.parquet) (if reproducing the process, be sure to use the correct revision for the intended model) and [`VernacularName.tsv` component of the GBIF Backbone Taxonomy](https://doi.org/10.15468/39omei)
|
| 35 |
* **Null Value Filtering:** Remove records where `kingdom` or `species` are `null`.
|
| 36 |
* **Deduplication:** Rows are deduplicated based on the combination of `kingdom`, `phylum`, `class`, `order`, `family`, `genus`, and `species`. This ensures that each unique taxonomic combination appears exactly once.
|
| 37 |
* **Common Name Handling:** Currently, the catalog metadata often contains multiple common names for a single unique taxonomic combination. During processing, **the first English common name encountered** for a given unique taxonomic combination is retained. If English is not available, the first option of any language is used. We plan future improvements to establish a definitive 1-to-1 mapping or a more comprehensive common name strategy.
|
|
|
|
| 38 |
|
| 39 |
### Structure
|
| 40 |
|
|
|
|
| 2 |
|
| 3 |
Be sure to select the proper text embedding files for the model and dataset versions:
|
| 4 |
|
| 5 |
+
## BioCLIP 2
|
| 6 |
|
| 7 |
### Files
|
| 8 |
|
|
|
|
| 31 |
|
| 32 |
## Taxonomic JSON Construction
|
| 33 |
|
| 34 |
+
The `JSON` files were created from the [TreeOfLife-200M catalog](../catalog.parquet) (if reproducing the process, be sure to use the correct revision for the intended model) and [`VernacularName.tsv` component of the GBIF Backbone Taxonomy](https://doi.org/10.15468/39omei) using [`make_txt_embedding_json.py`](https://github.com/Imageomics/TreeOfLife-toolbox/blob/main/processing/scripts/make_txt_embedding_json.py) through the following process:
|
| 35 |
* **Null Value Filtering:** Remove records where `kingdom` or `species` are `null`.
|
| 36 |
* **Deduplication:** Rows are deduplicated based on the combination of `kingdom`, `phylum`, `class`, `order`, `family`, `genus`, and `species`. This ensures that each unique taxonomic combination appears exactly once.
|
| 37 |
* **Common Name Handling:** Currently, the catalog metadata often contains multiple common names for a single unique taxonomic combination. During processing, **the first English common name encountered** for a given unique taxonomic combination is retained. If English is not available, the first option of any language is used. We plan future improvements to establish a definitive 1-to-1 mapping or a more comprehensive common name strategy.
|
| 38 |
+
* **Corrupted Label Removal:** Records where any rank looked like an ISO-8601 timestamp `(^\d{4}-\d{2}-\d{2}T\d{2}:\d{2})` or the literal strings `true` / `false` are removed.
|
| 39 |
|
| 40 |
### Structure
|
| 41 |
|
embeddings/txt_emb_bioclip-2.5-vith14.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:af0cb41ffbfb31e6a2e2d5e3a402529ec8245a4268f42ce45ee4e977b7127443
|
| 3 |
+
size 84142188
|
embeddings/txt_emb_bioclip-2.5-vith14.npy
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1cc734330d17ea26e6f713b289b2138b4adc90d4f524349cd16fab42d5c3358
|
| 3 |
+
size 3255820416
|