PostFusion
PostFusion
dataclass
Bases: DLModelArgs
PostFusion Model
Attributes:
| Name | Type | Description |
|---|---|---|
batch_size |
int
|
Batch size for training. |
accumulate_grad_batches |
int
|
Number of batches to accumulate gradients before updating the weights. |
backbone |
BackboneNames
|
Backbone model to use. |
use_fixation_report |
bool
|
Whether to use fixation report. |
sep_token_id |
int
|
ID of the separator token. |
is_training |
bool
|
Whether the model is in training mode. |
freeze |
bool
|
Whether to freeze the model. |
prepend_eye_features_to_text |
bool
|
A flag indicating whether to prepend the eye data to the input. If True, the eye data will be added at the beginning of the input (otherwise no eyes). |
eye_projection_dropout |
float
|
Dropout rate for the eye projection layer. |
cross_attention_dropout |
float
|
Dropout rate for the cross-attention layer. |
use_attn_mask |
bool
|
Whether to use an attention mask in the model. |
Source code in src/configs/models/dl/PostFusion.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 | |