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

add multi-pass inference code #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

saum7800
Copy link

@saum7800 saum7800 commented Jul 9, 2023

The code changes facilitate multi-pass inference: passing an image with the one hot labels encoded into the image in a different pixel each time and choosing the predicted label as the image that yielded maximum sum of squared activations.

  • changed data loading to also load samples of images with each image having the label encoded in a different pixel (from first 10 pixels)
  • added function to compute the multi-pass inference label
  • added code in main.py to run the new inference during validate_or_test
  • added a config variable to run the code without needing to do this inference

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 this pull request may close these issues.

1 participant