egrace479 commited on
Commit
0566524
·
verified ·
1 Parent(s): f67d594

Fix readme formatting for clarity

Browse files
Files changed (1) hide show
  1. README.md +25 -23
README.md CHANGED
@@ -7,7 +7,7 @@ pretty_name: TreeOfLife10M EDA
7
 
8
  This repo contains the analysis of the TreeOfLife10M dataset as it's being crafted and refined.
9
 
10
- ### Data
11
 
12
  The `data` folder contains
13
  - `catalog.csv`: the metadata and identifiers for all images in the dataset. This includes original data source, unique identifier within TreeOfLife10M, and the associated taxa information for the image. This is the file that will be updated, while preserving the `catalog-v1-dev.csv` file for ease of comparison. [`v3.3`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/d6b583841aed8c0df314e718735756b76164a933/data/catalog.csv) is the version of the catalog that was used for training [BioCLIP v1](https://doi.org/10.57967/hf/1511) (it has the ~30K images we could not re-align).
@@ -20,7 +20,7 @@ images, and images that have labels.
20
  - `avg_std_byClass.csv`: average and standard distribution of images in `catalog-v1-dev.csv` given by class (taxonomic rank). This is for both all images, and images that have labels. Note that kingdoms had not been merged and no standardization was performed on the taxonomic hierarchy prior to creation of this file.
21
  - `tol_hierarchy_test.csv`: Subset of `catalog-v1-dev.csv` for testing the [`check_taxa` script](https://github.com/Imageomics/open_clip/blob/main/scripts/evobio10m/check_taxa.py) to ensure the hierarchy is properly filled in after data generation.
22
 
23
- ### Rare Species
24
  All these files were generated in `eol_realign/notebooks/re-gen_rs_catalog.ipynb`.
25
  - `licenses.csv`: Licensing information for all rarespecies images (includes MD5s and links to catalog and manifest on `rarespecies_id`).
26
  - `rarespecies_manifest.csv`: Full manifest information for all images included in rarespecies catalog (may have some extra info from realign).
@@ -28,31 +28,33 @@ All these files were generated in `eol_realign/notebooks/re-gen_rs_catalog.ipynb
28
  For evaluation, Lisa generated a `metadata.csv` that cut the `rarespecies-catalog.csv` down to just the taxonomic columns with index, changing `class` to `cls`, `common` to `common_name`, and creating a `filepath` column (`"2024-03-20/" + <eol_content_id> + "_" + <eol_page_id> + "_eol-full-size-copy.jpg"`), with a `class` column indicating the `sciName` (though this could use a different ID depending on the evaluation).
29
 
30
 
31
- ### EOL Re-align
32
 
33
- More detail on the background of this process can be found in the `links_align_reduced` and `links_rs_duplicates` notebooks, as well as [PR #5](https://huggingface.co/datasets/imageomics/ToL-EDA/discussions/5).
34
- #### Data
35
- More information on all the datacan be found in the `links_align_reduced` and `links_rs_duplicates` notebooks. Just those of primary import and potential continued use are listed here.
 
36
 
37
- - `checksums_media_cargo_archive.csv`: MD5 of all EOL images in our cargo archive.
38
- - `full_owner_manifset.csv`: Record of all images from EOL that could potentially be used in the TreeOfLife-10M dataset, this has all the non-taxonomic EOL metadata for the EOL images included in the TreeOfLife-10M catalog (12,330,062 entries, gets reduced down during catalog re-generation), with MD5s aligned to `filename` (`<eol_content_id>_<eol_page_id>_eol-full-size-copy.jpg`).
39
- - `rarespecies_full_manifest.csv`: Record of all images from EOL that could potentially be used in the Rare Species dataset, i.e., manifest of all images from EOL of the 400 selected species, with MD5s aligned to `filename` (`<eol_content_id>_<eol_page_id>_eol-full-size-copy.jpg`).
40
 
41
- #### Notebooks
42
- - `catalog-cargo-manifest_test.ipynb`: Generates `eol_realign/data/full_owner_manifest.csv`, this has all the non-taxonomic EOL metadata for the EOL images included in the TreeOfLife-10M catalog (12,330,062 entries, gets reduced down during catalog re-generation).
43
- - `links_align_reduced.ipynb`: Exploration of the degree to which we could realign the EOL files in our TreeOfLife-10M catalog to their associated metadata. There was some recovery from our original loss. Associated `py` file: `links_align_reduced.py`.
44
- - `links_rs_duplicates.ipynb`: Documentation of mismatches in the Rare Species dataset and suggestion for fixing them. Saves these in `eol_realign/data/archive_mismatched_rarespecies.csv`, and generates `eol_realign/data/rarespecies_full_manifest.csv`. Uses `eol_realign/data/eol-cargo-archive_combined-manifest-checksums_links.csv`, [`rarespecies-catalog-orig.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/5db838a9db980f4cf96027b326b06e0f42df0c65/rare_species/data/rarespecies-catalog.csv), `eol_realign/data/rarespecies_missing_pages_md5s.csv`, `eol_realign/data/eol_media_manifest_2024-03-11.csv`, and [`media_manifest_missing_licenses_jul26_owners.csv`](https://huggingface.co/datasets/imageomics/eol/blob/main/owners_info_fix/media_manifest_missing_licenses_jul26_owners.csv). Associated `py` file: `links_rs_duplicates.py`.
45
- - `re-gen_rs_catalog.ipynb`: Notebook generating the updated rare species catalog, lisences, and manifest files. Generates new `rarespecies_id`; these are still distinct from `treeoflife_id`s in TreeOfLife-10M. Uses `eol_realign/data/rarespecies_full_manifest.csv`and [`rarespecies-catalog-orig.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/5db838a9db980f4cf96027b326b06e0f42df0c65/rare_species/data/rarespecies-catalog.csv).
46
- Outputs: `rare_species/data/rarespecies_manifest.csv`, `rare_species/data/licenses.csv`, and `rare_species/data/rarespecies-catalog.csv`.
47
- - `re-gen_tol_catalog.ipynb`: Notebook updating catalog for TreeOfLife-10M (all EOL entries we could realign), along with the corresponding license file, and manifest with full information for the realigned entries. Uses `eol_realign/data/combined-manifest-licenses.csv`, [`catalog-orig-v3-3.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/d6b583841aed8c0df314e718735756b76164a933/data/catalog.csv).
48
- Outputs: `eol_realign/data/full_owner_manifest.csv`, `data/licenses.csv`, and `data/catalog.csv`.
 
49
 
50
- #### Scripts
51
- Require `pandas`.
52
- - `make_licenses.py`: Adds license URLs to make the full manifest and license file.
53
- - `match_owners.py`: Adds extra licensing information toward making the full manifest. Uses `eol_realign/data/eol-cargo-archive_catalog_combined-manifest-checksums_links.csv`, makes `eol_realign/data/combined_manifest.csv` for generating final catalog.
54
 
55
- ### Notebooks
56
 
57
  The `notebooks` folder contains
58
  - `ToL_catalog_EDA.ipynb`: more full EDA of TreeOfLife10M dataset using `catalog.csv`. To be updated as `catalog.csv` is updated, i.e., as the dataset is updated.
@@ -68,7 +70,7 @@ direction of standardization efforts. Maintained for v1 reference, should not be
68
 
69
  **Note:** run `pip install -r requirements.txt` before starting the visualization notebooks. EDA notebooks only require `pandas` and `seaborn`.
70
 
71
- ### Visuals
72
 
73
  Visualizations generated to demonstrate the distribution and diversity within the phyla of TreeOfLife10M.
74
  - `category-v1-visuals`: visualizations made for the original `catalog-v1-dev.csv` using `BioCLIP_taxa_viz_bySource.ipynb`.
 
7
 
8
  This repo contains the analysis of the TreeOfLife10M dataset as it's being crafted and refined.
9
 
10
+ ## Data
11
 
12
  The `data` folder contains
13
  - `catalog.csv`: the metadata and identifiers for all images in the dataset. This includes original data source, unique identifier within TreeOfLife10M, and the associated taxa information for the image. This is the file that will be updated, while preserving the `catalog-v1-dev.csv` file for ease of comparison. [`v3.3`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/d6b583841aed8c0df314e718735756b76164a933/data/catalog.csv) is the version of the catalog that was used for training [BioCLIP v1](https://doi.org/10.57967/hf/1511) (it has the ~30K images we could not re-align).
 
20
  - `avg_std_byClass.csv`: average and standard distribution of images in `catalog-v1-dev.csv` given by class (taxonomic rank). This is for both all images, and images that have labels. Note that kingdoms had not been merged and no standardization was performed on the taxonomic hierarchy prior to creation of this file.
21
  - `tol_hierarchy_test.csv`: Subset of `catalog-v1-dev.csv` for testing the [`check_taxa` script](https://github.com/Imageomics/open_clip/blob/main/scripts/evobio10m/check_taxa.py) to ensure the hierarchy is properly filled in after data generation.
22
 
23
+ ## Rare Species
24
  All these files were generated in `eol_realign/notebooks/re-gen_rs_catalog.ipynb`.
25
  - `licenses.csv`: Licensing information for all rarespecies images (includes MD5s and links to catalog and manifest on `rarespecies_id`).
26
  - `rarespecies_manifest.csv`: Full manifest information for all images included in rarespecies catalog (may have some extra info from realign).
 
28
  For evaluation, Lisa generated a `metadata.csv` that cut the `rarespecies-catalog.csv` down to just the taxonomic columns with index, changing `class` to `cls`, `common` to `common_name`, and creating a `filepath` column (`"2024-03-20/" + <eol_content_id> + "_" + <eol_page_id> + "_eol-full-size-copy.jpg"`), with a `class` column indicating the `sciName` (though this could use a different ID depending on the evaluation).
29
 
30
 
31
+ ## EOL Re-align
32
 
33
+ More detail on the background of this process can be found in the `links_align_reduced` and `links_rs_duplicates` notebooks, as well as [PR #5](https://huggingface.co/datasets/imageomics/ToL-EDA/discussions/5).
34
+
35
+ * **Data:**
36
+ More information on all the datacan be found in the `links_align_reduced` and `links_rs_duplicates` notebooks. Just those of primary import and potential continued use are listed here.
37
 
38
+ - `checksums_media_cargo_archive.csv`: MD5 of all EOL images in our cargo archive.
39
+ - `full_owner_manifset.csv`: Record of all images from EOL that could potentially be used in the TreeOfLife-10M dataset, this has all the non-taxonomic EOL metadata for the EOL images included in the TreeOfLife-10M catalog (12,330,062 entries, gets reduced down during catalog re-generation), with MD5s aligned to `filename` (`<eol_content_id>_<eol_page_id>_eol-full-size-copy.jpg`).
40
+ - `rarespecies_full_manifest.csv`: Record of all images from EOL that could potentially be used in the Rare Species dataset, i.e., manifest of all images from EOL of the 400 selected species, with MD5s aligned to `filename` (`<eol_content_id>_<eol_page_id>_eol-full-size-copy.jpg`).
41
 
42
+ * **Notebooks:** (Require `pandas`).
43
+
44
+ - `catalog-cargo-manifest_test.ipynb`: Generates `eol_realign/data/full_owner_manifest.csv`, this has all the non-taxonomic EOL metadata for the EOL images included in the TreeOfLife-10M catalog (12,330,062 entries, gets reduced down during catalog re-generation).
45
+ - `links_align_reduced.ipynb`: Exploration of the degree to which we could realign the EOL files in our TreeOfLife-10M catalog to their associated metadata. There was some recovery from our original loss. Associated `py` file: `links_align_reduced.py`.
46
+ - `links_rs_duplicates.ipynb`: Documentation of mismatches in the Rare Species dataset and suggestion for fixing them. Saves these in `eol_realign/data/archive_mismatched_rarespecies.csv`, and generates `eol_realign/data/rarespecies_full_manifest.csv`. Uses `eol_realign/data/eol-cargo-archive_combined-manifest-checksums_links.csv`, [`rarespecies-catalog-orig.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/5db838a9db980f4cf96027b326b06e0f42df0c65/rare_species/data/rarespecies-catalog.csv), `eol_realign/data/rarespecies_missing_pages_md5s.csv`, `eol_realign/data/eol_media_manifest_2024-03-11.csv`, and [`media_manifest_missing_licenses_jul26_owners.csv`](https://huggingface.co/datasets/imageomics/eol/blob/main/owners_info_fix/media_manifest_missing_licenses_jul26_owners.csv). Associated `py` file: `links_rs_duplicates.py`.
47
+ - `re-gen_rs_catalog.ipynb`: Notebook generating the updated rare species catalog, lisences, and manifest files. Generates new `rarespecies_id`; these are still distinct from `treeoflife_id`s in TreeOfLife-10M. Uses `eol_realign/data/rarespecies_full_manifest.csv`and [`rarespecies-catalog-orig.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/5db838a9db980f4cf96027b326b06e0f42df0c65/rare_species/data/rarespecies-catalog.csv).
48
+ Outputs: `rare_species/data/rarespecies_manifest.csv`, `rare_species/data/licenses.csv`, and `rare_species/data/rarespecies-catalog.csv`.
49
+ - `re-gen_tol_catalog.ipynb`: Notebook updating catalog for TreeOfLife-10M (all EOL entries we could realign), along with the corresponding license file, and manifest with full information for the realigned entries. Uses `eol_realign/data/combined-manifest-licenses.csv`, [`catalog-orig-v3-3.csv`](https://huggingface.co/datasets/imageomics/ToL-EDA/blob/d6b583841aed8c0df314e718735756b76164a933/data/catalog.csv).
50
+ Outputs: `eol_realign/data/full_owner_manifest.csv`, `data/licenses.csv`, and `data/catalog.csv`.
51
 
52
+ * **Scripts:** (Require `pandas`).
53
+
54
+ - `make_licenses.py`: Adds license URLs to make the full manifest and license file.
55
+ - `match_owners.py`: Adds extra licensing information toward making the full manifest. Uses `eol_realign/data/eol-cargo-archive_catalog_combined-manifest-checksums_links.csv`, makes `eol_realign/data/combined_manifest.csv` for generating final catalog.
56
 
57
+ ## Notebooks
58
 
59
  The `notebooks` folder contains
60
  - `ToL_catalog_EDA.ipynb`: more full EDA of TreeOfLife10M dataset using `catalog.csv`. To be updated as `catalog.csv` is updated, i.e., as the dataset is updated.
 
70
 
71
  **Note:** run `pip install -r requirements.txt` before starting the visualization notebooks. EDA notebooks only require `pandas` and `seaborn`.
72
 
73
+ ## Visuals
74
 
75
  Visualizations generated to demonstrate the distribution and diversity within the phyla of TreeOfLife10M.
76
  - `category-v1-visuals`: visualizations made for the original `catalog-v1-dev.csv` using `BioCLIP_taxa_viz_bySource.ipynb`.