The dataset viewer is not available for this dataset.
Cannot get the config names for the dataset.
Error code:   ConfigNamesError
Exception:    ImportError
Message:      To be able to use wadhwani-ai/pest-management-opendata, you need to install the following dependency: shapely.
Please install it using 'pip install shapely' for instance.
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/dataset/config_names.py", line 66, in compute_config_names_response
                  config_names = get_dataset_config_names(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/inspect.py", line 347, in get_dataset_config_names
                  dataset_module = dataset_module_factory(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1914, in dataset_module_factory
                  raise e1 from None
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1880, in dataset_module_factory
                  return HubDatasetModuleFactoryWithScript(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 1504, in get_module
                  local_imports = _download_additional_modules(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/load.py", line 354, in _download_additional_modules
                  raise ImportError(
              ImportError: To be able to use wadhwani-ai/pest-management-opendata, you need to install the following dependency: shapely.
              Please install it using 'pip install shapely' for instance.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

Wadhwani AI Pest Management Open Data

This dataset is a Hugging Face adaptor to the official dataset hosted on Github. Please refer to that repository for detailed and up-to-date documentation.

Usage

This dataset is large. It is strongly recommended users access it as a stream:

from datasets import load_dataset
dataset = load_dataset('wadhwani-ai/pest-management-opendata', streaming=True)

Bounding boxes are stored as geospatial types. Once loaded, they can be read as follows:

from shapely.wkb import loads

for (s, data) in dataset.items():
    for d in data:
        pests = d['pests']
        iterable = map(pests.get, ('label', 'geometry'))
        for (i, j) in zip(*iterable):
            geom = loads(j)
            print(i, geom.bounds)

The bounds of a geometry are what most object detection systems require. See the Shapely documentation for more.

Downloads last month
46