Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
540
1.02k
berry_count
int32
0
2.14k
cluster_count
int32
0
34
183
8
105
4
207
8
169
6
84
2
128
4
408
7
352
7
309
8
49
1
50
1
143
7
155
4
156
9
116
3
96
4
79
3
141
4
158
5
197
6
154
7
75
1
130
5
114
7
202
5
191
6
130
6
94
4
63
2
68
3
76
4
118
3
158
3
157
3
77
3
70
2
87
2
91
4
56
1
96
3
116
3
141
4
174
7
160
4
135
6
127
5
124
3
158
5
103
5
128
7
54
2
56
3
115
3
72
3
54
2
141
5
67
2
90
4
67
3
99
5
75
3
199
6
205
6
176
4
163
9
136
4
82
3
65
1
54
2
62
1
69
2
67
3
67
3
91
2
87
2
32
1
72
2
19
1
78
2
107
3
117
3
124
4
119
2
205
4
93
1
84
2
126
4
133
6
141
5
158
6
165
5
158
5
47
1
74
1
91
5
81
4
186
6
189
4
108
3
206
6
End of preview. Expand in Data Studio

ViViD-5k: Vineyard Vision Dataset

Sample images with cluster masks and berry keypoints

ViViD-5k is a large-scale vineyard image dataset for grape cluster detection, segmentation, and berry counting. Every image is annotated with instance masks and bounding boxes for grape clusters, plus a centroid keypoint for every visible berry β€” making it one of the densest object-counting datasets in agriculture.

πŸ“„ Paper: arXiv:2605.24353 Β· πŸ’» Code: GrapeSAM Β· πŸ““ Demo: notebooks/demo.ipynb

At a glance

Images 5,000 (train 4,000 / val 500 / test 500)
Grape varieties 13
Berry keypoints 648,710
Cluster instances (masks + bboxes) 18,561
Berries per image 130 mean / 2,144 max
Resolution up to 4,650 px (longest side)

About 2% of images (110/5,000) contain no berry keypoints β€” negative or fully-occluded examples; 97 of those also have zero cluster instances.

Dataset statistics

Berries per image

More statistics (clusters per image, cluster sizes, spatial density)

Clusters per image Berries vs clusters Cluster size distribution Spatial density

Quick start

from huggingface_hub import hf_hub_download
import numpy as np
from PIL import Image

repo = "XZhi/ViViD-5k"
img = Image.open(hf_hub_download(repo, "data/imgs/0.png", repo_type="dataset"))
pts = np.load(hf_hub_download(repo, "data/anns/points/0.npy", repo_type="dataset"))
print(f"{len(pts)} berries annotated")

Or browse interactively: the Dataset Viewer above shows every image with its berry and cluster counts (previews are downscaled to 1024 px; full-resolution images live in data/imgs/).

Open In Colab

Structure

data/
β”œβ”€β”€ imgs/                      # 5,000 raw images (JPG, PNG), full resolution
β”œβ”€β”€ anns/
β”‚   β”œβ”€β”€ instances_updated.json # COCO-format cluster instance masks and bboxes
β”‚   └── points/                # <img_id>.npy β€” (N, 2) berry centroid coordinates
β”œβ”€β”€ metadata.csv               # per-image: split, berry_count, cluster_count, width, height
β”œβ”€β”€ train.txt / val.txt / test.txt   # split definitions
parquet/                       # Dataset Viewer previews (1024px) + counts
assets/                        # dataset card figures
scripts/                       # reproducible generators for metadata, figures, parquet
notebooks/                     # demo notebook (Colab-ready)
docs/                          # promotion checklist

Known issues

3 source JPEGs are truncated (1597915859896.jpg, 1599030751681.jpg, 1599042714933.jpg) β€” decodable except for their final rows. Use from PIL import ImageFile; ImageFile.LOAD_TRUNCATED_IMAGES = True when reading raw images (Dataset Viewer previews already handle this).

Citation

If you use ViViD-5k, please cite:

@misc{tong2026vivid5kvineyardvisiondataset,
      title={ViViD-5K: Vineyard vision dataset for field-based berry detection and segmentation and grape cluster closure estimation}, 
      author={Xiangzhi Tong and Chengrui Zhang and Mac Flaherty and Andre Matteo Garcia and Dominic Gorman and Jonathan Jaramillo and Justine E. Vanden Heuvel and Yu Jiang},
      year={2026},
      eprint={2605.24353},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2605.24353}, 
}

License

CC-BY-4.0

Downloads last month
203

Paper for XZhi/ViViD-5k