Subh775 commited on
Commit
45698b3
·
verified ·
1 Parent(s): ac79dbd

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -29
README.md CHANGED
@@ -1,29 +1,47 @@
1
- ---
2
- dataset_info:
3
- features:
4
- - name: image
5
- dtype: image
6
- - name: mask
7
- dtype:
8
- image:
9
- mode: L
10
- - name: image_id
11
- dtype: string
12
- - name: width
13
- dtype: int32
14
- - name: height
15
- dtype: int32
16
- - name: num_annotations
17
- dtype: int32
18
- splits:
19
- - name: train
20
- num_bytes: 159377341.0
21
- num_examples: 44
22
- download_size: 159166750
23
- dataset_size: 159377341.0
24
- configs:
25
- - config_name: default
26
- data_files:
27
- - split: train
28
- path: data/train-*
29
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: apache-2.0
4
+ tags:
5
+ - computer-vision
6
+ - image-segmentation
7
+ - leaf-dataset
8
+ ---
9
+
10
+ # leaf-segmentation-dataset
11
+
12
+ This is a dataset for leaf segmentation, created by **Subh775**.
13
+
14
+ ## Dataset Description
15
+
16
+ This dataset contains in-the-wild images of plant leaves and their corresponding binary segmentation masks. It was annotated using CVAT and is intended for training computer vision models for segmentation tasks.
17
+
18
+ The dataset includes additional metadata extracted from the annotation process.
19
+
20
+ ### Features
21
+
22
+ - `image`: The original RGB image of the plant leaf/leaves.
23
+ - `mask`: The binary, single-channel (grayscale) segmentation mask. The leaf pixels are white (255) and the background is black (0).
24
+ - `image_id`: The original filename of the image.
25
+ - `width`: The original width of the image.
26
+ - `height`: The original height of the image.
27
+ - `num_annotations`: The number of individual leaves annotated in the image.
28
+
29
+ ## Dataset Structure
30
+
31
+ The dataset consists of 44 image-mask pairs.
32
+
33
+ **Example Usage:**
34
+
35
+ ```python
36
+ from datasets import load_dataset
37
+
38
+ dataset = load_dataset("Subh775/leaf-segmentation-dataset")
39
+
40
+ # Access a sample
41
+ sample = dataset['train'][0]
42
+ image = sample['image']
43
+ mask = sample['mask']
44
+
45
+ print(f"Image size: {image.size}")
46
+ print(f"Number of annotations in this image: {sample['num_annotations']}")
47
+