Mowshon commited on
Commit
c5a7df1
·
verified ·
1 Parent(s): 0ddd69e

Add files using upload-large-folder tool

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ docs/LVFace.png filter=lfs diff=lfs merge=lfs -text
37
+ docs/MFR.png filter=lfs diff=lfs merge=lfs -text
LICENSE_CODE.txt ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2025 ByteDance Ltd. and/or its affiliates
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
LVFace-B_Glint360K/LVFace-B_Glint360K.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d834ed8e927fd35b9123b2bf97c40aad05785b1f9ecfb1c4c1f6242d38d1382
3
+ size 455533594
LVFace-L_Glint360K/LVFace-L_Glint360K.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49389036a4a5b69e0efcddfe34839ac72c7a71ce6b4dc1b6821e2ac368c87063
3
+ size 1022938188
LVFace-S_Glint360K/LVFace-S_Glint360K.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd09f27c82ce0a3633fb8b1966d779a7171b23aa4f14ca0de6edf9677573d119
3
+ size 304196926
LVFace-T_Glint360K/LVFace-T_Glint360K.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf8da0e1e93c432d9a1d874a9ba0990f5859f970e8864b3990f2f33d11f9cdb3
3
+ size 76653813
README.md ADDED
@@ -0,0 +1,113 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: lvface
5
+ pipeline_tag: image-feature-extraction
6
+ pretty_name: LVFace ONNX Weights for Python
7
+ license: other
8
+ tags:
9
+ - face-recognition
10
+ - face-embedding
11
+ - onnx
12
+ - lvface
13
+ ---
14
+
15
+ # LVFace ONNX Weights for Python
16
+
17
+ This repository is a preservation mirror of the released LVFace ONNX embedding weights for use
18
+ with the [`lvface`](https://github.com/mowshon/lvface) Python
19
+ package.
20
+
21
+ It is not the official LVFace model repository and is not affiliated with or endorsed by
22
+ ByteDance. The models were created by the LVFace authors and were obtained from the official
23
+ [`bytedance-research/LVFace`](https://huggingface.co/bytedance-research/LVFace) repository at
24
+ revision [`b12702ab1f5c721748e054a66dc90e1edd1f0724`](https://huggingface.co/bytedance-research/LVFace/tree/b12702ab1f5c721748e054a66dc90e1edd1f0724).
25
+ The files are mirrored without modification.
26
+
27
+ ## Files
28
+
29
+ | Model | Repository path | Size | SHA-256 |
30
+ |---|---|---:|---|
31
+ | LVFace-T Glint360K | `LVFace-T_Glint360K/LVFace-T_Glint360K.onnx` | 76,653,813 bytes | `bf8da0e1e93c432d9a1d874a9ba0990f5859f970e8864b3990f2f33d11f9cdb3` |
32
+ | LVFace-S Glint360K | `LVFace-S_Glint360K/LVFace-S_Glint360K.onnx` | 304,196,926 bytes | `cd09f27c82ce0a3633fb8b1966d779a7171b23aa4f14ca0de6edf9677573d119` |
33
+ | LVFace-B Glint360K | `LVFace-B_Glint360K/LVFace-B_Glint360K.onnx` | 455,533,594 bytes | `9d834ed8e927fd35b9123b2bf97c40aad05785b1f9ecfb1c4c1f6242d38d1382` |
34
+ | LVFace-L Glint360K | `LVFace-L_Glint360K/LVFace-L_Glint360K.onnx` | 1,022,938,188 bytes | `49389036a4a5b69e0efcddfe34839ac72c7a71ce6b4dc1b6821e2ac368c87063` |
35
+
36
+ Only the ONNX weights required by the Python package are mirrored here. PyTorch checkpoints,
37
+ evaluation outputs, and training code are not part of this repository.
38
+
39
+ ## Use with the Python package
40
+
41
+ Install LVFace with Hugging Face download support:
42
+
43
+ ```bash
44
+ python -m pip install "lvface[hub]"
45
+ ```
46
+
47
+ The package resolves a model name to a revision-pinned ONNX file, verifies its size and SHA-256,
48
+ and reuses the local Hugging Face cache on subsequent calls:
49
+
50
+ ```python
51
+ from lvface import FaceRecognizer
52
+
53
+ recognizer = FaceRecognizer("LVFace-T_Glint360K")
54
+ embedding = recognizer.embed("portrait.jpg")
55
+ ```
56
+
57
+ The package registry must reference this repository's Hugging Face repository ID and a pinned
58
+ commit revision. Do not use `main` as the production revision.
59
+
60
+ ## Direct download
61
+
62
+ ```python
63
+ from huggingface_hub import hf_hub_download
64
+
65
+ path = hf_hub_download(
66
+ repo_id="Mowshon/lvface-weights",
67
+ subfolder="LVFace-T_Glint360K",
68
+ filename="LVFace-T_Glint360K.onnx",
69
+ revision="PINNED_COMMIT_SHA",
70
+ )
71
+ ```
72
+
73
+ Replace the placeholder repository ID and revision above after creating the mirror.
74
+
75
+ ## Provenance and integrity
76
+
77
+ The checksums in the file table match the Git LFS SHA-256 values published by the official
78
+ repository at the source revision. Consumers should pin this mirror to an immutable commit and
79
+ validate both file size and SHA-256 before loading a model.
80
+
81
+ ## License
82
+
83
+ The upstream repository contains conflicting license statements. Its model-card metadata labels
84
+ the repository as MIT and it includes an MIT license for code, while the prose states that the
85
+ downloaded models are for non-commercial research purposes only.
86
+
87
+ This mirror does not resolve that conflict and does not grant any additional rights. Users and
88
+ redistributors must review the
89
+ [official model card](https://huggingface.co/bytedance-research/LVFace/blob/main/README.md#license)
90
+ and obtain clarification or permission from the LVFace authors when needed. `LICENSE_CODE.txt`
91
+ applies to upstream code and must not be interpreted as a separate license grant for the model
92
+ weights.
93
+
94
+ ## Required citation
95
+
96
+ Use of these weights must include citation of the original LVFace work:
97
+
98
+ ```bibtex
99
+ @inproceedings{you2025lvface,
100
+ title={{LVFace}: Progressive Cluster Optimization for Large Vision Models in Face Recognition},
101
+ author={You, Jinghan and Li, Shanglin and Sun, Yuanrui and Wei, Jiangchuan and Guo, Mingyu and Feng, Chao and Ran, Jiao},
102
+ booktitle={ICCV},
103
+ year={2025}
104
+ }
105
+ ```
106
+
107
+ Paper: [arXiv:2501.13420](https://arxiv.org/abs/2501.13420)
108
+
109
+ ## Original resources
110
+
111
+ - [Official LVFace model repository](https://huggingface.co/bytedance-research/LVFace)
112
+ - [Official LVFace source repository](https://github.com/bytedance/LVFace)
113
+ - [LVFace paper](https://arxiv.org/abs/2501.13420)