Datasets:

Modalities:
Image
Text
Formats:
csv
Languages:
English
ArXiv:
DOI:
Libraries:
Datasets
pandas
License:
ksmehrab commited on
Commit
d87edfc
β€’
1 Parent(s): ddf54c1

Added instructions for processing

Browse files
Files changed (2) hide show
  1. README.md +56 -1
  2. process_fish_butterfly_images.sh +15 -0
README.md CHANGED
@@ -59,6 +59,30 @@ configs:
59
 
60
  # Dataset Card for VLM4Bio
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  ![Alt text](assests/teaser.png)
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
- **Instructions for downloading the dataset**
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
  ![Alt text](assests/teaser.png)
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!"