MCPcopy
hub / github.com/facefusion/facefusion / create_static_model_set

Function create_static_model_set

facefusion/face_detector.py:17–120  ·  view source on GitHub ↗
(download_scope : DownloadScope)

Source from the content-addressed store, hash-verified

15
16@lru_cache()
17def create_static_model_set(download_scope : DownloadScope) -> ModelSet:
18 return\
19 {
20 'retinaface':
21 {
22 '__metadata__':
23 {
24 'vendor': 'InsightFace',
25 'license': 'Non-Commercial',
26 'year': 2020
27 },
28 'hashes':
29 {
30 'retinaface':
31 {
32 'url': resolve_download_url('models-3.0.0', 'retinaface_10g.hash'),
33 'path': resolve_relative_path('../.assets/models/retinaface_10g.hash')
34 }
35 },
36 'sources':
37 {
38 'retinaface':
39 {
40 'url': resolve_download_url('models-3.0.0', 'retinaface_10g.onnx'),
41 'path': resolve_relative_path('../.assets/models/retinaface_10g.onnx')
42 }
43 }
44 },
45 'scrfd':
46 {
47 '__metadata__':
48 {
49 'vendor': 'InsightFace',
50 'license': 'Non-Commercial',
51 'year': 2021
52 },
53 'hashes':
54 {
55 'scrfd':
56 {
57 'url': resolve_download_url('models-3.0.0', 'scrfd_2.5g.hash'),
58 'path': resolve_relative_path('../.assets/models/scrfd_2.5g.hash')
59 }
60 },
61 'sources':
62 {
63 'scrfd':
64 {
65 'url': resolve_download_url('models-3.0.0', 'scrfd_2.5g.onnx'),
66 'path': resolve_relative_path('../.assets/models/scrfd_2.5g.onnx')
67 }
68 }
69 },
70 'yolo_face':
71 {
72 '__metadata__':
73 {
74 'vendor': 'derronqi',

Callers 1

collect_model_downloadsFunction · 0.70

Calls 2

resolve_download_urlFunction · 0.90
resolve_relative_pathFunction · 0.90

Tested by

no test coverage detected