anomaly
            _initialize_patchcore_model(patchcore_model, coreset_sampling_ratio=0.1)
¶
    Initialize a Patchcore model by simulating a training step.
Parameters:
- 
            
patchcore_model(PatchcoreModel) –Patchcore model to initialize
 - 
            
coreset_sampling_ratio(float, default:0.1) –Coreset sampling ratio to use for the initialization
 
Returns:
- 
              
PatchcoreModel–Patchcore model with initialized memory bank
 
Source code in quadra/utils/tests/fixtures/models/anomaly.py
              22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51  |  | 
            draem()
¶
    Yield a draem model.
Source code in quadra/utils/tests/fixtures/models/anomaly.py
              67 68 69 70  |  | 
            efficient_ad_small()
¶
    Yield a draem model.
Source code in quadra/utils/tests/fixtures/models/anomaly.py
              73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89  |  | 
            padim_resnet18()
¶
    Yield a padim model with resnet18 encoder.
Source code in quadra/utils/tests/fixtures/models/anomaly.py
              9 10 11 12 13 14 15 16 17 18 19  |  | 
            patchcore_resnet18()
¶
    Yield a patchcore model with resnet18 encoder.
Source code in quadra/utils/tests/fixtures/models/anomaly.py
              54 55 56 57 58 59 60 61 62 63 64  |  |