Exceptions
EmptyDatasetException
Bases: DatasetValidationException
Exception raised when a dataset does not have any image for a specific config
Parameters:
Name | Type | Description | Default |
---|---|---|---|
desc |
str
|
explanation of the error |
required |
Source code in V3_2/src/super_gradients/common/exceptions/dataset_exceptions.py
21 22 23 24 25 26 27 28 29 30 |
|
IllegalDatasetParameterException
Bases: DatasetValidationException
Exception raised illegal dataset param.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
desc |
str
|
Explanation of the error |
required |
Source code in V3_2/src/super_gradients/common/exceptions/dataset_exceptions.py
9 10 11 12 13 14 15 16 17 18 |
|
UnsupportedBatchItemsFormat
Bases: ValueError
Exception raised illegal batch items returned from data loader.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
batch_items |
tuple
|
batch items returned from data loader |
required |
Source code in V3_2/src/super_gradients/common/exceptions/dataset_exceptions.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
|
UnknownTypeException
Bases: Exception
Type error with message, followed by type suggestion, chosen by fuzzy matching (out of 'choices' arg passed in init).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
unknown_type |
str
|
The type that was not found. |
required |
choices |
List
|
List of valid types |
required |
message |
str
|
Explanation of the error |
None
|
Source code in V3_2/src/super_gradients/common/exceptions/factory_exceptions.py
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
ArchitectureKwargsException
Bases: KDModelException
Exception raised when subnet architectures are not defined.
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
12 13 14 15 16 |
|
InconsistentParamsException
Bases: KDModelException
Exception raised when values between arch_params/checkpoint_params should be equivalent.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
inconsistent_key1 |
str
|
Name of the key provided |
required |
inconsistent_key1_container_name |
str
|
Container name of the key provided |
required |
inconsistent_key2 |
str
|
Name of the key expected |
required |
inconsistent_key2_container_name |
str
|
Container name of the key expected |
required |
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
KDModelException
Bases: Exception
Exception raised illegal training param format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
desc |
str
|
Explanation of the error |
required |
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
1 2 3 4 5 6 7 8 9 |
|
TeacherKnowledgeException
Bases: KDModelException
Exception raised when teacher net doesn't hold any knowledge (i.e weights are the initial ones).
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
61 62 63 64 65 |
|
UndefinedNumClassesException
Bases: KDModelException
Exception raised when num_classes is not defined for subnets (and cannot be derived).
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
68 69 70 71 72 |
|
UnsupportedKDArchitectureException
Bases: KDModelException
Exception raised for unsupported kd architecture.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
architecture |
str
|
Explanation of the error |
required |
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
19 20 21 22 23 24 25 26 |
|
UnsupportedKDModelArgException
Bases: KDModelException
Exception raised for unsupported args that might be supported for Trainer but not for KDTrainer.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
param_name |
str
|
Name of the param that is not supported |
required |
dict_name |
str
|
Name of the dict including the param that is not supported |
required |
Source code in V3_2/src/super_gradients/common/exceptions/kd_trainer_exceptions.py
50 51 52 53 54 55 56 57 58 |
|
IllegalRangeForLossAttributeException
Bases: Exception
Exception raised illegal value (i.e not in range) for _Loss attribute.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
range_vals |
tuple
|
Range of valid values |
required |
attr_name |
str
|
Name of attribute that is not in range |
required |
Source code in V3_2/src/super_gradients/common/exceptions/loss_exceptions.py
1 2 3 4 5 6 7 8 9 10 |
|
RequiredLossComponentReductionException
Bases: Exception
Exception raised illegal reduction for _Loss component.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
component_name |
str
|
Name of component |
required |
reduction |
str
|
Reduction provided |
required |
required_reduction |
str
|
Reduction required |
required |
Source code in V3_2/src/super_gradients/common/exceptions/loss_exceptions.py
13 14 15 16 17 18 19 20 21 22 23 24 |
|
GPUModeNotSetupError
Bases: Exception
Exception raised when the DDP should be setup but is not.
Source code in V3_2/src/super_gradients/common/exceptions/sg_trainer_exceptions.py
26 27 28 29 30 31 32 33 34 |
|
IllegalDataloaderInitialization
Bases: Exception
Exception raised illegal data loaders.
Source code in V3_2/src/super_gradients/common/exceptions/sg_trainer_exceptions.py
19 20 21 22 23 |
|
UnsupportedOptimizerFormat
Bases: UnsupportedTrainingParameterFormat
Exception raised illegal optimizer format.
Source code in V3_2/src/super_gradients/common/exceptions/sg_trainer_exceptions.py
12 13 14 15 16 |
|
UnsupportedTrainingParameterFormat
Bases: Exception
Exception raised illegal training param format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
desc |
str
|
Explanation of the error |
required |
Source code in V3_2/src/super_gradients/common/exceptions/sg_trainer_exceptions.py
1 2 3 4 5 6 7 8 9 |
|