MAG
MAG
dataclass
Bases: DLModelArgs
Model arguments for the MAG model.
Attributes:
| Name | Type | Description |
|---|---|---|
batch_size |
int
|
Batch size for training. |
accumulate_grad_batches |
int
|
Number of batches to accumulate gradients over. |
backbone |
BackboneNames
|
Backbone model to use. |
use_fixation_report |
bool
|
Whether to use fixation report. |
freeze |
bool
|
Whether to freeze the model parameters. |
Attributes |
bool
|
|
mag_dropout |
float
|
Dropout rate for the MAG module. |
mag_beta_shift |
float
|
Beta shift parameter used in the MAG module. |
mag_injection_index |
int
|
Index at which the MAG features are injected into the model. |
Source code in src/configs/models/dl/MAG.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |