pixano.app.models.dataset_info
DatasetInfoModel(**data)
Bases: DatasetInfo
Dataset info model.
It contains all the information as a DatasetInfo and the number of items in the dataset.
Attributes:
Name | Type | Description |
---|---|---|
num_items |
int
|
Number of items in the dataset. |
Source code in pydantic/main.py
from_dataset_info(dataset_info, dataset_dir)
staticmethod
Create a dataset info model from a dataset info.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dataset_info
|
DatasetInfo
|
Dataset info. |
required |
dataset_dir
|
Path
|
Dataset directory. |
required |
Returns:
Type | Description |
---|---|
DatasetInfoModel
|
Dataset info model. |