|
_target_: src.models.anomaly_clip_module.AnomalyCLIPModule |
|
|
|
optimizer: |
|
_target_: torch.optim.AdamW |
|
_partial_: true |
|
lr: 0.001 |
|
weight_decay: 0.2 |
|
|
|
scheduler: |
|
_target_: torch.optim.lr_scheduler.ReduceLROnPlateau |
|
_partial_: true |
|
mode: min |
|
factor: 0.1 |
|
patience: 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
net: |
|
_target_: src.models.components..sparc.SPARC |
|
arch: ViT-L/14@336px |
|
image_size: 336 |
|
temperature: 0.07 |
|
feature_map_idx: [5, 11, 17, 23] |
|
share_weight: true |
|
prompt_learner: |
|
_target_: src.models.components.coop.PromptEncoder |
|
_partial_: true |
|
tokenizer: |
|
_target_: src.models.components.clip.simple_tokenizer.SimpleTokenizer |
|
context_length: 77 |
|
truncate: false |
|
class_names: ${prompt.class_names} |
|
prompt_normal: ${prompt.template.normal} |
|
prompt_abnormal: ${prompt.template.abnormal} |
|
prompt_templates: ${prompt.template.templates} |
|
adapter: |
|
_target_: torch.nn.Linear |
|
in_features: 1024 |
|
out_features: 1024 |
|
bias: false |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fusion: |
|
_target_: src.models.components.cross_modal.DotProductFusion |
|
embedding_dim: 768 |
|
|
|
loss: |
|
cross_entropy: |
|
_target_: torch.nn.CrossEntropyLoss |
|
focal: |
|
_target_: src.models.components.loss.FocalLoss |
|
dice: |
|
_target_: src.models.components.loss.BinaryDiceLoss |
|
|
|
k_shot: false |
|
|
|
filter: true |
|
|
|
enable_validation: false |
|
|
|
compile: false |
|
|