Replies: 1 comment
-
@enislalmi, if I understand your question, there are two aspects of this problem.
threshold:
method: adaptive #options: [adaptive, manual]
manual_image: null
manual_pixel: null Note that, if you set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have the config file as follows and I am using a custom dataset. The first Epoch runs fine, and then it crashes giving this error. As you can see I have set treshold: ... adaptive=false, as I saw in another issue, but it still is not working for me. Any ideas? Thanks!
Dataset
Other (please specify in the text field below)
Model
PatchCore
Steps to reproduce the behavior
Create the config file as above.
Read the data as cited in the notebooks:
folder_dataset_classification_train = FolderDataset( normal_dir=folder_dataset_root / "train", abnormal_dir=folder_dataset_root / "test/reject", split="train", transform=transform, task="classification", ) folder_dataset_classification_train.setup() folder_dataset_classification_train.samples.head()
(similar for test)Get the config file from the specified path:
`config = get_configurable_parameters(
model_name="patchcore", config_path=path1
)
if config.project.seed:
seed_everything(config.project.seed)
datamodule = get_datamodule(config)
model1 = get_model(config)
trainer = Trainer(**config.trainer)
trainer.fit(model=model1, datamodule=datamodule)`
OS information
OS information:
Expected behavior
The trainer should run until the end, not just for epoch 0.
Screenshots
No response
Pip/GitHub
pip
What version/branch did you use?
latest
Configuration YAML
Logs
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions