Closed baek85 closed 1 month ago
You must run all the cells of the notebook in the corresponding order
You must run all the cells of the notebook in the corresponding order
I run all the cells of the notebook in the corresponding order
Have you run these?
datamodule = MVTec(num_workers=0)
datamodule.prepare_data() # Downloads the dataset if it's not in the specified `root` directory
datamodule.setup() # Create train/val/test/prediction sets.
i, data = next(enumerate(datamodule.val_dataloader()))
print(data.keys())
This code will download MVTec dataset.
@cjy513203427 The data loading code you mentioned runs fine, but when I run ‘engine.fit(model=model, datamodule=datamodule)’ afterwards, I get the same error
The error message seems to be about a folder called 'anomalib-main/results/Padim/MVTec/bottle/latest', does anyone know why I am getting this error?
hmm yes it's about receiving the model checkpoint directories.. Did you try to start from a freshly installed anaconda environment?
I'm not even sure how os.path.realpath()
can fail because it is not supposed to. maybe you have some unexpected symlink?
@cjy513203427 The data loading code you mentioned runs fine, but when I run ‘engine.fit(model=model, datamodule=datamodule)’ afterwards, I get the same error
The error message seems to be about a folder called 'anomalib-main/results/Padim/MVTec/bottle/latest', does anyone know why I am getting this error?
The easiest way is to delete the project and conda env, clone again and install dependency. Maybe you have too long '/home/sunghyun.baek/home/workspace/AD/anomalib-main/results/Padim/MVTec/bottle/latest'. Or it could be permmission problem. I had once os.mkdirs permission failed on Ubuntu
It was a symlink problem in my setting.
Describe the bug
Error occurs in Padim model fitting process
start training
engine = Engine(task=TaskType.SEGMENTATION) engine.fit(model=model, datamodule=datamodule)
Dataset
MVTec
Model
PADiM
Steps to reproduce the behavior
Follow tutorial code in "001_getting_started.ipynb"
OS information
OS information:
Expected behavior
Estimate multi-variate gaussian distribution of MVTec AD dataset using pre-trained model
Screenshots
No response
Pip/GitHub
GitHub
What version/branch did you use?
main
Configuration YAML
Logs
Code of Conduct