-
I'm using anomalib 1.2.0. datamodule = Folder( datamodule.setup() _, train_data = next(enumerate(datamodule.train_dataloader())) _, val_data = next(enumerate(datamodule.val_dataloader())) _, test_data = next(enumerate(datamodule.test_dataloader())) model = Patchcore() engine = Engine(task='classification', threshold= "ManualThreshold") engine.train(datamodule=datamodule, model=model)` I could find that there is only one argument about threshold in Engine(), but it needs to be a string. I tried to change the default value in the init() of class ManualThreshold directly, but it didn't work. Where can I set the default_value of ManualThreshold? I searched some issues, like https://github.com/openvinotoolkit/anomalib/issues/2229. In this issue, it seems that Engine() use a threshold of different type which is an object of class ManualThreshold. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
threshold: |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
threshold:
class_path: anomalib.metrics.ManualThreshold #F1AdaptiveThreshold ManualThreshold
init_args:
default_value: 32