Coverage for src/bob/bio/face/config/baseline/mobile_facenet.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.0, created at 2024-07-13 00:04 +0200

1from bob.bio.face.embeddings.pytorch import MobileFaceNet 

2from bob.bio.face.utils import lookup_config_from_database 

3 

4( 

5 annotation_type, 

6 fixed_positions, 

7 memory_demanding, 

8) = lookup_config_from_database(locals().get("database")) 

9 

10 

11def load(annotation_type, fixed_positions=None, memory_demanding=False): 

12 return MobileFaceNet(annotation_type, fixed_positions, memory_demanding) 

13 

14 

15pipeline = load(annotation_type, fixed_positions, memory_demanding) 

16 

17transformer = pipeline.transformer 

18transformer = pipeline.transformer