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

Some minor corrections in the test.py script #21

Closed
Odin-byte opened this issue May 13, 2023 · 0 comments
Closed

Some minor corrections in the test.py script #21

Odin-byte opened this issue May 13, 2023 · 0 comments

Comments

@Odin-byte
Copy link

In line 143 there is one full stop to much. Change the line from:

test_path = '../mvtec/' + _class_

to:

test_path = './mvtec/' + _class_

In line 144 the standard string when using the provided main.py should be:

ckp_path = './checkpoints/' + 'wres50_'+_class_+'.pth'

At last in line 356 the type should be changed from np.bool to bool:

binary_amaps = np.zeros_like(amaps, dtype=bool)

Thanks for your work. I hope this helps some people searching for the source of some errors when running the program.

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

No branches or pull requests

1 participant