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

Code to Compute the Forward Threshold #1

Closed
superctj opened this issue Jan 24, 2022 · 3 comments
Closed

Code to Compute the Forward Threshold #1

superctj opened this issue Jan 24, 2022 · 3 comments

Comments

@superctj
Copy link

Thank you for open-sourcing the code of this great work! I was wondering if you could also release the code that computes the threshold based on p-th percentile activation.

@sunyiyou
Copy link
Collaborator

sunyiyou commented Jan 24, 2022

Thanks for your interest in our work! I will update the code in a few days. Feel free to remind me if I forgot afterwards!

The code is also quite simple to write if you are willing to. Just collect all the activation values in the penultimate layers of ImageNet and use the NumPy percentile library.

@sunyiyou
Copy link
Collaborator

Hi there, I have updated the repo. Simply running
python compute_threshold.py
should work

@superctj
Copy link
Author

Thank you, Yiyou! Happy Chinese New Year!

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

2 participants