|
_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.anomaly_clip.AnomalyCLIP |
|
arch: ViT-L/14@336px |
|
image_size: 336 |
|
class_names: ["object"] |
|
|
|
temperature: 0.07 |
|
prompt_length: 12 |
|
context_length: 77 |
|
truncate: false |
|
feature_map_idx: [5, 11, 17, 23] |
|
share_weight: true |
|
|
|
state_template: |
|
normal: ["{}"] |
|
anomaly: ["damaged {}"] |
|
tokenizer: |
|
_target_: src.models.components.clip.simple_tokenizer.SimpleTokenizer |
|
adapter: |
|
_target_: src.models.components.adapter.BasicLayer |
|
_partial_: true |
|
input_resolution: [24, 24] |
|
window_size: 12 |
|
depth: 1 |
|
num_heads: 8 |
|
hidden_features: null |
|
cpb_dim: 64 |
|
value_only: true |
|
drop: 0.0 |
|
attn_drop: 0.1 |
|
|
|
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 |
|
|