Out-of-Distribution Detection with Semantic Mismatch under Masking