Skip to content

Commit ce3600a

Browse files
committed
a big tree refine
1 parent 5ca3f99 commit ce3600a

File tree

167 files changed

+3747
-16144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+3747
-16144
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,5 @@ ENV/
9999

100100
# mypy
101101
.mypy_cache/
102+
103+
.DS_Store

README.md

Lines changed: 83 additions & 234 deletions
Large diffs are not rendered by default.

alignment/README.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,42 @@
1-
You can now find heatmap based approaches under ``heatmapReg`` directory.
1+
## Face Alignment
2+
3+
4+
<div align="left">
5+
<img src="https://insightface.ai/assets/img/custom/logo3.jpg" width="240"/>
6+
</div>
7+
8+
9+
## Introduction
10+
11+
These are the face alignment methods of [InsightFace](https://insightface.ai)
12+
13+
14+
<div align="left">
15+
<img src="https://insightface.ai/assets/img/custom/thumb_sdunet.png" width="600"/>
16+
</div>
17+
18+
19+
### Datasets
20+
21+
Please refer to [datasets](_datasets_) page for the details of face alignment datasets used for training and evaluation.
22+
23+
### Evaluation
24+
25+
Please refer to [evaluation](_evaluation_) page for the details of face alignment evaluation.
26+
27+
28+
## Methods
29+
30+
31+
Supported methods:
32+
33+
- [x] [SDUNets (BMVC'2018)](heatmap)
34+
- [x] [SimpleRegression](coordinate_reg)
35+
36+
37+
38+
## Contributing
39+
40+
We appreciate all contributions to improve the face alignment model zoo of InsightFace.
241

3-
You can now find coordinate regression approaches under ``coordinateReg`` directory.
442

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

attribute/README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## Face Alignment
2+
3+
4+
<div align="left">
5+
<img src="https://insightface.ai/assets/img/custom/logo3.jpg" width="320"/>
6+
</div>
7+
8+
9+
## Introduction
10+
11+
These are the face attribute methods of [InsightFace](https://insightface.ai)
12+
13+
14+
<div align="left">
15+
<img src="https://insightface.ai/assets/img/github/t1_genderage.jpg" width="600"/>
16+
</div>
17+
18+
19+
### Datasets
20+
21+
Please refer to [datasets](_datasets_) page for the details of face attribute datasets used for training and evaluation.
22+
23+
### Evaluation
24+
25+
Please refer to [evaluation](_evaluation_) page for the details of face attribute evaluation.
26+
27+
28+
## Methods
29+
30+
31+
Supported methods:
32+
33+
- [x] [Gender_Age](gender_age)
34+
35+
36+
37+
## Contributing
38+
39+
We appreciate all contributions to improve the face attribute model zoo of InsightFace.
40+
41+

deploy/test.py renamed to attribute/gender_age/test.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@
44
import numpy as np
55
import insightface
66
from insightface.app import FaceAnalysis
7+
from insightface.data import get_image as ins_get_image
78

8-
assert insightface.__version__>='0.2'
99

10-
parser = argparse.ArgumentParser(description='insightface test')
10+
parser = argparse.ArgumentParser(description='insightface gender-age test')
1111
# general
1212
parser.add_argument('--ctx', default=0, type=int, help='ctx id, <0 means using cpu')
1313
args = parser.parse_args()
1414

15-
app = FaceAnalysis(name='antelope')
15+
app = FaceAnalysis(allowed_modules=['detection', 'genderage'])
1616
app.prepare(ctx_id=args.ctx, det_size=(640,640))
1717

18-
img = cv2.imread('../sample-images/t1.jpg')
18+
img = ins_get_image('t1')
1919
faces = app.get(img)
2020
assert len(faces)==6
21-
rimg = app.draw_on(img, faces)
22-
cv2.imwrite("./t1_output.jpg", rimg)
23-
print(len(faces))
2421
for face in faces:
2522
print(face.bbox)
26-
print(face.kps)
27-
print(face.embedding.shape)
23+
print(face.sex, face.age)
2824

challenges/README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Challenges
2+
3+
4+
<div align="left">
5+
<img src="https://insightface.ai/assets/img/custom/logo3.jpg" width="240"/>
6+
</div>
7+
8+
9+
## Introduction
10+
11+
These are challenges hold by [InsightFace](https://insightface.ai)
12+
13+
14+
<div align="left">
15+
<img src="https://insightface.ai/assets/img/custom/thumb_ifrt.png" width="480"/>
16+
</div>
17+
18+
19+
20+
## List
21+
22+
23+
Supported methods:
24+
25+
- [LFR19 (ICCVW'2019)](iccv19-lfr)
26+
- [MFR21 (ICCVW'2021)](iccv21-mfr)
27+
- [IFRT](ifrt)
28+
29+
30+
31+

challenges/iccv19-lfr/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ [email protected]
3131

3232
*For Chinese:*
3333

34-
![wechat](https://github.com/deepinsight/insightface/blob/master/resources/lfr19_wechat1.jpg)
34+
![wechat](https://insightface.ai/assets/img/github/lfr19_wechat1.jpg)
3535

3636
*For English:*
3737

deploy/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

deploy/convert_onnx.py

Lines changed: 0 additions & 40 deletions
This file was deleted.

deploy/face_model.py

Lines changed: 0 additions & 67 deletions
This file was deleted.

deploy/model_slim.py

Lines changed: 0 additions & 32 deletions
This file was deleted.

deploy/mtcnn-model/det1-0001.params

-26.6 KB
Binary file not shown.

0 commit comments

Comments
 (0)