Skip to content
Discussion options

You must be logged in to vote

@GauravGajbhiye, there are two alternative approach for this:

CLI

you could use the benchmarking script for this purpose. For example, the following cli command would benchmark Padim and Patchcore on the MVTec AD categories.

python tools/benchmarking/benchmark.py --config tools/benchmarking/benchmark_params.yaml

API

If you want to do this via API, you could do something like the following by modifying the tools/train.py file:

    # Add the following to the existing imports
    from anomalib.data.mvtec import CATEGORIES
    #...other imports


    for category in CATEGORIES:
        config.dataset[category] = category

        datamodule = get_datamodule(config)
        model = get_model(c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samet-akcay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1173 on July 21, 2023 20:19.