Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V1 version cannot be train[Task]: #1684

Closed
MMYY-yy opened this issue Jan 27, 2024 · 4 comments
Closed

V1 version cannot be train[Task]: #1684

MMYY-yy opened this issue Jan 27, 2024 · 4 comments
Assignees

Comments

@MMYY-yy
Copy link

MMYY-yy commented Jan 27, 2024

What is the motivation for this task?

error: Parser key "post_processing.normalization_method":
Expected a member of <enum 'NormalizationMethod'>: {CDF,MIN_MAX,NONE}. Got value: min_max

Describe the solution you'd like

error: Parser key "post_processing.normalization_method":
Expected a member of <enum 'NormalizationMethod'>: {CDF,MIN_MAX,NONE}. Got value: min_max

class_path: anomalib.data.Folder
init_args:
root: "data/SY1"
normal_dir: "SY1_OK_train"
abnormal_dir: "SY1_NG_test"
normal_test_dir: "SY1_OK_test"
mask_dir: null #"ground_truth/broken_large"
normal_split_ratio: 0
extensions: null #[".png"]
image_size: [320, 95]
center_crop: null
normalization: imagenet
train_batch_size: 32
eval_batch_size: 32
num_workers: 8
task: CLASSIFICION #SEGMENTATION
transform_config_train: null
transform_config_eval: null
test_split_mode: FROM_DIR
test_split_ratio: 0.2
val_split_mode: SAME_AS_TEST
val_split_ratio: 0.5
seed: null

model:
class_path: anomalib.models.Cfa
init_args:
backbone: wide_resnet50_2
gamma_c: 1
gamma_d: 1
num_nearest_neighbors: 3
num_hard_negative_features: 3
radius: 1.0e-05

metrics:
#pixel: AUROC
image: AUROC
trainer:
max_epochs: 30
callbacks:
- class_path: lightning.pytorch.callbacks.EarlyStopping
init_args:
patience: 5
monitor: image_AUROC #pixel_AUROC
mode: max

Additional context

No response

@samet-akcay
Copy link
Contributor

@ashwinvaidya17, can you have a look at this

@ashwinvaidya17
Copy link
Collaborator

It should be fixed when this PR #1640 is recreated to target the main branch

@ashwinvaidya17
Copy link
Collaborator

I am closing this issue. Feel free to re-open it if it still persists.

@MMYY-yy
Copy link
Author

MMYY-yy commented Feb 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants