Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EFRS-1114: Google Coral Support for FaceNet - Updated (1.2.0) #1198

Open
wants to merge 931 commits into
base: EFRS-1114
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
931 commits
Select commit Hold shift + click to select a range
26bdd8c
Update Build-Deploy-auto.yml
ashutau Nov 7, 2022
d2623fd
EFRS-1286: Added changes to the expiration column change set in order…
VolodymyrBushko Nov 7, 2022
4b503c9
Update Build-Deploy-auto.yml
ashutau Nov 7, 2022
e7407ee
EFRS-1286: Set the zone offset to UTC for the token expiration date b…
VolodymyrBushko Nov 7, 2022
e3c43de
Update Build-Deploy-auto.yml
ashutau Nov 7, 2022
9eda122
Update Build-Deploy-auto.yml
ashutau Nov 7, 2022
08ed9ee
Create Deploy-qa-demo-manual.yml
ashutau Nov 7, 2022
fea35bf
Update Deploy-qa-demo-manual.yml
ashutau Nov 7, 2022
bb7c077
EFRS-1286: Added a custom change in order to set expiration date for …
VolodymyrBushko Nov 7, 2022
12a6a9d
create images with certain tags
ashutau Nov 8, 2022
bf99110
update build/deploy action from master
ashutau Nov 8, 2022
25e30cd
EFRS-1286: Fixed token expiration calculation
VolodymyrBushko Nov 8, 2022
ac79bcd
EFRS-1286: Changed an expiration date format from Date to Timestamp
VolodymyrBushko Nov 8, 2022
c3e5439
EFRS-1286: Fixed tests
VolodymyrBushko Nov 8, 2022
b997c46
Merge pull request #937 from exadel-inc/EFRS-1316_remove_special_char…
VolodymyrBushko Nov 8, 2022
2099962
Merge pull request #942 from exadel-inc/1.1.x
pospielov Nov 8, 2022
58ad870
Merged the master branch into the EFRS-1286_the_ability_to_delete_exp…
VolodymyrBushko Nov 8, 2022
3b183f1
Merge pull request #941 from exadel-inc/EFRS-1286_the_ability_to_dele…
VolodymyrBushko Nov 8, 2022
fac72f9
EFRS-1336 Add action for Maven unit tests
ashutau Nov 9, 2022
3b436d0
Update unit-tests-on-maven.yml
ashutau Nov 9, 2022
df78087
Update unit-tests-on-maven.yml
ashutau Nov 9, 2022
2198c03
Update unit-tests-on-maven.yml
ashutau Nov 9, 2022
f682e64
EFRS-1333: Implemented the ability to conduct recognition using embed…
VolodymyrBushko Nov 9, 2022
ab4fa56
Revert "EFRS-1333: Implemented the ability to conduct recognition usi…
VolodymyrBushko Nov 9, 2022
806daf8
EFRS-1333: Rewrote the ability to conduct recognition using embeddings
VolodymyrBushko Nov 9, 2022
475f750
EFRS-1333: Implemented the ability to conduct verification using embe…
VolodymyrBushko Nov 10, 2022
130ff41
EFRS-1333: Implemented the ability to verify embedding by id with oth…
VolodymyrBushko Nov 10, 2022
4d1c2d9
EFRS-1341: Changed registration logic. The first user to confirm thei…
VolodymyrBushko Nov 10, 2022
3754d53
EFRS-1333: Added tests
VolodymyrBushko Nov 11, 2022
dc7cb98
EFRS-1341: Removed the user table lock, added thread synchronization …
VolodymyrBushko Nov 11, 2022
1280973
updated version name 1.1.0
Nov 11, 2022
7dd0de0
EFRS-1333: Added the REST API descriptions for endpoints that use emb…
VolodymyrBushko Nov 11, 2022
0de01eb
EFRS-1333: Changed REST API docs due to change requests
VolodymyrBushko Nov 13, 2022
1bcbd68
EFRS-1333: Added maven-surefire-plugin and configured it to use UTC a…
VolodymyrBushko Nov 14, 2022
f10db06
EFRS-1333: Fixed tests
VolodymyrBushko Nov 14, 2022
e60fc42
EFRS-1337: Migrated Java to 17
VolodymyrBushko Nov 14, 2022
fd96df0
Merge pull request #949 from exadel-inc/EFRS-1341_owner_user_bug
VolodymyrBushko Nov 15, 2022
63032ad
EFRS-1337: Migrated Dockerfile from Java 11 to Java 17
VolodymyrBushko Nov 15, 2022
0a63d4b
EFRS-1337: Updated the custom-builds
VolodymyrBushko Nov 16, 2022
0be5e37
EFRS-1343: Mocked test dependencies that rely on a local database
VolodymyrBushko Nov 16, 2022
b0138b2
Revert "EFRS-1343: Mocked test dependencies that rely on a local data…
VolodymyrBushko Nov 16, 2022
ae5fd22
EFRS-1343: Mocked test dependencies that rely on a local database
VolodymyrBushko Nov 16, 2022
5044d70
EFRS-1334: Optimized models retrieval
VolodymyrBushko Nov 16, 2022
5d5ea4a
EFRS-1336 update to java17
ashutau Nov 17, 2022
81dbf3e
EFRS-1333: Changed REST API docs due to change requests
VolodymyrBushko Nov 17, 2022
8659ab0
EFRS-1337: Changed Dockerfile to use eclipse-temurin as base layer fo…
VolodymyrBushko Nov 17, 2022
4426eb9
Merge pull request #952 from exadel-inc/EFRS-1343_tests_depend_on_a_l…
VolodymyrBushko Nov 17, 2022
449e547
EFRS-1337: Replaced eclipse-temurin:17-jre-ubi9-minimal with eclipse-…
VolodymyrBushko Nov 17, 2022
b695c2c
Merge remote-tracking branch 'origin/EFRS-1337_migrate_to_java_17' in…
VolodymyrBushko Nov 17, 2022
1d9d59e
Merge pull request #951 from exadel-inc/EFRS-1337_migrate_to_java_17
VolodymyrBushko Nov 17, 2022
6587d34
Merge pull request #948 from exadel-inc/EFRS-1333_ability_to_send_emb…
VolodymyrBushko Nov 17, 2022
c3a82ac
Merge pull request #945 from exadel-inc/EFRS-1336-action-unit-tests-m…
ashutau Nov 17, 2022
03be452
EFRS-1334: Fixed tests
VolodymyrBushko Nov 18, 2022
f839e34
Merge pull request #954 from exadel-inc/EFRS-1334_optimize_models_ret…
VolodymyrBushko Nov 21, 2022
9f2fc31
EFRS-1337: Changed the docker java image tag to 17-jre-focal
VolodymyrBushko Nov 24, 2022
d84d783
Merge pull request #963 from exadel-inc/EFRS-1337_change_docker_java_…
VolodymyrBushko Nov 24, 2022
2e5c6e9
Publish CompreFace VM image to Azure Marketplace
ashutau Nov 30, 2022
76b6ae3
update action
ashutau Nov 30, 2022
70cd766
Merge pull request #973 from exadel-inc/EFRS-1344-cf-to-amarketplace
ashutau Nov 30, 2022
0b94be1
Update Azure-Compreface-AIB-image.yml
ashutau Nov 30, 2022
8867b25
Update Azure-Compreface-AIB-image.yml
ashutau Nov 30, 2022
bc9698b
Update Azure-Compreface-AIB-image.yml
ashutau Nov 30, 2022
8742b98
retriving single model when accesing model info (#974)
smchedlidze826 Dec 1, 2022
1fdbbf4
Update Azure-Compreface-AIB-image.yml
ashutau Dec 1, 2022
21b1e2d
Update Azure-Compreface-AIB-image.yml
ashutau Dec 1, 2022
a4c7f5d
fix for python build
pospielov Nov 30, 2022
f09fa2a
Update Azure-Compreface-AIB-image.yml
ashutau Dec 1, 2022
a8d674c
EFRS-1342: Fixed the email message related problems
VolodymyrBushko Dec 1, 2022
e871237
EFRS-1349: Added the liquibase migration to drop dangling DB tables (…
VolodymyrBushko Dec 2, 2022
d30eb32
EFRS-1350: Cleaned up the source code
VolodymyrBushko Dec 2, 2022
3c94c04
EFRS-1350: Cleaned up the tests
VolodymyrBushko Dec 2, 2022
6311724
EFRS-1350: Refactored code to fit Java 17
VolodymyrBushko Dec 2, 2022
e3c2f29
EFRS-1350: Refactored repositories to fit Java 17
VolodymyrBushko Dec 5, 2022
8a681cf
EFRS-1082: Added max_detect_size variable
aianko Dec 5, 2022
b51fa70
fix typo
aianko Dec 5, 2022
2572c40
updating libraries
aianko Dec 5, 2022
bd08aca
EFRS-1348: Added the Liquibase migration to drop Quartz DB tables
VolodymyrBushko Dec 5, 2022
d2c8ac6
EFRS-1348: Added StatisticService in order to collect/send statistics
VolodymyrBushko Dec 6, 2022
c7d2b28
EFRS-1348: Removed the statistics Quartz config and job
VolodymyrBushko Dec 6, 2022
ff013ed
EFRS-1348: Removed Quartz
VolodymyrBushko Dec 6, 2022
1d44cc0
EFRS-1348: Added tests for StatisticService
VolodymyrBushko Dec 6, 2022
79c79e9
Merge pull request #985 from exadel-inc/EFRS-1350_clean_the_project
VolodymyrBushko Dec 6, 2022
6e2fb53
Merge branch 'master' into EFRS-1342_link_is_not_a_link
VolodymyrBushko Dec 6, 2022
67e3ca7
Merge pull request #976 from exadel-inc/EFRS-1342_link_is_not_a_link
VolodymyrBushko Dec 6, 2022
ba1c464
Merge pull request #977 from exadel-inc/EFRS-1349_remove_face_and_ima…
VolodymyrBushko Dec 6, 2022
df4600f
EFRS-1348: Changed a Liquibase changelog order to avoid conflicts
VolodymyrBushko Dec 6, 2022
2b8b74e
Merge branch 'master' into EFRS-1348_remove_quartz
VolodymyrBushko Dec 6, 2022
05a0b67
EFRS-1348: Fixed conflicts
VolodymyrBushko Dec 6, 2022
8fb5576
Added k6 load tests
VolodymyrBushko Dec 7, 2022
f151226
Changed FACE_3 to a new one
VolodymyrBushko Dec 8, 2022
1e2dca3
Merge pull request #991 from exadel-inc/k6_load_tests
VolodymyrBushko Dec 8, 2022
75f21f6
EFRS-1350: Fixed the Liquibase migration
VolodymyrBushko Dec 8, 2022
08c63de
Merge pull request #992 from exadel-inc/EFRS-1350_fix_liquibase_chang…
VolodymyrBushko Dec 8, 2022
2806b55
Merge pull request #989 from exadel-inc/EFRS-1348_remove_quartz
VolodymyrBushko Dec 8, 2022
df5d255
Merge pull request #988 from exadel-inc/EFRS-1351-Fix-security-issues…
aianko Dec 13, 2022
bcdca09
Merge pull request #987 from exadel-inc/EFRS-1082-Add-to-env-max-dete…
aianko Dec 13, 2022
74bc716
EFRS-1345 Add Load Tests Grafana dashboards (by Group)
ashutau Dec 14, 2022
102b085
EFRS-1345 Add gh action for load tests
ashutau Dec 14, 2022
e7734da
register forkflow
ashutau Dec 14, 2022
c19ad95
fix tests hostname protocol
ashutau Dec 14, 2022
555b840
clean up
ashutau Dec 14, 2022
9a13905
Merge pull request #994 from exadel-inc/EFRS-1345-gha-load-tests
ashutau Dec 14, 2022
02952e3
Fixed k6 load tests
VolodymyrBushko Dec 15, 2022
690cbca
Merge pull request #996 from exadel-inc/fix_6k_tests
VolodymyrBushko Dec 15, 2022
4403637
Merge pull request #995 from exadel-inc/EFRS-1345-load-tests
ashutau Dec 16, 2022
43d9ed8
Fixed k6 load tests
VolodymyrBushko Dec 16, 2022
dc36126
Update Azure-Compreface-AIB-image.yml
ashutau Dec 16, 2022
c5b06ac
Merge pull request #998 from exadel-inc/Fixed_k6_load_tests
VolodymyrBushko Dec 17, 2022
a851c54
EFRS-1305 added responsive design for manage users windows (#1002)
smchedlidze826 Dec 21, 2022
6bef878
EFRS-1323 scroll added on demo page when user zoomes inthe page (#1007)
smchedlidze826 Jan 2, 2023
483f3e4
Update Build-Deploy-auto.yml
ashutau Jan 18, 2023
4a535c0
Update Build-Deploy-auto.yml
ashutau Jan 18, 2023
7b687bf
skip face detection
aianko Jan 11, 2023
b9a09bb
skip face detection for insightface
aianko Jan 19, 2023
3ca833b
EFRS-1278: Added a detectFaces param to the recognition controller an…
VolodymyrBushko Dec 15, 2022
1236ea3
Update libraries to versions with arm64 wheels
NHellFire Jan 22, 2023
ca56238
Build imagecodecs from source (no arm64 wheels available)
NHellFire Jan 22, 2023
307d923
Update imagecodecs so it can find openjpeg 2.4
NHellFire Jan 22, 2023
43b4953
Update tensorflow so we have arm64 wheels
NHellFire Jan 23, 2023
d87f4d2
EFRS-1357 Update nginx ssl config with templates
ashutau Jan 23, 2023
8cd63cd
Merge pull request #1019 from exadel-inc/EFRS-1357-nginx-ssl-template
ashutau Jan 23, 2023
bd79716
Update bug_report.md
pospielov Feb 2, 2023
8e2725d
Merge pull request #1018 from NHellFire/feature/arm64
pospielov Feb 6, 2023
a3af9a3
EFRS-1045 Add multiplatform compose file
ashutau Feb 15, 2023
092f86a
check wf branch
ashutau Feb 15, 2023
28112bd
test multip build
ashutau Feb 15, 2023
472b6cf
Update Release-default.yml
ashutau Feb 15, 2023
aa2f9cc
Update Release-default.yml
ashutau Feb 15, 2023
d1c79e3
Update Release-default.yml
ashutau Feb 15, 2023
e1af42a
Update Release-default.yml
ashutau Feb 15, 2023
f8c83f1
Update Release-default.yml
ashutau Feb 15, 2023
1b09e4e
Update Release-default.yml
ashutau Feb 15, 2023
c42b52e
Update Release-default.yml
ashutau Feb 15, 2023
e5cf3d8
Update Release-default.yml
ashutau Feb 15, 2023
961fca3
update gha
ashutau Feb 15, 2023
9f17e72
clean up
ashutau Feb 15, 2023
febb7c7
Merge pull request #1012 from exadel-inc/EFRS-1278-Add-ability-to-ski…
pospielov Feb 16, 2023
21b82b1
Merge pull request #1030 from exadel-inc/platform-arm64
ashutau Feb 21, 2023
bcf412c
Close the JDWP debug port by default
ashutau Feb 23, 2023
9863e5c
Merge pull request #1032 from exadel-inc/disable-debug
ashutau Feb 24, 2023
48bc2e7
added server status check before displaying UI (#1039)
smchedlidze826 Mar 10, 2023
c1bbfc1
Added .Net SDK
pospielov Mar 20, 2023
ee141a1
Added documentation for detect_faces param
pospielov Apr 4, 2023
394780f
Merge branch 'master' of github.com:exadel-inc/CompreFace
pospielov Apr 4, 2023
312a2da
EFRS-1162: Added delay for loader
Apr 13, 2023
50a268a
Merge pull request #1054 from exadel-inc/efrs-1162-loader
ahodkov Apr 14, 2023
df58cab
EFRS-1306: Increase container size
Apr 18, 2023
67e59a0
Merge pull request #1058 from exadel-inc/EFRS-1306-responsive-design
ahodkov Apr 24, 2023
6075fde
EFRS-1162: Change loading
Apr 25, 2023
b227917
Merge pull request #1063 from exadel-inc/efrs-1162-loader
ahodkov Apr 25, 2023
d7b5a71
EFRS-1253: Added pose plugin
May 10, 2023
c814a1f
Changed logo for pose plugin
May 11, 2023
91116a3
Added pose plugin icon
May 15, 2023
fa0f5da
Merge pull request #1068 from exadel-inc/EFRS-1253-pose-plugin
ahodkov May 15, 2023
ae563c1
Update Dockerfile
Anatolii-R May 26, 2023
39ed549
Update Makefile
Anatolii-R May 26, 2023
e472e88
Update gpu.Dockerfile
Anatolii-R May 26, 2023
6d93e48
Update requirements.txt
Anatolii-R May 26, 2023
b818b9e
Update __init__.py
Anatolii-R May 26, 2023
0e76aa6
Update dependencies.py
Anatolii-R May 26, 2023
6129396
updated Readme, updated screenshots and added video
pospielov May 26, 2023
65191bf
updated Readme, updated visuals
pospielov May 26, 2023
bf7fc9d
updated Readme, try to fix links
pospielov May 26, 2023
fa2217b
updated Readme, try to fix links
pospielov May 26, 2023
934fb3b
Update dependencies.py
Anatolii-R May 29, 2023
a9a7ca9
fix scikit-image
pospielov May 29, 2023
2af2621
EFRS-1371: Fix select in user table
May 30, 2023
dc4b119
EFRS-1373: apps order by name
May 30, 2023
5b970d3
updated Readme, fix links - workaround GitHub bug with links
pospielov May 30, 2023
24578ff
updated Readme, updated visuals
pospielov May 30, 2023
56584cb
Merge pull request #1076 from exadel-inc/readme-update
pospielov May 30, 2023
056f7e2
EFRS-1369: Fix detect_faces
May 30, 2023
d60ce85
updated Readme, updated visuals
pospielov May 30, 2023
a7654d0
Merge branch 'master' of github.com:exadel-inc/CompreFace
pospielov May 30, 2023
9da6f31
updated Readme, fixed links
pospielov May 30, 2023
4692c76
EFRS-1299: Add notification for application crud
May 31, 2023
0db32c1
Fix test
May 31, 2023
e0463ae
EFRS-1367: Remove thrown exception and move logs to info console
May 31, 2023
cba1665
added max_detect_size to Configuration.md
pospielov May 31, 2023
a5cca91
Update facenet.py
Anatolii-R May 31, 2023
69d5b01
Update base.py
Anatolii-R May 31, 2023
b6785f7
Update agegender.py
Anatolii-R May 31, 2023
c14a5e8
Update facemask.py
Anatolii-R May 31, 2023
5d0bd7c
Update managers.py
Anatolii-R May 31, 2023
918c629
Added modificated mtcnn.py
Anatolii-R Jun 1, 2023
795d930
Update requirements.txt
Anatolii-R Jun 1, 2023
68487b8
Update facenet.py
Anatolii-R Jun 1, 2023
4026ce8
Update agegender.py
Anatolii-R Jun 1, 2023
ffd6898
Update base.py
Anatolii-R Jun 1, 2023
86bf5e9
Update facemask.py
Anatolii-R Jun 1, 2023
8c0e9fe
Update facenet.py
Anatolii-R Jun 1, 2023
34b76cb
Update managers.py
Anatolii-R Jun 1, 2023
2271fe7
Changes after comments
Jun 2, 2023
c3767f3
Add MTCNN
An-R Jun 2, 2023
97b546d
Add MTCNN
An-R Jun 2, 2023
e921854
Add MTCNN
An-R Jun 2, 2023
0abd59c
Changed confidence in insightface
Jun 2, 2023
62cce48
Merge pull request #1077 from exadel-inc/bug-fix
pospielov Jun 2, 2023
3573b1d
Update insightface.py
Anatolii-R Jun 15, 2023
0d45436
Update Dockerfile
Anatolii-R Jun 15, 2023
9d0d1d3
Update dependencies.py
Anatolii-R Jun 15, 2023
eee41e9
Update Deploy-qa-demo-manual.yml
pospielov Jun 19, 2023
e1ee791
Update Build-Deploy-auto.yml
pospielov Jun 19, 2023
d10cf2f
Merge pull request #1078 from exadel-inc/TF220_CUDA11_8
pospielov Jun 21, 2023
4649a53
sort by area in facenet plugin
aktober Jun 28, 2023
e140be9
moved sorting into mixin
aktober Jun 28, 2023
28013b7
updated unit test
aktober Jul 3, 2023
eff15d7
Added flow for error 502
oriasyk Jul 3, 2023
58e3660
Merge pull request #1099 from exadel-inc/EFRS-1162_fix_for_502_error
oriasyk Jul 4, 2023
b6f82ea
Added fixes for users list in manage users popup
oriasyk Jul 4, 2023
6c485ca
Merge pull request #1097 from exadel-inc/sort_detections_by_area
pospielov Jul 5, 2023
8a69bbe
Merge pull request #1100 from exadel-inc/EFRS-1371_fix_manage_users_list
pospielov Jul 6, 2023
bdf2064
Update handling of 502 response status
oriasyk Jul 11, 2023
be96c88
Added additional error actions to server-status state
oriasyk Jul 12, 2023
e1f8948
Update for server-status effects
oriasyk Jul 12, 2023
fb3e226
Merge pull request #1102 from exadel-inc/EFRS-1162_Upgrade_for_error_…
oriasyk Jul 13, 2023
525a853
added 1.2.x branch
pospielov Jul 17, 2023
225937c
Merge pull request #1105 from exadel-inc/master
pospielov Jul 17, 2023
0223359
Update unit-tests-on-python.yml
pospielov Jul 17, 2023
e43fa03
Merge pull request #1107 from exadel-inc/pospielov-patch-1
pospielov Jul 17, 2023
7acb24f
Added no cache translate loader
oriasyk Jul 18, 2023
ba78a82
Merge pull request #1108 from exadel-inc/Avoid_translate_caching
oriasyk Jul 18, 2023
3158c5f
Added state reset on sebject change
oriasyk Jul 31, 2023
d51e315
Merge pull request #1131 from exadel-inc/EFRS-1409_Subjects_are_mix_c…
oriasyk Aug 1, 2023
9324c10
make dev .env file consistent with prod
pospielov Aug 2, 2023
3854595
Load statistics data for dashboard page
oriasyk Aug 2, 2023
890ade9
Merge pull request #1144 from exadel-inc/EFRS-1430_made_graphs_visibl…
pospielov Aug 4, 2023
1c5e9c7
Update docker-compose-gpu.yml
Anatolii-R Aug 4, 2023
aaf216b
Update docker-compose.yml
Anatolii-R Aug 4, 2023
86ad9f7
Update docker-compose.yml
Anatolii-R Aug 4, 2023
40851cf
Update _endpoints.py
Anatolii-R Aug 4, 2023
96c39c5
Merge pull request #1146 from exadel-inc/Anatolii-R-patch-1
pospielov Aug 4, 2023
99d5fab
Made service info block scrollable
oriasyk Aug 4, 2023
02c48ed
Merge pull request #1147 from exadel-inc/EFRS-1430_made_graphs_scroll…
oriasyk Aug 4, 2023
21f133e
Made Forgot Password link visible according mail status in login form
oriasyk Aug 11, 2023
b84837e
Merge pull request #1158 from exadel-inc/EFRS-1446_Forgot_possword_li…
pospielov Aug 11, 2023
3ccbfe9
Update docker-compose.yml
Anatolii-R Aug 14, 2023
4714096
Update docker-compose-gpu.yml
Anatolii-R Aug 14, 2023
528eead
Merge pull request #1160 from exadel-inc/efrs-1467_max_detect_size_fix
Anatolii-R Aug 14, 2023
fb48654
Merge branch '1.2.x' of github.com:exadel-inc/CompreFace into 1.2.x
pospielov Aug 14, 2023
a9435ae
Reverted ARM build
pospielov Aug 14, 2023
6458d82
updated version
pospielov Aug 15, 2023
6820964
fixes for Single container build
pospielov Aug 16, 2023
e0987c9
update Single Image build action. Added docker prune because of no sp…
pospielov Aug 17, 2023
d3a324a
yml fix
pospielov Aug 17, 2023
c03ec85
Revert "tempopary comment load delegate for tpu to be able to run mod…
bropat Oct 15, 2023
7a80cb4
Merge tag 'v1.2.0' into EFRS-1114
bropat Oct 15, 2023
f524930
Update tpu dockerfiles to debian bullseye with python 3.8
bropat Nov 4, 2023
cb8b0b0
Added tpu docker build to makefile
bropat Nov 4, 2023
61bc6ff
Added custom build FaceNet-tpu
bropat Nov 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 1 addition & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.git
/embedding-calculator/sample_images
.git
20 changes: 14 additions & 6 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,17 @@ email_from=
email_password=
enable_email_server=false
save_images_to_db=true
compreface_api_java_options=-Xmx8g
compreface_admin_java_options=-Xmx8g
ADMIN_VERSION=0.5.1
API_VERSION=0.5.1
FE_VERSION=0.5.1
CORE_VERSION=0.5.1
compreface_api_java_options=-Xmx4g
compreface_admin_java_options=-Xmx1g
max_file_size=5MB
max_request_size=10M
max_detect_size=640
uwsgi_processes=2
uwsgi_threads=1
connection_timeout=10000
read_timeout=60000
ADMIN_VERSION=1.2.0
API_VERSION=1.2.0
FE_VERSION=1.2.0
CORE_VERSION=1.2.0
POSTGRES_VERSION=1.2.0
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,40 @@ assignees: ''
---

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Logs**

Run those commands and attach result to the ticket:

`docker ps`

`docker-compose logs`


**Additional context**

Add any other context about the problem here.
59 changes: 59 additions & 0 deletions .github/workflows/AWS-CompreFace-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: (AWS) Create CompreFace image for new release

on:
workflow_dispatch:
inputs:
release:
description: release zip (e.g., https://github.com/exadel-inc/CompreFace/releases/download/v1.0.0/CompreFace_1.0.0.zip)
required: true
version:
description: version (e.g., 1.0.0)
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_KEY_ACCESS }}
aws-region: us-east-1
- name: Create Security Group
run: |
export SECURITY_GROUP_ID=$(aws ec2 create-security-group --group-name MySecurityGroup --description "My security group" --query 'GroupId' --output text)
aws ec2 wait security-group-exists --group-ids ${SECURITY_GROUP_ID}
aws ec2 authorize-security-group-ingress --group-id ${SECURITY_GROUP_ID} --protocol tcp --port 22 --cidr 0.0.0.0/0
echo "SECURITY_GROUP_ID=$SECURITY_GROUP_ID" >> $GITHUB_ENV
- name: Run Instance
run: |
echo ${SECURITY_GROUP_ID}
export INSTANCE_ID=$(aws ec2 run-instances --image-id ami-04e612d1108883950 --count 1 --instance-type t2.medium --key-name IharB --security-group-ids ${SECURITY_GROUP_ID} --subnet-id subnet-080dc6a6ed9580c77 --query 'Instances[0].InstanceId' --output text)
aws ec2 wait instance-running --instance-ids ${INSTANCE_ID}
echo "INSTANCE_ID=$INSTANCE_ID" >> $GITHUB_ENV
sleep 10
- name: Install Release
env:
RELEASE: ${{ github.event.inputs.release }}
SSH_KEY: ${{secrets.SSH_KEY}}
run: |
echo "$SSH_KEY" > private_key && chmod 600 private_key
export INSTANCE_IP_ADDRESS_EXTERNAL=$(aws ec2 describe-instances --instance-id ${INSTANCE_ID} --query 'Reservations[].Instances[].NetworkInterfaces[].Association.PublicIp' --output text)
echo $INSTANCE_IP_ADDRESS_EXTERNAL
ssh -i private_key -oStrictHostKeyChecking=no ec2-user@$INSTANCE_IP_ADDRESS_EXTERNAL "wget -q -O tmp.zip '$RELEASE' && unzip -o tmp.zip && rm tmp.zip && docker-compose stop && docker-compose rm --force && docker image prune -a --force && docker-compose up -d && rm /home/ec2-user/.ssh/authorized_keys && sudo rm /root/.ssh/authorized_keys"
- name: Stop Instance
run: |
aws ec2 stop-instances --instance-ids $INSTANCE_ID
aws ec2 wait instance-stopped --instance-ids $INSTANCE_ID
- name: Create Image
env:
VERSION: ${{ github.event.inputs.version }}
run: |
export IMAGE_ID=$(aws ec2 create-image --instance-id $INSTANCE_ID --name "CompreFace_${VERSION}" --description "CompreFace Base Image" --query 'ImageId' --output text)
echo "CompreFace Base Image id of version ${VERSION} : ${IMAGE_ID}"
aws ec2 wait image-available --image-ids ${IMAGE_ID}
- name: Delete resources
run: |
aws ec2 terminate-instances --instance-ids $INSTANCE_ID
aws ec2 wait instance-terminated --instance-ids $INSTANCE_ID
aws ec2 delete-security-group --group-name MySecurityGroup
40 changes: 40 additions & 0 deletions .github/workflows/AWS-Сompreface-packer-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
name: (AWS) Сompreface packer image
on:
workflow_dispatch:
jobs:
packer:
runs-on: ubuntu-latest
name: packer

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_KEY_ACCESS }}
aws-region: us-east-1

- name: Initialize Packer Template
uses: hashicorp/packer-github-actions@master
with:
command: init

- name: Validate Template
uses: hashicorp/packer-github-actions@master
with:
command: validate
arguments: -syntax-only
target: aws-compreface.pkr.hcl

- name: Build Artifact
uses: hashicorp/packer-github-actions@master
with:
command: build
arguments: "-color=true -on-error=abort"
target: aws-compreface.pkr.hcl
env:
PACKER_LOG: 1
51 changes: 51 additions & 0 deletions .github/workflows/Azure-Compreface-AIB-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: (Azure) Сompreface AIB image
on:
workflow_dispatch:
inputs:
version:
description: Version (e.g., 1.0.0)
required: true
env:
RESOURCE_GROUP_NAME: compreFaceGallery-RG
MANAGED_IDENTITY: compreFace-MI
GALLERY_NAME: compreFaceGallery
IMAGE_NAME: compreFace
VERSION: ${{ github.event.inputs.version }}
jobs:
build-image:
runs-on: ubuntu-latest
steps:

- name: Login via Az module
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}

- name: Build custom VM image
id: imageBuilder
uses: azure/build-vm-image@v0
with:
resource-group-name: "${{ env.RESOURCE_GROUP_NAME }}"
managed-identity: "${{ env.MANAGED_IDENTITY }}"
location: 'eastus'
source-os-type: 'linux'
source-image-type: 'PlatformImage'
source-image: Canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest
vm-size: 'Standard_B2s'
dist-type: 'SharedImageGallery'
dist-resource-id: "/subscriptions/${{secrets.AZURE_SUBSCRIPTION_ID}}/resourceGroups/${{ env.RESOURCE_GROUP_NAME }}/providers/Microsoft.Compute/galleries/${{ env.GALLERY_NAME }}/images/${{ env.IMAGE_NAME }}/versions/${{ env.VERSION }}"
dist-location: 'eastus'
customizer-script: |
apt update
apt upgrade -y
apt install -y docker.io unzip
docker version
curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose version
chmod 666 /var/run/docker.sock
wget -q -O tmp.zip "https://github.com/exadel-inc/CompreFace/releases/download/v${{ env.VERSION }}/CompreFace_${{ env.VERSION }}.zip" && unzip tmp.zip && rm tmp.zip
sed -i "s|8000:|80:|g" docker-compose.yml
docker-compose pull --quiet
docker-compose up -d
115 changes: 115 additions & 0 deletions .github/workflows/Build-Deploy-auto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Build and Deploy CompreFace on push

on:
push:
branches:
- master
- '1.2.x'

env:
REGISTRY: ghcr.io

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
# Map steps outputs to a job outputs.
# We need to share it between build and deploy jobs.
outputs:
registry_path: ${{ steps.registry_path.outputs.registry_path }}
tag: ${{ steps.tag_vars.outputs.tag }}
tag_latest: ${{ steps.tag_vars.outputs.tag_latest }}
env_name: ${{ steps.env_var.outputs.env_name }}

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set registry path output
id: registry_path
run: echo "registry_path=${{ env.REGISTRY }}/exadel-inc/compreface/" >> $GITHUB_OUTPUT

- name: Set tags from git output
id: tag_vars
run: |
echo "tag=${{ github.ref_name }}-$(git rev-parse HEAD | cut -c 1-7 | tr -d '\n')" >> $GITHUB_OUTPUT
echo "tag_latest=${{ github.ref_name }}-latest" >> $GITHUB_OUTPUT

- name: Set environment output from git
id: env_var
run: |
if [ "${{ github.ref_name }}" = "master" ]; then
echo "env_name=dev" >> $GITHUB_OUTPUT
elif [ "${{ github.ref_name }}" = "1.2.x" ]; then
echo "env_name=stage" >> $GITHUB_OUTPUT
else
echo "env_name=Features" >> $GITHUB_OUTPUT
fi

- name: Check outputs
run: |
echo "Branch : ${{ github.ref_name }}"
echo "Tags : ${{ steps.tag_vars.outputs.tag }}, ${{ steps.tag_vars.outputs.tag_latest }}"
echo "Environment: ${{ steps.env_var.outputs.env_name }}"

- name: Build images
env:
TAG: ${{ steps.tag_vars.outputs.tag }}
TAG_LATEST: ${{ steps.tag_vars.outputs.tag_latest }}
REGISTRY_PATH: ${{ steps.registry_path.outputs.registry_path }}
working-directory: ./dev
# use docker-compose build for 1.29.2
# docker compose build for 2.15.0 (with buildkit enabled by default)
run: |
docker compose version
sed -i "s|registry=|registry=${REGISTRY_PATH}|g" .env
sed -i "s/latest/${TAG}/g" .env
docker compose build
sed -i "s/${TAG}/${TAG_LATEST}/g" .env
docker compose build
docker images

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push images to the Container registry
env:
TAG: ${{ steps.tag_vars.outputs.tag }}
TAG_LATEST: ${{ steps.tag_vars.outputs.tag_latest }}
working-directory: ./dev
run: |
docker-compose push
sed -i "s/${TAG_LATEST}/${TAG}/g" .env
docker-compose push

deploy:
needs: build
# It's not possible to use natively env (e.g. env.ENV_NAME) variable on the runs-on job field (yet?)
# for deploy to different environments depending on branch https://github.com/actions/runner/issues/480
# That's why we use output from the previous build job
# Note: we are using self-hosted runner here
runs-on: ["${{needs.build.outputs.env_name}}"]

steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Deploy
working-directory: ./dev
env:
TAG_LATEST: ${{ needs.build.outputs.tag_latest }}
REGISTRY_PATH: ${{ needs.build.outputs.registry_path }}
run: |
sed -i "s|registry=|registry=${REGISTRY_PATH}|g" .env
sed -i "s/latest/${TAG_LATEST}/g" .env
sed -i "s/uwsgi_processes=2/uwsgi_processes=1/g" .env
sudo docker-compose stop
sudo docker system prune -a -f
sudo docker-compose pull
HOSTNAME=$HOSTNAME sudo docker-compose -f docker-compose.yml -f docker-compose.env.yml up -d
45 changes: 45 additions & 0 deletions .github/workflows/Deploy-qa-demo-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy to QA or Demo environment manually

on:
workflow_dispatch:
inputs:
environment:
type: choice
description: 'Choose environment to deploy'
required: true
default: 'qa'
options:
- qa
- demo

env:
REGISTRY_PATH: ghcr.io/exadel-inc/compreface/

jobs:
deploy:
runs-on: ${{ github.event.inputs.environment }}

steps:

- name: Set environment output from git
id: tag_var
run: |
if [ "${{ github.event.inputs.environment }}" = "qa" ]; then
echo "TAG_LATEST=master-latest" >> $GITHUB_ENV
else
echo "TAG_LATEST=1.1.x-latest" >> $GITHUB_ENV
fi

- name: Checkout Repo
uses: actions/checkout@v3

- name: Deploy
working-directory: ./dev
run: |
sed -i "s|registry=|registry=${{ env.REGISTRY_PATH }}|g" .env
sed -i "s/latest/${{ env.TAG_LATEST }}/g" .env
sed -i "s/uwsgi_processes=2/uwsgi_processes=1/g" .env
sudo docker-compose stop
sudo docker system prune -a -f
sudo docker-compose pull
HOSTNAME=$HOSTNAME sudo docker-compose -f docker-compose.yml -f docker-compose.env.yml up -d
Loading
Loading