Exceptions
EmptyDatasetException
Bases: DatasetValidationException
Exception raised when a dataset does not have any image for a specific config
Attributes: message -- explanation of the error
Source code in training/exceptions/dataset_exceptions.py
22 23 24 25 26 27 28 29 30 31 32 |
|
IllegalDatasetParameterException
Bases: DatasetValidationException
Exception raised illegal dataset param.
Attributes: message -- explanation of the error
Source code in training/exceptions/dataset_exceptions.py
9 10 11 12 13 14 15 16 17 18 19 |
|
UnsupportedBatchItemsFormat
Bases: ValueError
Exception raised illegal batch items returned from data loader.
Attributes: message -- explanation of the error
Source code in training/exceptions/dataset_exceptions.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
ArchitectureKwargsException
Bases: KDModelException
Exception raised when subnet architectures are not defined.
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
13 14 15 16 17 18 19 20 21 |
|
InconsistentParamsException
Bases: KDModelException
Exception raised when values between arch_params/checkpoint_params should be equivalent.
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
|
KDModelException
Bases: Exception
Exception raised illegal training param format.
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
1 2 3 4 5 6 7 8 9 10 |
|
TeacherKnowledgeException
Bases: KDModelException
Exception raised when teacher net doesn't hold any knowledge (i.e weights are the initial ones).
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
65 66 67 68 69 70 71 72 73 |
|
UndefinedNumClassesException
Bases: KDModelException
Exception raised when num_classes is not defined for subnets (and cannot be derived).
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
76 77 78 79 80 81 82 83 84 |
|
UnsupportedKDArchitectureException
Bases: KDModelException
Exception raised for unsupported kd architecture.
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
24 25 26 27 28 29 30 31 32 |
|
UnsupportedKDModelArgException
Bases: KDModelException
Exception raised for unsupported args that might be supported for Trainer but not for KDTrainer.
Attributes: message -- explanation of the error
Source code in training/exceptions/kd_trainer_exceptions.py
54 55 56 57 58 59 60 61 62 |
|
IllegalRangeForLossAttributeException
Bases: Exception
Exception raised illegal value (i.e not in range) for _Loss attribute.
Attributes: message -- explanation of the error
Source code in training/exceptions/loss_exceptions.py
1 2 3 4 5 6 7 8 9 10 11 |
|
RequiredLossComponentReductionException
Bases: Exception
Exception raised illegal reduction for _Loss component.
Attributes: message -- explanation of the error
Source code in training/exceptions/loss_exceptions.py
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 training/exceptions/sg_trainer_exceptions.py
31 32 33 34 35 36 37 38 39 |
|
IllegalDataloaderInitialization
Bases: Exception
Exception raised illegal data loaders.
Source code in training/exceptions/sg_trainer_exceptions.py
24 25 26 27 28 |
|
UnsupportedOptimizerFormat
Bases: UnsupportedTrainingParameterFormat
Exception raised illegal optimizer format.
Attributes: message -- explanation of the error
Source code in training/exceptions/sg_trainer_exceptions.py
13 14 15 16 17 18 19 20 21 |
|
UnsupportedTrainingParameterFormat
Bases: Exception
Exception raised illegal training param format.
Attributes: message -- explanation of the error
Source code in training/exceptions/sg_trainer_exceptions.py
1 2 3 4 5 6 7 8 9 10 |
|