Command-Line Interfaceο
After you installed energon, a script called energon
will be added to your PATH.
It provides commands to prepare, preview, or lint datasets on disk.
Hereβs a simple example:
energon prepare /mnt/data/my_captioning_webdataset
The above command will scan your existing off-the-shelf web dataset and add the needed metadata to make it compatible with Energon.
Below, you can see the available sub-commands under energon
.
energon prepareο
An interactive tool to generate metadata for your existing webdataset. This will help make the dataset compliant with our format.
The tool will ask you for a train/val/test split and how to assign the webdataset fields to the fields of the corresponding sample type in Energon.
See Data Preparation for more details on how to use this command.
energon infoο
Prints information about the dataset such as overall number of samples and size.
energon lintο
You can execute this tool on the prepared dataset to check if the data is valid and loadable. It will report any problems such as non-readable images.
energon previewο
This command will load a dataset and display samples one-by-one on the console. Note that this will not work for datasets with non-standard flavors or crude datasets.