egrace479 commited on
Commit
4e71907
·
verified ·
1 Parent(s): 343c36b

Add BioCLIP embeddings (#9)

Browse files

- Add BioCLIP embeddings (91501708dc8c2341d0818c1809570520698695c1)
- clarify text embeddings (1e1eb8ed8203ad9bb3ef17d006587f0924cd1110)

.gitattributes CHANGED
@@ -60,3 +60,4 @@ metadata/** filter=lfs diff=lfs merge=lfs -text
60
 
61
  # Full dataset
62
  dataset/** filter=lfs diff=lfs merge=lfs -text
 
 
60
 
61
  # Full dataset
62
  dataset/** filter=lfs diff=lfs merge=lfs -text
63
+ embeddings/txt_emb_species.json filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -27,14 +27,14 @@ size_categories: 10M<n<100M
27
 
28
  ## Dataset Description
29
 
30
- <!-- - **Homepage:** -->
31
  - **Repository:** [Imageomics/bioclip](https://github.com/Imageomics/bioclip)
32
  - **Paper:** BioCLIP: A Vision Foundation Model for the Tree of Life ([arXiv](https://doi.org/10.48550/arXiv.2311.18803))
33
  <!-- - **Leaderboard:** -->
34
 
35
  ### Dataset Summary
36
 
37
- With over 10 million images covering 454 thousand taxa in the tree of life, TreeOfLife-10M is the largest-to-date ML-ready dataset of images of biological organisms paired with their associated taxonomic labels. It expands on the foundation established by existing high-quality datasets, such as iNat21 and BIOSCAN-1M, by further incorporating newly curated images from the Encyclopedia of Life (eol.org), which supplies most of TreeOfLife-10M’s data diversity. Every image in TreeOfLife-10M is labeled to the most specific taxonomic level possible, as well as higher taxonomic ranks in the tree of life (see [Text Types](#text-types) for examples of taxonomic ranks and labels). TreeOfLife-10M was generated for the purpose of training [BioCLIP](https://huggingface.co/imageomics/bioclip) and future biology foundation models.
38
 
39
  <!--This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1). And further altered to suit Imageomics Institute needs. -->
40
 
@@ -54,29 +54,34 @@ English, Latin
54
  ## Dataset Contents
55
 
56
  ```
57
- /dataset/
58
  EOL/
59
  image_set_01.tar.gz
60
  image_set_02.tar.gz
61
  ...
62
  image_set_63.tar.gz
63
- metadata/
64
- catalog.csv
65
- species_level_taxonomy_chains.csv
66
- taxon.tab
67
- licenses.csv
68
- naming/
69
- bioscan_name_lookup.json
70
- eol_name_lookup.json
71
- inat21_name_lookup.json
72
- visuals/
73
- kingodm_ToL_tree.html
74
- kingdom_ToL_tree.pdf
75
- phyla_ToL_tree.html
76
- phyla_ToL_tree.pdf
77
- phyla_ToL_tree.png
 
 
 
78
  ```
79
 
 
 
80
  Each `image_set` is approximately 30GB and contains 100 thousand images, each named `<treeoflife_id>.jpg`.
81
  We cannot reproduce the `iNat21` data, but step-by-step [***reproduction instructions***](https://github.com/Imageomics/bioclip/blob/main/docs/imageomics/treeoflife10m.md#reproduce-treeoflife-10m) are provided on the BioCLIP GitHub repository to recreate the proper webdataset structure. This process will produce a collection of files named `shard-######.tar` in a `train`, `val`, and `train_small` folder with which to work.
82
 
 
27
 
28
  ## Dataset Description
29
 
30
+ - **Homepage:** https://imageomics.github.io/bioclip/
31
  - **Repository:** [Imageomics/bioclip](https://github.com/Imageomics/bioclip)
32
  - **Paper:** BioCLIP: A Vision Foundation Model for the Tree of Life ([arXiv](https://doi.org/10.48550/arXiv.2311.18803))
33
  <!-- - **Leaderboard:** -->
34
 
35
  ### Dataset Summary
36
 
37
+ With over 10 million images covering 454 thousand taxa in the tree of life, TreeOfLife-10M is the largest-to-date ML-ready dataset of images of biological organisms paired with their associated taxonomic labels. It expands on the foundation established by existing high-quality datasets, such as iNat21 and BIOSCAN-1M, by further incorporating newly curated images from the Encyclopedia of Life (eol.org), which supplies most of TreeOfLife-10M’s data diversity. Every image in TreeOfLife-10M is labeled to the most specific taxonomic level possible, as well as higher taxonomic ranks in the tree of life (see [Text Types](#text-types) for examples of taxonomic ranks and labels). TreeOfLife-10M was generated for the purpose of training [BioCLIP](https://huggingface.co/imageomics/bioclip) and future biology foundation models.
38
 
39
  <!--This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1). And further altered to suit Imageomics Institute needs. -->
40
 
 
54
  ## Dataset Contents
55
 
56
  ```
57
+ dataset/
58
  EOL/
59
  image_set_01.tar.gz
60
  image_set_02.tar.gz
61
  ...
62
  image_set_63.tar.gz
63
+ embeddings/
64
+ txt_emb_species.json
65
+ txt_emb_species.npy
66
+ metadata/
67
+ catalog.csv
68
+ species_level_taxonomy_chains.csv
69
+ taxon.tab
70
+ licenses.csv
71
+ naming/
72
+ bioscan_name_lookup.json
73
+ eol_name_lookup.json
74
+ inat21_name_lookup.json
75
+ visuals/
76
+ kingodm_ToL_tree.html
77
+ kingdom_ToL_tree.pdf
78
+ phyla_ToL_tree.html
79
+ phyla_ToL_tree.pdf
80
+ phyla_ToL_tree.png
81
  ```
82
 
83
+ The `embeddings/` directory contains the [BioCLIP](https://huggingface.co/imageomics/bioclip) text embeddings for all 8,455,243 images with full taxonomic labels in the TreeOfLife-10M dataset.
84
+
85
  Each `image_set` is approximately 30GB and contains 100 thousand images, each named `<treeoflife_id>.jpg`.
86
  We cannot reproduce the `iNat21` data, but step-by-step [***reproduction instructions***](https://github.com/Imageomics/bioclip/blob/main/docs/imageomics/treeoflife10m.md#reproduce-treeoflife-10m) are provided on the BioCLIP GitHub repository to recreate the proper webdataset structure. This process will produce a collection of files named `shard-######.tar` in a `train`, `val`, and `train_small` folder with which to work.
87
 
embeddings/txt_emb_species.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:844e6fabc06cac072214d566b78f40825b154efa9479eb11285030ca038b2ece
3
+ size 65731052
embeddings/txt_emb_species.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:91ce02dff2433222e3138b8bf7eefa1dd74b30f4d406c16cd3301f66d65ab4ed
3
+ size 787435648