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

Function create_static_model_set

facefusion/face_masker.py:16–149  ·  view source on GitHub ↗
(download_scope : DownloadScope)

Source from the content-addressed store, hash-verified

14
15@lru_cache()
16def create_static_model_set(download_scope : DownloadScope) -> ModelSet:
17 return\
18 {
19 'xseg_1':
20 {
21 '__metadata__':
22 {
23 'vendor': 'DeepFaceLab',
24 'license': 'GPL-3.0',
25 'year': 2021
26 },
27 'hashes':
28 {
29 'face_occluder':
30 {
31 'url': resolve_download_url('models-3.1.0', 'xseg_1.hash'),
32 'path': resolve_relative_path('../.assets/models/xseg_1.hash')
33 }
34 },
35 'sources':
36 {
37 'face_occluder':
38 {
39 'url': resolve_download_url('models-3.1.0', 'xseg_1.onnx'),
40 'path': resolve_relative_path('../.assets/models/xseg_1.onnx')
41 }
42 },
43 'size': (256, 256)
44 },
45 'xseg_2':
46 {
47 '__metadata__':
48 {
49 'vendor': 'DeepFaceLab',
50 'license': 'GPL-3.0',
51 'year': 2021
52 },
53 'hashes':
54 {
55 'face_occluder':
56 {
57 'url': resolve_download_url('models-3.1.0', 'xseg_2.hash'),
58 'path': resolve_relative_path('../.assets/models/xseg_2.hash')
59 }
60 },
61 'sources':
62 {
63 'face_occluder':
64 {
65 'url': resolve_download_url('models-3.1.0', 'xseg_2.onnx'),
66 'path': resolve_relative_path('../.assets/models/xseg_2.onnx')
67 }
68 },
69 'size': (256, 256)
70 },
71 'xseg_3':
72 {
73 '__metadata__':

Callers 3

collect_model_downloadsFunction · 0.70
create_occlusion_maskFunction · 0.70
create_region_maskFunction · 0.70

Calls 2

resolve_download_urlFunction · 0.90
resolve_relative_pathFunction · 0.90

Tested by

no test coverage detected