Export
Export Dataset¶
After you split your dataset, you can export it to specific format.
Load Dataset¶
In [2]:
Copied!
from waffle_hub.dataset import Dataset
dataset = Dataset.load(name="mnist_coco")
from waffle_hub.dataset import Dataset
dataset = Dataset.load(name="mnist_coco")
/home/lhj/anaconda3/envs/waffle/lib/python3.9/site-packages/tqdm/auto.py:21: TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html from .autonotebook import tqdm as notebook_tqdm
Export Dataset¶
In [4]:
Copied!
dataset.export(
"coco"
)
dataset.export(
"coco"
)
Out[4]:
'datasets/mnist_coco/exports/COCO'
In [5]:
Copied!
dataset.export(
"yolo"
)
dataset.export(
"yolo"
)
Out[5]:
'datasets/mnist_coco/exports/YOLO'
In [7]:
Copied!
dataset.export(
"transformers"
)
dataset.export(
"transformers"
)
Downloading and preparing dataset generator/default to /home/lhj/.cache/huggingface/datasets/generator/default-601358b2253d9047/0.0.0...
Dataset generator downloaded and prepared to /home/lhj/.cache/huggingface/datasets/generator/default-601358b2253d9047/0.0.0. Subsequent calls will reuse this data. Downloading and preparing dataset generator/default to /home/lhj/.cache/huggingface/datasets/generator/default-048941841741712d/0.0.0...
Found cached dataset generator (/home/lhj/.cache/huggingface/datasets/generator/default-048941841741712d/0.0.0)
Dataset generator downloaded and prepared to /home/lhj/.cache/huggingface/datasets/generator/default-048941841741712d/0.0.0. Subsequent calls will reuse this data.
Out[7]:
'datasets/mnist_coco/exports/TRANSFORMERS'
In [ ]:
Copied!