(download_scope : DownloadScope)
| 14 | |
| 15 | @lru_cache() |
| 16 | def 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__': |
no test coverage detected