Datasets:
Added instructions for processing
Browse files- README.md +56 -1
- process_fish_butterfly_images.sh +15 -0
README.md
CHANGED
|
@@ -59,6 +59,30 @@ configs:
|
|
| 59 |
|
| 60 |
# Dataset Card for VLM4Bio
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |

|
| 63 |
|
| 64 |
## Dataset Details
|
|
@@ -86,8 +110,38 @@ The following table demonstrates the leaderboard of the VLM baselines in terms o
|
|
| 86 |
English, Latin
|
| 87 |
|
| 88 |
## Dataset Structure
|
|
|
|
| 89 |
|
| 90 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
|
| 92 |
### Data Instances
|
| 93 |
<!--
|
|
@@ -96,6 +150,7 @@ Describe data files
|
|
| 96 |
Ex: All images are named <img_id>.png, each within a folder named for the species. They are 1024 x 1024, and the color has been standardized using <link to color standardization package>.
|
| 97 |
-->
|
| 98 |
|
|
|
|
| 99 |
### Data Fields
|
| 100 |
|
| 101 |
**Fish Files:**
|
|
|
|
| 59 |
|
| 60 |
# Dataset Card for VLM4Bio
|
| 61 |
|
| 62 |
+
## **Instructions for downloading the dataset**
|
| 63 |
+
|
| 64 |
+
* Install [Git LFS](https://docs.github.com/en/repositories/working-with-files/managing-large-files/installing-git-large-file-storage)
|
| 65 |
+
* Git clone the VLM4Bio repository to download all metadata and associated files
|
| 66 |
+
* Run the following commands in a **terminal**:
|
| 67 |
+
```bash
|
| 68 |
+
git clone https://huggingface.co/datasets/imageomics/VLM4Bio
|
| 69 |
+
cd VLM4Bio
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
**Downloading and processing bird images**
|
| 73 |
+
* To download the bird images, run the following command:
|
| 74 |
+
```bash
|
| 75 |
+
bash download_bird_images.sh
|
| 76 |
+
```
|
| 77 |
+
* This should download the bird images inside `datasets/Bird/images`
|
| 78 |
+
|
| 79 |
+
**Processing fish and butterfly images**:
|
| 80 |
+
* Run the following command:
|
| 81 |
+
```bash
|
| 82 |
+
bash process_fish_butterfly_images.sh
|
| 83 |
+
```
|
| 84 |
+
* This should process fish and butterfly images inside `datasets/Fish/images` and `datasets/Butterfly/images` respectively.
|
| 85 |
+
|
| 86 |

|
| 87 |
|
| 88 |
## Dataset Details
|
|
|
|
| 110 |
English, Latin
|
| 111 |
|
| 112 |
## Dataset Structure
|
| 113 |
+
After downloading and processing the dataset, VLM4Bio should have the following structure:
|
| 114 |
|
| 115 |
+
```
|
| 116 |
+
VLM4Bio/
|
| 117 |
+
βββ datasets/
|
| 118 |
+
βββ Fish/
|
| 119 |
+
β βββ images/
|
| 120 |
+
β β βββ INHS_FISH_58870.jpg
|
| 121 |
+
β β βββ INHS_FISH_58819.jpg
|
| 122 |
+
β β βββ ...
|
| 123 |
+
β βββ metadata/
|
| 124 |
+
β βββ metadata_10k.csv
|
| 125 |
+
β βββ metadata_500.csv
|
| 126 |
+
β βββ ...
|
| 127 |
+
βββ Bird/
|
| 128 |
+
β βββ images/
|
| 129 |
+
β β βββ Ivory_Gull_0117_49227.jpg
|
| 130 |
+
β β βββ Yellow_Warbler_0026_176337.jpg
|
| 131 |
+
β β βββ ...
|
| 132 |
+
β βββ metadata/
|
| 133 |
+
β βββ bird_metadata_10k.csv
|
| 134 |
+
β βββ identification.csv
|
| 135 |
+
β βββ ...
|
| 136 |
+
βββ Butterfly/
|
| 137 |
+
βββ images/
|
| 138 |
+
β βββ butterfly_train_heliconius_sara_0007.jpg
|
| 139 |
+
β βββ butterfly_val_pyrrhogyra_cramen_0001.jpg
|
| 140 |
+
β βββ ...
|
| 141 |
+
βββ metadata/
|
| 142 |
+
βββ metadata.csv
|
| 143 |
+
βββ imagelist.csv
|
| 144 |
+
```
|
| 145 |
|
| 146 |
### Data Instances
|
| 147 |
<!--
|
|
|
|
| 150 |
Ex: All images are named <img_id>.png, each within a folder named for the species. They are 1024 x 1024, and the color has been standardized using <link to color standardization package>.
|
| 151 |
-->
|
| 152 |
|
| 153 |
+
|
| 154 |
### Data Fields
|
| 155 |
|
| 156 |
**Fish Files:**
|
process_fish_butterfly_images.sh
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
echo "Processing fish images..."
|
| 4 |
+
|
| 5 |
+
mkdir datasets/Fish/images
|
| 6 |
+
mv -v datasets/Fish/chunk*/** datasets/Fish/images
|
| 7 |
+
rm -rf datasets/Fish/chunk*
|
| 8 |
+
|
| 9 |
+
echo "Processing butterfly images..."
|
| 10 |
+
|
| 11 |
+
mkdir datasets/Butterfly/images
|
| 12 |
+
mv -v datasets/Butterfly/chunk*/** datasets/Butterfly/images
|
| 13 |
+
rm -rf datasets/Butterfly/chunk*
|
| 14 |
+
|
| 15 |
+
echo "Processing finished!"
|