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

[Bug]: Validation failed: No action for key "center_crop" to check its value. #1898

Closed
1 task done
Shabayek opened this issue Mar 22, 2024 · 1 comment
Closed
1 task done

Comments

@Shabayek
Copy link

Describe the bug

anomalib fit -c configs/model/csflow.yaml --data configs/data/mvtec.yaml
Usage: anomalib [-h] [-c CONFIG] [--print_config [=flags]]
{install,fit,validate,test,train,predict,export} ...
error: Parser key "data":
Problem with given class_path 'anomalib.data.MVTec':
Validation failed: No action for key "center_crop" to check its value.

anomalib fit -c configs/model/padim.yaml --data configs/data/mvtec.yaml
Usage: anomalib [-h] [-c CONFIG] [--print_config [=flags]]
{install,fit,validate,test,train,predict,export} ...
error: Parser key "model":
Problem with given class_path 'anomalib.models.Padim':
Validation failed: No action for key "input_size" to check its value.

anomalib fit -c configs/model/cfa.yaml --data configs/data/mvtec.yaml
Usage: anomalib [-h] [-c CONFIG] [--print_config [=flags]]
{install,fit,validate,test,train,predict,export} ...
error: Parser key "data":
Problem with given class_path 'anomalib.data.MVTec':
Validation failed: No action for key "center_crop" to check its value.

anomalib fit -c configs/model/patchcore.yaml --data configs/data/mvtec.yaml
Usage: anomalib [-h] [-c CONFIG] [--print_config [=flags]]
{install,fit,validate,test,train,predict,export} ...
error: Parser key "data":
Problem with given class_path 'anomalib.data.MVTec':
Validation failed: No action for key "center_crop" to check its value.

Dataset

MVTec

Model

CSFlow

Steps to reproduce the behavior

anomalib fit -c configs/model/padim.yaml --data configs/data/mvtec.yaml

The same error happens with all algorithms.

OS information

OS information:

  • OS: [e.g. Ubuntu 20.04]
  • Python version: [e.g. 3.10.0]
  • Anomalib version: [e.g. 0.3.6]
  • PyTorch version: [e.g. 1.9.0]
  • CUDA/cuDNN version: [e.g. 11.1]
  • GPU models and configuration: [e.g. 2x GeForce RTX 3090]
  • Any other relevant information: [e.g. I'm using a custom dataset]

Expected behavior

Continue without errors.

Screenshots

No response

Pip/GitHub

GitHub

What version/branch did you use?

No response

Configuration YAML

Default in configs

Logs

error: Parser key "data":
  Problem with given class_path 'anomalib.data.MVTec':
    Validation failed: No action for key "center_crop" to check its value.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@samet-akcay
Copy link
Contributor

@Shabayek, can you clone the latest anomalib version? center_crop is not part of anomalib anymore. For more details, you could refer to this PR #1706

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

2 participants