| Algorithm 1: Proposed computational TTA approach on the test sample images. | 
| Input: The Pre-trained Model is defined as ‘M’ on in-distribution data. The augmented terminology is denoted as ‘A’. The test samples set of images data ; which contains in-distribution data and out-distribution data combinedly. Output: Predicted samples with distributed mean score as ), ), ), …, ); 1: Begin 2: For loop is executed: i = 1 to n do 3: Data augmentation for each input sample set, = }; 4: Converted to horizontal flip (HF) with M to obtain respectively. Similarly, vertical flip (VF) is generated for each sample to ; 5: Feed to into model M, continuously calculate through forward passes; 6: Mean result, ; 7: end for 8: End |