-
Notifications
You must be signed in to change notification settings - Fork 202
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
Robust segvit compatibility + new dataset. #1183
base: main
Are you sure you want to change the base?
Conversation
…es for 10 train samples for 1 epoch
… update segmenter_test to test different classifiers
…baselines into load_check merging ub which now includes segmenter
merge changes in ub
…terministic and sngp weights
# pytype: enable=wrong-arg-types | ||
|
||
# free memory | ||
del restored_params |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be deleted anyway when the function returns on the next line, so I don't think we need to explicitly delete it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
from uncertainty_metrics import SegmentationUncertaintyMetrics # local file import from experimental.robust_segvit | ||
|
||
|
||
class UncertaintyMetricsTest(parameterized.TestCase): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about updating these tests instead of deleting them?
|
||
# TODO(kellybuchanan): add masking to ece metric in rm. | ||
# updates on each host separately | ||
ece_metric.update_state(e_batch['label'], probs, sample_weight=e_batch['batch_mask']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the comment in google-research/robustness_metrics#77, can we move the binary masking logic here such that we pass in a masked subset of labels and probs as needed without changing the ECE metric API?
…of corruption_level
… eval toy config file
… not support negative values
This commit makes the code in robust_segvit compatible externally and adds config files to experiment with a benchmark for open set recognition in image segmentation, namely the street hazards dataset from https://arxiv.org/abs/1911.11132.