Vibe coded benchmark command part3
This commit is contained in:
@@ -100,6 +100,16 @@ LogLevelSet : TypeAlias = Dict[LogLevel, int]
|
||||
TableHeaders = List[str]
|
||||
TableContents = List[List[Any]]
|
||||
|
||||
BenchmarkSet = TypedDict('BenchmarkSet',
|
||||
{
|
||||
'target_path' : str,
|
||||
'benchmark_cycles' : int,
|
||||
'average_run' : float,
|
||||
'fastest_run' : float,
|
||||
'slowest_run' : float,
|
||||
'relative_fps' : float
|
||||
})
|
||||
|
||||
FaceDetectorModel = Literal['many', 'retinaface', 'scrfd', 'yolo_face']
|
||||
FaceLandmarkerModel = Literal['many', '2dfan4', 'peppa_wutz']
|
||||
FaceDetectorSet : TypeAlias = Dict[FaceDetectorModel, List[str]]
|
||||
|
||||
@@ -56,4 +56,5 @@ def start(benchmark_resolutions : List[str], benchmark_cycles : int) -> Generato
|
||||
state_manager.sync_item('execution_thread_count')
|
||||
state_manager.sync_item('execution_queue_count')
|
||||
|
||||
yield from benchmarker.run()
|
||||
for benchmarks in benchmarker.run_with_progress():
|
||||
yield [ list(benchmark.values()) for benchmark in benchmarks ]
|
||||
|
||||
Reference in New Issue
Block a user