anomaly
AnomalyDatasetArguments
dataclass
¶
anomaly_dataset(tmp_path, dataset_arguments)
¶
Fixture used to dinamically generate anomaly dataset. By default images are random grayscales with size 10x10.
Parameters:
-
tmp_path
(
Path
) –path to temporary directory
-
dataset_arguments
(
AnomalyDatasetArguments
) –dataset arguments
Returns:
-
Tuple[str, AnomalyDatasetArguments]
–path to anomaly dataset
Source code in quadra/utils/tests/fixtures/dataset/anomaly.py
88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
|
base_anomaly_dataset(tmp_path, request)
¶
Generate base anomaly dataset with the following parameters
- train_samples: 10
- val_samples: (10, 10)
- test_samples: (10, 10).
Parameters:
Yields:
-
Tuple[str, AnomalyDatasetArguments]
–Path to anomaly dataset and dataset arguments
Source code in quadra/utils/tests/fixtures/dataset/anomaly.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
|