Datasets:
Update README.md
Browse filesAdd instruction to download dataset
README.md
CHANGED
@@ -95,4 +95,36 @@ configs:
|
|
95 |
|
96 |
# AgroSegNet
|
97 |
|
98 |
-
This dataset comprises synthetic images captured from a top-down perspective, featuring two distinct annotations: one for direct sunlight and another for human and plant segmentation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
|
96 |
# AgroSegNet
|
97 |
|
98 |
+
This dataset comprises synthetic images captured from a top-down perspective, featuring two distinct annotations: one for direct sunlight and another for human and plant segmentation.
|
99 |
+
|
100 |
+
# Example loader
|
101 |
+
|
102 |
+
## Install Hugging Face datasets package
|
103 |
+
|
104 |
+
```sh
|
105 |
+
pip install datasets
|
106 |
+
```
|
107 |
+
|
108 |
+
|
109 |
+
## Download the dataset
|
110 |
+
|
111 |
+
```python
|
112 |
+
from datasets import load_dataset
|
113 |
+
|
114 |
+
dataset = load_dataset("Menchen/AgroSegNet","default") # Change "default" to "default-tiny" to preview and test
|
115 |
+
|
116 |
+
```
|
117 |
+
|
118 |
+
## Load the data
|
119 |
+
|
120 |
+
Images and masks are stored as PIL, for example:
|
121 |
+
|
122 |
+
```python
|
123 |
+
|
124 |
+
dataset["train"][1]["image"] # PIL image to rendered image
|
125 |
+
|
126 |
+
dataset["train"][1]["label"] # PIL image to mask
|
127 |
+
|
128 |
+
```
|
129 |
+
|
130 |
+
|