jerome-ai commited on
Commit
e3e6f2c
·
1 Parent(s): d438932

Basic README instructions

Browse files
Files changed (1) hide show
  1. README.md +37 -0
README.md CHANGED
@@ -1,3 +1,40 @@
1
  ---
2
  license: apache-2.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
  ---
4
+
5
+ # Wadhwani AI Pest Management Open Data
6
+
7
+ This dataset is a Hugging Face adaptor to the official dataset [hosted
8
+ on
9
+ Github](https://github.com/WadhwaniAI/pest-management-opendata). Please
10
+ refer to that repository for detailed and up-to-date documentation.
11
+
12
+ ## Usage
13
+
14
+ This dataset is large. It is strongly recommended users access it as a
15
+ stream:
16
+
17
+ ```python
18
+ from datasets import load_dataset
19
+ dataset = load_dataset('jerome-ai/pest-management-opendata', streaming=True)
20
+ ```
21
+
22
+ Bound boxes are stored as geospatial types. Once loaded, they can be
23
+ read as follows:
24
+
25
+ ```python
26
+ from shapely.wkb import loads
27
+
28
+ for (s, data) in dataset.items():
29
+ for d in data:
30
+ pests = d['pests']
31
+ iterable = map(pests.get, ('label', 'geometry'))
32
+ for (i, j) in zip(*iterable):
33
+ geom = loads(j)
34
+ print(i, geom.bounds)
35
+ ```
36
+
37
+ The bounds of a geometry are what most object detection systems
38
+ require. See the [Shapely
39
+ documentation](https://shapely.readthedocs.io/en/stable/manual.html#object.bounds)
40
+ for more.