advsecurenet.datasets.Cifar10 package
advsecurenet.datasets.Cifar10.cifar10_dataset module
- class advsecurenet.datasets.Cifar10.cifar10_dataset.CIFAR100Dataset(preprocess_config: PreprocessConfig | None = None)
Bases:
CIFAR10Dataset
The CIFAR100Dataset class that loads the CIFAR-100 dataset.
- Parameters:
preprocess_config (Optional[PreprocessConfig], optional) – The preprocessing configuration for the CIFAR-100 dataset. Defaults to None.
- mean
Mean of the CIFAR-100 dataset.
- Type:
List[float]
- std
Standard deviation of the CIFAR-100 dataset.
- Type:
List[float]
- input_size
Input size of the CIFAR-100 images.
- Type:
Tuple[int, int]
- name
Name of the dataset.
- Type:
str
- num_classes
Number of classes in the CIFAR-100 dataset.
- Type:
int
- num_input_channels
Number of input channels in the CIFAR-100 images.
- Type:
int
- get_dataset_class()
Returns the dataset class.
- class advsecurenet.datasets.Cifar10.cifar10_dataset.CIFAR10Dataset(preprocess_config: PreprocessConfig | None = None)
Bases:
BaseDataset
The CIFAR10Dataset class that loads the CIFAR-10 dataset.
- Parameters:
preprocess_config (Optional[PreprocessConfig], optional) – The preprocessing configuration for the CIFAR-10 dataset. Defaults to None.
- mean
Mean of the CIFAR-10 dataset.
- Type:
List[float]
- std
Standard deviation of the CIFAR-10 dataset.
- Type:
List[float]
- input_size
Input size of the CIFAR-10 images.
- Type:
Tuple[int, int]
- name
Name of the dataset.
- Type:
str
- num_classes
Number of classes in the CIFAR-10 dataset.
- Type:
int
- num_input_channels
Number of input channels in the CIFAR-10 images.
- Type:
int
- get_dataset_class()
Returns the dataset class.