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

Support training with custom MVTec like dataset but without masks (ground truths) #147

Closed
GuillaumeAnoufa opened this issue Mar 16, 2022 · 1 comment · Fixed by #154
Closed
Assignees

Comments

@GuillaumeAnoufa
Copy link

GuillaumeAnoufa commented Mar 16, 2022

Hello,

I would like to be able to train on custom datasets without the need to have ground truth masks since most anomaly detection methods do not use ground truth for training. The format would be the same as any MVTec dataset just without the ground_truth directory.

Edit: I changed data/mvtec.py:253 if label_index == 0 or not Path(mask_path).exists(): mask = np.zeros(shape=image.shape[:2])
An empty mask is created if mask_path doesn't exist and it seemed to do the trick

@samet-akcay
Copy link
Contributor

Thanks @GuillaumeAnoufa for the update! We're working on CustomDataset support and aim to merge it by the end of the week

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

Successfully merging a pull request may close this issue.

3 participants