Skip to content

add retina face wrapper #10

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

Open
wants to merge 1,109 commits into
base: object_detection_demo_ssd_async_common_pipeline
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1109 commits
Select commit Hold shift + click to select a range
f76af65
remove ref to download01.org
vladimir-dudnik Nov 23, 2020
be737d0
Review response
Nov 26, 2020
abce18c
add tests
vladimir-dudnik Nov 27, 2020
ed7c0b8
Review response
Dec 3, 2020
bd99ead
Review response
Dec 10, 2020
b9cbec3
Review response
Dec 18, 2020
c69f6bd
Review response
Dec 18, 2020
26fd4f2
Review response
Dec 18, 2020
d8a8d7c
main.cpp: remove trailing spaces
vladimir-dudnik Dec 21, 2020
9be31c7
suppress warnings, get back removed fileNameNoExt func
vladimir-dudnik Dec 21, 2020
8746253
C++ demos: add .gif files to README (#1939)
anzhella-pankratova Dec 22, 2020
99b2480
AC: sipport camvid with 32 classes and segmentation model with flatte…
eaidova Dec 22, 2020
21bc0fa
rfcn-resnet101-coco-tf in object_detection_demo (#1947)
vladimir-dudnik Dec 22, 2020
fe540d4
AC: added info about dumped annotation (#1948)
eaidova Dec 22, 2020
6e48d3a
calc anchors only at start
ivanvikhrev Dec 23, 2020
fe0b717
upd models.lst
ivanvikhrev Dec 23, 2020
af189d8
Merge branch 'develop' of https://github.com/openvinotoolkit/open_mod…
ivanvikhrev Dec 23, 2020
a9c7d05
Added G-API implementation of OMZ IFD demo
aDanPin Jun 5, 2020
09bcb1f
Small refactoring
aDanPin Jul 9, 2020
f90a580
Fix readme
aDanPin Jul 9, 2020
7311dd1
Fix readme
aDanPin Jul 13, 2020
6a5a90b
Update demos/interactive_face_detection_demo_gapi/CMakeLists.txt
aDanPin Jul 14, 2020
4aa3d13
Update demos/interactive_face_detection_demo_gapi/CMakeLists.txt
aDanPin Jul 14, 2020
95e3aa8
Update demos/interactive_face_detection_demo_gapi/README.md
aDanPin Jul 14, 2020
a6db388
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
0eea13d
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
dc52070
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
1b1d3bd
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
20256d6
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
2705fe5
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
e59da85
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
44cf9ec
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
7fc59a8
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
d5b457c
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jul 14, 2020
747af55
Review response
aDanPin Jul 14, 2020
d5fd42e
Review response
aDanPin Jul 15, 2020
75f2d3e
Add removed file
aDanPin Jul 15, 2020
d7106ce
Review response
aDanPin Jul 17, 2020
8790f6e
Refactoring
aDanPin Jul 21, 2020
37e6989
Fix video capturing
Jul 22, 2020
7218127
Update demos/interactive_face_detection_demo_gapi/interactive_face_de…
aDanPin Jul 27, 2020
472ad6d
Update demos/interactive_face_detection_demo_gapi/README.md
aDanPin Jul 27, 2020
2853144
Update demos/interactive_face_detection_demo_gapi/README.md
aDanPin Jul 27, 2020
c1f4818
Review response
aDanPin Jul 27, 2020
9eea0f5
remove deprecated face-detection-adas-binary model from models.lst
vladimir-dudnik Oct 21, 2020
2fd9f84
remove ref to download01.org
vladimir-dudnik Nov 23, 2020
0fdc48d
Review response
Nov 26, 2020
453491f
Review response
Dec 3, 2020
cc81f9d
Review response
Dec 10, 2020
bcf897c
Review response
Dec 18, 2020
2c2785d
Review response
Dec 18, 2020
c9d8a1b
Review response
Dec 18, 2020
c019a06
Review response
Dec 23, 2020
e5e4750
Review response
Dec 23, 2020
b41c5ff
Review response
Dec 23, 2020
7ff8ac9
AC: support see in the dark task (#1953)
eaidova Dec 23, 2020
d57c727
merge aDanPin changes
vladimir-dudnik Dec 24, 2020
bc9ead5
fix trailing spaces
vladimir-dudnik Dec 24, 2020
79871bf
fix unreferenced variable
vladimir-dudnik Dec 24, 2020
0a5523f
fix missed required param message
vladimir-dudnik Dec 24, 2020
d7a7fd8
AC: support PSNR for normalized images (#1955)
eaidova Dec 24, 2020
759ee19
Merge pull request #1907 from anzhella-pankratova/demos_omz
Dec 24, 2020
26dcaeb
AC: fix face reid quantization (#1959)
eaidova Dec 25, 2020
f25a805
make calc in floats
ivanvikhrev Dec 25, 2020
75814f7
code style fixes
ivanvikhrev Dec 25, 2020
313a2d6
add box iou threshold to constructor parameters
ivanvikhrev Dec 25, 2020
e531473
object detection demo models (#1949)
vladimir-dudnik Dec 25, 2020
cc8e9d9
fix (#1956)
ivanvikhrev Dec 26, 2020
c65c71f
AC: fix annotation image reading for rawpy (#1963)
eaidova Dec 27, 2020
74385aa
add dla-34 model (#1954)
Dec 27, 2020
9f6e245
Review response
Dec 28, 2020
551db16
Merge branch 'dp/gapi_interactive_face_detection_demo' of https://git…
Dec 28, 2020
bcc6bda
Add LSTM inputs to TF_Launcher (#1958)
mzuevx Dec 28, 2020
b5cd01c
AC configs fix tacotron and wavernn configs (#1965)
eaidova Dec 29, 2020
b3d4de6
Fix im2latex AC on windows (#1961)
Dec 31, 2020
9c61692
init
ivanvikhrev Jan 10, 2021
6cd79e9
Updated mean and scale values for yolact-resnet50-fpn-pytorch (#1970)
Jan 11, 2021
61e5d15
Merge pull request #1891 from IRDonch/arxiv-links
Jan 11, 2021
d25fee4
AC: config validation API (#1964)
eaidova Jan 11, 2021
3b7c6f9
AC: fix data reader with empty configuration (#1972)
eaidova Jan 11, 2021
d0a9e41
Fix "'err': unreferenced local variable" warning
Jan 11, 2021
28b8252
Bump Pillow version to avoid vulnerabilities in previous releases
Jan 11, 2021
acf0eaa
nms impl
ivanvikhrev Jan 11, 2021
c5db3bb
Merge pull request #1973 from IRDonch/update-pillow
Jan 12, 2021
e137867
Update demos/interactive_face_detection_demo_gapi/main.cpp
aDanPin Jan 12, 2021
dc14a62
pytorch_to_onnx.py: disable gradient calculation
Jan 12, 2021
411076a
Remove argument from catch block to avoid unnecessary logic and build…
Jan 12, 2021
e1b66ed
Merge pull request #2 from openvinotoolkit/develop
dvdhfnr Jan 12, 2021
9d70ebc
update GFlops, MParams, rmse; update sha256 and file size
Jan 12, 2021
f54ebcb
AC: Replace use of os.path with pathlib, fix im2latex metric calculat…
Jan 12, 2021
4a30d85
add scores and bboxes postrocessing
ivanvikhrev Jan 12, 2021
d36bc5e
update rmse
Jan 13, 2021
c9ce3b8
update rmse
Jan 13, 2021
617f34c
update gflops, mparams
Jan 13, 2021
a750799
Got rid of unnecessary duplication of "setting source" code
Jan 13, 2021
1601e75
Merge pull request #1979 from IRDonch/no-grad
Jan 13, 2021
c5fb9eb
add inverse transform to postprocessing
ivanvikhrev Jan 13, 2021
0314525
fix postrocessing
ivanvikhrev Jan 13, 2021
53a1166
delete extra code
ivanvikhrev Jan 13, 2021
c6bcd14
fix warnings
ivanvikhrev Jan 13, 2021
03ace03
delete blank line at the EOF
ivanvikhrev Jan 13, 2021
4edd0a6
tab to spaces
ivanvikhrev Jan 13, 2021
f8426f4
small fixes
ivanvikhrev Jan 13, 2021
be4c683
Updated accuracy value for midasnet model
Jan 13, 2021
61c1068
Merge pull request #1980 from Anna-Mironova/am/update-midasnet-metric
Jan 13, 2021
25c7713
bug fix (#1974)
Jan 13, 2021
d7bc778
AC: fix uri tracing (#1984)
eaidova Jan 14, 2021
b000f25
Merge branch 'develop' into develop
dvdhfnr Jan 14, 2021
639fce9
Add RegNetX-3.2GF model (#1967)
Jan 14, 2021
73ad9ee
AC: support nine channels raw images (#1986)
eaidova Jan 14, 2021
b7d7000
AC: support named entity recognition pipeline (#1987)
eaidova Jan 14, 2021
9528b08
Updated copyright for AC files (#1988)
Jan 15, 2021
990dedc
add palette
ivanvikhrev Jan 15, 2021
8ecc22d
make rendered text more distinct
ivanvikhrev Jan 15, 2021
65c811a
add default value if labels size is 0
ivanvikhrev Jan 15, 2021
ea01d9c
small code style fix
ivanvikhrev Jan 15, 2021
0da6c1f
AC: fix semantic segmentation adapter for 3D segmentation (#1989)
eaidova Jan 15, 2021
48e04a5
fix warnings
ivanvikhrev Jan 15, 2021
3b16070
rm note; use github link
Jan 15, 2021
7e23532
gMerge branch 'develop' of https://github.com/dvdhfnr/open_model_zoo …
Jan 15, 2021
9552487
make filterScores func static
ivanvikhrev Jan 15, 2021
faac253
Added quantization-reqs file generation.
nignatovsky Jan 15, 2021
34ff385
Deleted redundant line.
nignatovsky Jan 15, 2021
f896052
demos/tests: update used devices (#1952)
Wovchena Jan 15, 2021
f98d283
Python demos: add capability to record output video in a file (#1951)
anzhella-pankratova Jan 15, 2021
233e217
Aligned name in AC configs, removed unnecessary sections (#1991)
Jan 15, 2021
b63ad1e
Merge pull request #1981 from dvdhfnr/develop
Jan 15, 2021
dfd8ae1
AC: Remove the compatibility link for .yamllint
Jan 15, 2021
e33d644
Fix for windows build
Jan 15, 2021
4269288
Merge pull request #1994 from IRDonch/rm-yamllint-link
Jan 15, 2021
0bbbd0f
Remove –unnecessary comment
Jan 15, 2021
3264fde
Added generated requirements for CI tests.
nignatovsky Jan 15, 2021
491f8ee
Added missing space.
nignatovsky Jan 15, 2021
d1c1a5b
Remove tralling whitespace
Jan 18, 2021
a48f37a
Merge branch 'dp/gapi_interactive_face_detection_demo' of https://git…
Jan 18, 2021
167f6a6
add models to test cases
ivanvikhrev Jan 18, 2021
d10b6e2
add models to test cases
ivanvikhrev Jan 18, 2021
41a94f9
Merge branch 'develop' of https://github.com/openvinotoolkit/open_mod…
ivanvikhrev Jan 18, 2021
85f34fa
Merge pull request #1312 from aDanPin/dp/gapi_interactive_face_detect…
Jan 18, 2021
65b438f
Generate deps from AC reqs instead of setup.py
nignatovsky Jan 18, 2021
ef0c236
MO default reqs were replaced with MO kaldi reqs.
nignatovsky Jan 18, 2021
77f54ed
Deleted trailing whitespace.
nignatovsky Jan 18, 2021
04c0b15
AC: add missing prepositions (#1999)
Wovchena Jan 19, 2021
3ae9f1e
downloader: fix archive unpacking when --output_dir is a relative path
Jan 19, 2021
fd4b8c8
Apply suggestions from code review
ivanvikhrev Jan 19, 2021
ce72f40
Reqs file was converted to unix format.
nignatovsky Jan 19, 2021
11d5d90
Added missing comma.
nignatovsky Jan 19, 2021
5477ab4
Updated requirements.
nignatovsky Jan 19, 2021
eb9082e
Added attribute for requirements-quantization.txt
nignatovsky Jan 20, 2021
8f3a3e7
AC: add lpcnet evaluator (#2003)
eaidova Jan 20, 2021
afb1e2b
Merge pull request #2000 from IRDonch/unpack-relative-path
Jan 20, 2021
5b2d6aa
AC: change metric output order (#2006)
eaidova Jan 20, 2021
29b0219
AC: allow const input filling with numiric value (#2005)
eaidova Jan 20, 2021
a598b67
regnetx-3.2gf: download files from a specific commit
Jan 21, 2021
f7d4072
Merge pull request #2008 from IRDonch/regnet-fixed-files
Jan 21, 2021
3a8c1b0
create data folder
Jan 21, 2021
e68cea9
create link to dataset_definitions.yml
Jan 21, 2021
fed9086
Merge pull request #1995 from nignatovsky/ni/quantization_requirements
Jan 21, 2021
a2939e6
Add necessary include
Jan 21, 2021
d2cf19f
Merge pull request #2010 from aDanPin/dp/ifd_gapi_ci_build_fix
Jan 21, 2021
cac433d
Merge pull request #1996 from jkamelin/jk/data_folder
Jan 21, 2021
b6dc8fd
horizontal-text-detection-0001: fix document title (#2011)
Jan 21, 2021
26e8aec
Reorder demos folder
eizamaliev Dec 4, 2020
53fa0a6
Move common files to utils subproject
eizamaliev Jan 12, 2021
8b22aea
Fix links
eizamaliev Jan 12, 2021
878237a
Fix after rebase
eizamaliev Jan 12, 2021
4991300
Fix warnings
eizamaliev Jan 18, 2021
1c9fcff
Move interactive_face_detection_gapi demo to interactive_face_detecti…
eizamaliev Jan 18, 2021
fcbe456
Fix links
eizamaliev Jan 18, 2021
c1e295b
Fix
eizamaliev Jan 18, 2021
9458f87
Fix and refactor of tests
eizamaliev Jan 18, 2021
dbbc1e7
Fix review remarks
eizamaliev Jan 19, 2021
2f16c48
Fix links
eizamaliev Jan 21, 2021
82071b4
Added multi_channel_object_detection_yolov3_demo to tests (which also…
eizamaliev Jan 21, 2021
24bfcd7
Small refactorings
eizamaliev Jan 21, 2021
7a19144
Fast-fix
eizamaliev Jan 21, 2021
2e21efa
Fix tests
eizamaliev Jan 21, 2021
f13c055
Fix
eizamaliev Jan 22, 2021
944cb37
AC: Absolute paths are replaced by relative paths during pickle savin…
Jan 22, 2021
0282291
Fix links
eizamaliev Jan 22, 2021
64bcdb9
Merge pull request #1978 from eizamaliev/change_demo_folder_layout
Jan 22, 2021
e281434
Merge branch 'develop' into color-palette-cpp
ivanvikhrev Jan 22, 2021
ba01a8f
Update ignores in .yamllint
Jan 22, 2021
5bb691e
downloader: Add a missing task type to the README
Jan 22, 2021
429ccfb
wavernn: fix document title
Jan 22, 2021
711779c
Merge pull request #2013 from IRDonch/misc-fixes
Jan 22, 2021
dd9ed07
hpe
anzhella-pankratova Dec 30, 2020
8c97d9e
Delete trailing whitespaces
anzhella-pankratova Jan 11, 2021
62218a0
Modify virtual reshape()
anzhella-pankratova Jan 11, 2021
8c2d185
Changes
anzhella-pankratova Jan 11, 2021
3ad7b1a
Delete HumanPoseEstimator class
anzhella-pankratova Jan 11, 2021
b3e45d1
Rename: OpenPose -> HPEOpenPose
anzhella-pankratova Jan 11, 2021
808c571
Add -tsize and -t keys
anzhella-pankratova Jan 11, 2021
b836dc6
Delete auto_resize key, modify reshape() and preprocessing()
anzhella-pankratova Jan 12, 2021
8b6a61d
Update tests
anzhella-pankratova Jan 12, 2021
9dfed3d
Add newlines
anzhella-pankratova Jan 12, 2021
f8a8ab7
Delete #pragma once
anzhella-pankratova Jan 12, 2021
7a4bc92
Add pose filtering by proba_threshold
anzhella-pankratova Jan 12, 2021
a5b7199
Delete unused argument
anzhella-pankratova Jan 12, 2021
18a6ac5
Change HPEOpenPose params description
anzhella-pankratova Jan 12, 2021
e306f5b
Move HumanPose struct into results.h
anzhella-pankratova Jan 13, 2021
87b91b3
Changes from review, fix frames order to submit
anzhella-pankratova Jan 13, 2021
4ae41db
Add aspectRatio and paddings
anzhella-pankratova Jan 13, 2021
bc1c350
Change reshape() interface, add small fixes
anzhella-pankratova Jan 13, 2021
8a92efc
Delete reference
anzhella-pankratova Jan 13, 2021
fcfaff2
Delete one test
anzhella-pankratova Jan 13, 2021
fc8c45e
Changes from review
anzhella-pankratova Jan 14, 2021
483119e
Delete unused attribute
anzhella-pankratova Jan 14, 2021
d29b252
Update copyright year
anzhella-pankratova Jan 22, 2021
cac72a3
Fix output scale
anzhella-pankratova Jan 22, 2021
64f0023
Add newline
anzhella-pankratova Jan 22, 2021
733dd89
Fix after rebase
anzhella-pankratova Jan 25, 2021
2d7e3fb
Updated audio normalization for sound classificaton demo
Jan 21, 2021
c8b171c
review suggestions
ivanvikhrev Jan 25, 2021
3f1767e
small fixes
ivanvikhrev Jan 25, 2021
1ac1aa3
Merge pull request #2009 from Anna-Mironova/am/fix-aclnet-demo
Jan 25, 2021
fd574cd
Merge branch 'develop' into rework-retinaface-postprocessing
ivanvikhrev Jan 25, 2021
b497f49
fixes after merge
ivanvikhrev Jan 25, 2021
d3dc4ef
undo deletion
ivanvikhrev Jan 25, 2021
8461b92
unnecessary comment
ivanvikhrev Jan 25, 2021
cdce05b
Apply suggestions from code review
ivanvikhrev Jan 25, 2021
c5123aa
Update demos/tests/cases.py
ivanvikhrev Jan 25, 2021
8b61d46
Add static
anzhella-pankratova Jan 25, 2021
2dd9ed6
Apply suggestions from code review
ivanvikhrev Jan 25, 2021
c19589e
use std functions as was suggested
ivanvikhrev Jan 25, 2021
504aaa3
code style fixes
ivanvikhrev Jan 25, 2021
67af393
Update all constants
anzhella-pankratova Jan 25, 2021
4fe1d29
change coordinates, not size
ivanvikhrev Jan 25, 2021
6982dcc
delete extra line
ivanvikhrev Jan 25, 2021
1e2a072
Merge branch 'rework-retinaface-postprocessing' of https://github.com…
ivanvikhrev Jan 25, 2021
3f5b72c
fix readme
ivanvikhrev Jan 25, 2021
cdb9c52
fix warning
ivanvikhrev Jan 25, 2021
49ac80d
code style fixes
ivanvikhrev Jan 25, 2021
6016dd0
Merge branch 'develop' into centernet-cpp-wrapper
ivanvikhrev Jan 25, 2021
296e779
Merge pull request #1977 from anzhella-pankratova/human_pose_estimation
Jan 25, 2021
098b1b8
review suggestions & other fixes
ivanvikhrev Jan 25, 2021
6eabe8e
Merge pull request #1990 from ivanvikhrev/color-palette-cpp
Jan 25, 2021
d36ed8a
removed autoresize
ivanvikhrev Jan 25, 2021
59e413f
AC: support BERT NER pipeline (#2017)
eaidova Jan 26, 2021
d4d6b51
make input NHWC
ivanvikhrev Jan 26, 2021
b641133
Fix CMake style issues
Jan 26, 2021
ab0a136
Merge pull request #2020 from IRDonch/cmakelint
Jan 26, 2021
9c8a686
docs: replace the letters TM with real trademark signs
Jan 26, 2021
9a8544e
AC: fix storing conversion meta if multiple path provided (#2019)
eaidova Jan 26, 2021
ba1011d
docs: replace HTML <code> tags with Markdown code spans
Jan 26, 2021
af9d6d0
docs: wrap strings in angle brackets in code spans
Jan 26, 2021
4acf696
Merge pull request #2022 from IRDonch/doc-fixes
eaidova Jan 26, 2021
044d97c
Merge pull request #1983 from ivanvikhrev/centernet-cpp-wrapper
Jan 26, 2021
185daee
Merge branch 'develop' into rework-retinaface-postprocessing
ivanvikhrev Jan 26, 2021
5313e52
Apply suggestions from code review
ivanvikhrev Jan 27, 2021
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
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
[flake8]
exclude=
# generic excludes
.git,__pycache__,
# generated files
demos/speech_recognition_demo/python/ctcdecode-numpy/ctcdecode_numpy/impl.py,
models/public/mozilla-deepspeech-0.8.2/mds_convert_utils/memmapped_file_system_pb2.py,

select=
# indentation problems
E10,E11,
# closing bracket does not match indentation of opening brackets line
E123,
# whitespace before '('
E211,
# missing whitespace after ',', ';', or ':'
E231,
# missing whitespace after keyword
E275,
# expected 1 blank line, found 0
E301,
# blank lines found after function decorator
E304,
# the backslash is redundant between brackets
E502,
# statement style issues
E7,
# parse errors
E9,
# pyflakes checks
F4,F5,F6,F7,F8,F9,
# deprecation warnings
W6,

ignore=
# multiple statements on one line (colon/def)
# ignored because putting a statement after a colon is harmless and
# sometimes results in more compact code
E701,E704,
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# so allow it.
*.patch whitespace=-blank-at-eol

.git* -omz.package
.editorconfig -omz.package
.flake8 -omz.package
.git* -omz.package
.yamllint -omz.package
/ci/** -omz.package
/demos/build_demos.sh omz.package=l,m
Expand All @@ -21,6 +22,7 @@
/ci/requirements-conversion.txt omz.ci.job-for-change.demos omz.ci.job-for-change.models
/ci/requirements-demos.txt omz.ci.job-for-change.demos
/ci/requirements-downloader.txt omz.ci.job-for-change.demos omz.ci.job-for-change.models
/ci/requirements-quantization.txt omz.ci.job-for-change.downloader

/demos/** omz.ci.job-for-change.demos
/demos/**/*.md -omz.ci.job-for-change.demos
Expand Down
8 changes: 5 additions & 3 deletions .yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ yaml-files:

ignore: |
demos/thirdparty/
tools/accuracy_checker/.yamllint
tools/accuracy_checker/dataset_definitions.yml
tools/accuracy_checker/configs/

rules:
line-length: disable
braces: enable
brackets: enable
colons: disable
colons:
max-spaces-before: 0
max-spaces-after: -1
commas: enable
comments:
level: warning
Expand All @@ -34,7 +36,7 @@ rules:
key-ordering: disable
new-line-at-end-of-file: enable
new-lines: disable
octal-values: disable
octal-values: enable
quoted-strings: disable
trailing-spaces: enable
truthy: disable
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [OpenVINO™ Toolkit](https://01.org/openvinotoolkit) - Open Model Zoo repository
[![Stable release](https://img.shields.io/badge/version-2021.2-green.svg)](https://github.com/openvinotoolkit/open_model_zoo/releases/tag/2021.2)
[![Stable release](https://img.shields.io/badge/version-2021.3-green.svg)](https://github.com/openvinotoolkit/open_model_zoo/releases/tag/2021.3)
[![Gitter chat](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/open_model_zoo/community)
[![Apache License Version 2.0](https://img.shields.io/badge/license-Apache_2.0-green.svg)](LICENSE)

Expand Down
31 changes: 30 additions & 1 deletion ci/check-basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def complain(message):
cwd=OMZ_ROOT,
).stdout.strip()

print('running text checks...', flush=True)

if subprocess.run(['git', '--no-pager', 'diff', '--check', empty_tree_hash, '--'],
cwd=OMZ_ROOT).returncode != 0:
all_passed = False
Expand Down Expand Up @@ -79,6 +81,28 @@ def complain(message):

mode = raw_diff.split()[1]

absolute_path = OMZ_ROOT / path

if path.startswith('tools/accuracy_checker/configs/') and path.endswith('.yml'):
if mode == '120000':
try:
if absolute_path.is_symlink():
real_path = absolute_path.resolve(strict=True)
else:
with open(absolute_path, 'r', newline='') as file:
link_target = file.read()
real_path = (absolute_path.parent / link_target).resolve(strict=True)
except FileNotFoundError:
complain(f"{path}: should be a symbolic link to existing accuracy-check.yml from models directory")
else:
model_name = absolute_path.stem
if real_path.name != 'accuracy-check.yml' or real_path.parent.name != model_name:
complain(f"{path}: should be a symbolic link to accuracy-check.yml from {model_name} model "
"directory")
else:
complain(f"{path}: isn't a symbolic link but it should be a symbolic link to accuracy-check.yml "
"from models directory")

if mode not in {'100644', '100755'}: # not a regular or executable file
continue

Expand All @@ -88,7 +112,7 @@ def complain(message):
if path.startswith('demos/thirdparty/'):
continue

with open(OMZ_ROOT / path, encoding='UTF-8') as f:
with open(absolute_path, encoding='UTF-8') as f:
lines = list(f)

if lines and not lines[-1].endswith('\n'):
Expand All @@ -113,9 +137,14 @@ def complain(message):
shebang_program.endswith('/env') and shebang_args == 'python'):
complain(f"{path}:1: use 'python3', not 'python'")

print('running yamllint...', flush=True)
if subprocess.run([sys.executable, '-m', 'yamllint', '-s', '.'], cwd=OMZ_ROOT).returncode != 0:
all_passed = False

print('running flake8...', flush=True)
if subprocess.run([sys.executable, '-m', 'flake8', '--config=.flake8'], cwd=OMZ_ROOT).returncode != 0:
all_passed = False

sys.exit(0 if all_passed else 1)


Expand Down
5 changes: 3 additions & 2 deletions ci/check-release-readiness.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ def complain(format, *args):

for models_lst_path in OMZ_ROOT.glob('demos/**/models.lst'):
with models_lst_path.open() as models_lst:
for line in models_lst:
for line_num, line in enumerate(models_lst):
if RE_TODO_COMMENT.search(line):
complain('{} has a TODO comment', models_lst_path.relative_to(OMZ_ROOT))
complain('{}:{}: line contains TODO comment',
models_lst_path.relative_to(OMZ_ROOT), line_num + 1)

sys.exit(0 if all_passed else 1)

Expand Down
5 changes: 2 additions & 3 deletions ci/documentation_updater/documentation_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import logging
import re
import ruamel.yaml
import shlex

from pathlib import Path
from ruamel.yaml.scalarstring import FoldedScalarString
Expand All @@ -29,7 +28,7 @@
MODES = [
'check',
'update'
]
]

LOG_LEVELS = [
'CRITICAL',
Expand Down Expand Up @@ -79,7 +78,7 @@ def convert(lines):
result += ' '
result += line.rstrip('\n')
result = re.sub(r"\[(.*?)\]\((.*?)\)", r"\1 <\2>", result) # Links transformation
result = result.replace("`", "\"").replace("\*", "*")
result = result.replace("`", "\"").replace("\\*", "*")
return result.strip()


Expand Down
41 changes: 20 additions & 21 deletions ci/requirements-ac-test.txt
Original file line number Diff line number Diff line change
@@ -1,48 +1,47 @@
# use update-requirements.py to update this file

atomicwrites==1.4.0 # via -r tools/accuracy_checker/requirements-test.in
attrs==20.2.0 # via pytest
certifi==2020.6.20 # via matplotlib
attrs==20.3.0 # via pytest
click==7.1.2 # via nltk
cycler==0.10.0 # via matplotlib
decorator==4.4.2 # via networkx
editdistance==0.5.3 # via -r tools/accuracy_checker/requirements.in
fast-ctc-decode==0.2.5 # via -r tools/accuracy_checker/requirements.in
imageio==2.9.0 # via scikit-image
importlib-metadata==2.0.0 # via pluggy, pytest
importlib-metadata==3.3.0 # via pluggy, pytest
joblib==0.17.0 # via nltk, scikit-learn
kiwisolver==1.2.0 # via matplotlib
matplotlib==3.3.2 # via scikit-image
more-itertools==8.5.0 # via pytest
kiwisolver==1.3.1 # via matplotlib
matplotlib==3.3.3 # via scikit-image
more-itertools==8.6.0 # via pytest
networkx==2.5 # via scikit-image
nibabel==3.1.1 # via -r tools/accuracy_checker/requirements.in
nibabel==3.2.1 # via -r tools/accuracy_checker/requirements.in
nltk==3.5 # via -r tools/accuracy_checker/requirements.in
numpy==1.17.5 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, nibabel, parasail, pywavelets, scikit-image, scikit-learn, scipy, tifffile
packaging==20.4 # via nibabel, pytest
numpy==1.17.5 # via -r tools/accuracy_checker/requirements-core.in, -r tools/accuracy_checker/requirements.in, imageio, matplotlib, nibabel, parasail, pywavelets, scikit-image, scikit-learn, scipy, tifffile
packaging==20.8 # via nibabel, pytest
parasail==1.2 # via -r tools/accuracy_checker/requirements.in
pillow==8.0.0 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, scikit-image
pillow==8.1.0 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, scikit-image
pluggy==0.13.1 # via pytest
py-cpuinfo==7.0.0 # via -r tools/accuracy_checker/requirements.in
py==1.9.0 # via pytest
pydicom==2.0.0 # via -r tools/accuracy_checker/requirements.in
py==1.10.0 # via pytest
pydicom==2.1.2 # via -r tools/accuracy_checker/requirements.in
pyparsing==2.4.7 # via matplotlib, packaging
pypi-kenlm==0.1.20190403 # via -r tools/accuracy_checker/requirements.in
pytest-mock==2.0.0 # via -r tools/accuracy_checker/requirements-test.in
pytest==5.4.3 # via -r tools/accuracy_checker/requirements-test.in, pytest-mock
python-dateutil==2.8.1 # via matplotlib
pywavelets==1.1.1 # via scikit-image
pyyaml==5.3.1 # via -r tools/accuracy_checker/requirements-core.in
regex==2020.10.15 # via nltk
regex==2020.11.13 # via nltk
scikit-image==0.17.2 # via -r tools/accuracy_checker/requirements.in
scikit-learn==0.23.2 # via -r tools/accuracy_checker/requirements.in
scipy==1.5.2 # via -r tools/accuracy_checker/requirements.in, scikit-image, scikit-learn
sentencepiece==0.1.91 # via -r tools/accuracy_checker/requirements.in
scipy==1.5.4 # via -r tools/accuracy_checker/requirements.in, scikit-image, scikit-learn
sentencepiece==0.1.94 # via -r tools/accuracy_checker/requirements.in
shapely==1.7.1 # via -r tools/accuracy_checker/requirements.in
six==1.15.0 # via packaging, python-dateutil
six==1.15.0 # via python-dateutil
threadpoolctl==2.1.0 # via scikit-learn
tifffile==2020.9.3 # via scikit-image
tokenizers==0.9.1 # via -r tools/accuracy_checker/requirements.in
tqdm==4.50.2 # via -r tools/accuracy_checker/requirements.in, nltk
tokenizers==0.9.4 # via -r tools/accuracy_checker/requirements.in
tqdm==4.54.1 # via -r tools/accuracy_checker/requirements.in, nltk
typing-extensions==3.7.4.3 # via importlib-metadata
wcwidth==0.2.5 # via pytest
wheel==0.35.1 # via parasail
zipp==3.3.0 # via importlib-metadata
wheel==0.36.2 # via parasail
zipp==3.4.0 # via importlib-metadata
30 changes: 14 additions & 16 deletions ci/requirements-ac.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
# use update-requirements.py to update this file

certifi==2020.6.20 # via matplotlib
click==7.1.2 # via nltk
cycler==0.10.0 # via matplotlib
decorator==4.4.2 # via networkx
editdistance==0.5.3 # via -r tools/accuracy_checker/requirements.in
fast-ctc-decode==0.2.5 # via -r tools/accuracy_checker/requirements.in
imageio==2.9.0 # via scikit-image
joblib==0.17.0 # via nltk, scikit-learn
kiwisolver==1.2.0 # via matplotlib
matplotlib==3.3.2 # via scikit-image
kiwisolver==1.3.1 # via matplotlib
matplotlib==3.3.3 # via scikit-image
networkx==2.5 # via scikit-image
nibabel==3.1.1 # via -r tools/accuracy_checker/requirements.in
nibabel==3.2.1 # via -r tools/accuracy_checker/requirements.in
nltk==3.5 # via -r tools/accuracy_checker/requirements.in
numpy==1.17.5 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, nibabel, parasail, pywavelets, scikit-image, scikit-learn, scipy, tifffile
packaging==20.4 # via nibabel
numpy==1.17.5 # via -r tools/accuracy_checker/requirements-core.in, -r tools/accuracy_checker/requirements.in, imageio, matplotlib, nibabel, parasail, pywavelets, scikit-image, scikit-learn, scipy, tifffile
packaging==20.8 # via nibabel
parasail==1.2 # via -r tools/accuracy_checker/requirements.in
pillow==8.0.0 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, scikit-image
pillow==8.1.0 # via -r tools/accuracy_checker/requirements-core.in, imageio, matplotlib, scikit-image
py-cpuinfo==7.0.0 # via -r tools/accuracy_checker/requirements.in
pydicom==2.0.0 # via -r tools/accuracy_checker/requirements.in
pydicom==2.1.2 # via -r tools/accuracy_checker/requirements.in
pyparsing==2.4.7 # via matplotlib, packaging
pypi-kenlm==0.1.20190403 # via -r tools/accuracy_checker/requirements.in
python-dateutil==2.8.1 # via matplotlib
pywavelets==1.1.1 # via scikit-image
pyyaml==5.3.1 # via -r tools/accuracy_checker/requirements-core.in
regex==2020.10.15 # via nltk
regex==2020.11.13 # via nltk
scikit-image==0.17.2 # via -r tools/accuracy_checker/requirements.in
scikit-learn==0.23.2 # via -r tools/accuracy_checker/requirements.in
scipy==1.5.2 # via -r tools/accuracy_checker/requirements.in, scikit-image, scikit-learn
sentencepiece==0.1.91 # via -r tools/accuracy_checker/requirements.in
scipy==1.5.4 # via -r tools/accuracy_checker/requirements.in, scikit-image, scikit-learn
sentencepiece==0.1.94 # via -r tools/accuracy_checker/requirements.in
shapely==1.7.1 # via -r tools/accuracy_checker/requirements.in
six==1.15.0 # via packaging, python-dateutil
six==1.15.0 # via python-dateutil
threadpoolctl==2.1.0 # via scikit-learn
tifffile==2020.9.3 # via scikit-image
tokenizers==0.9.1 # via -r tools/accuracy_checker/requirements.in
tqdm==4.50.2 # via -r tools/accuracy_checker/requirements.in, nltk
wheel==0.35.1 # via parasail
tokenizers==0.9.4 # via -r tools/accuracy_checker/requirements.in
tqdm==4.54.1 # via -r tools/accuracy_checker/requirements.in, nltk
wheel==0.36.2 # via parasail
1 change: 1 addition & 0 deletions ci/requirements-check-basics.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flake8
yamllint
9 changes: 8 additions & 1 deletion ci/requirements-check-basics.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# use update-requirements.py to update this file

pathspec==0.8.0 # via yamllint
flake8==3.8.4 # via -r ci/requirements-check-basics.in
importlib-metadata==3.3.0 # via flake8
mccabe==0.6.1 # via flake8
pathspec==0.8.1 # via yamllint
pycodestyle==2.6.0 # via flake8
pyflakes==2.2.0 # via flake8
pyyaml==5.3.1 # via yamllint
typing-extensions==3.7.4.3 # via importlib-metadata
yamllint==1.25.0 # via -r ci/requirements-check-basics.in
zipp==3.4.0 # via importlib-metadata

# The following packages are considered to be unsafe in a requirements file:
# setuptools
Loading