Coverage for src/bob/bio/video/config/database/youtube.py: 0%

8 statements  

« prev     ^ index     » next       coverage.py v7.6.5, created at 2024-11-14 22:56 +0100

1from functools import partial 

2 

3from bob.bio.video.database import YoutubeDatabase 

4from bob.bio.video.utils import select_frames 

5 

6# Defining frame selection bit 

7# If you want to customize this, please, create a new config file and do 

8# bob bio pipeline simple `my-new-config-file.py` `baseline`...... 

9selection_style = "first" 

10max_number_of_frames = None 

11step_size = None 

12 

13 

14frame_selector = partial( 

15 select_frames, 

16 max_number_of_frames=max_number_of_frames, 

17 selection_style=selection_style, 

18 step_size=step_size, 

19) 

20 

21 

22database = YoutubeDatabase(protocol="fold0", frame_selector=frame_selector)