Skip to content

Commit 048e44d

Browse files
authored
fix security vulnerabilities (#620)
* fix security vulnerbilities * more sec fixes * fix mobilenet * more fixes * update the demo links * fix lint * more lint fix * more lint fixes * udpate cpu version * udpate blazeface version * add package resolution * fix coco-ssd build * added license headers
1 parent 841afd4 commit 048e44d

Some content is hidden

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

93 files changed

+23964
-33337
lines changed

blazeface/demo/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ This demo shows how to use the Blazeface model to detect faces in a video stream
66

77
## Setup
88

9-
cd into the demos folder:
9+
cd into the demo folder:
1010

1111
```sh
12-
cd blazeface/demos
12+
cd blazeface/demo
1313
```
1414

1515
Install dependencies and prepare the build directory:
@@ -24,7 +24,7 @@ To watch files for changes, and launch a dev server:
2424
yarn watch
2525
```
2626

27-
## If you are developing blazeface locally, and want to test the changes in the demos
27+
## If you are developing blazeface locally, and want to test the changes in the demo
2828

2929
Cd into the blazeface folder:
3030
```sh
@@ -41,14 +41,14 @@ Publish blazeface locally:
4141
yarn build && yarn yalc publish
4242
```
4343

44-
Cd into the demos and install dependencies:
44+
Cd into the demo and install dependencies:
4545

4646
```sh
47-
cd demos
47+
cd demo
4848
yarn
4949
```
5050

51-
Link the local blazeface to the demos:
51+
Link the local blazeface to the demo:
5252
```sh
5353
yarn yalc link @tensorflow-models/blazeface
5454
```

blazeface/demo/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,11 @@
3636
"dat.gui": "^0.7.2",
3737
"eslint": "^4.19.1",
3838
"eslint-config-google": "^0.9.1",
39-
"parcel-bundler": "~1.10.3",
40-
"yalc": "~1.0.0-pre.27"
39+
"parcel-bundler": "~1.12.5",
40+
"yalc": "~1.0.0-pre.50"
41+
},
42+
"resolutions": {
43+
"is-svg": "4.3.1"
4144
},
4245
"eslintConfig": {
4346
"extends": "google",

blazeface/demo/yarn.lock

Lines changed: 2038 additions & 1779 deletions
Large diffs are not rendered by default.

blazeface/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
"rollup-plugin-typescript2": "~0.13.0",
3030
"rollup-plugin-uglify": "~3.0.0",
3131
"ts-node": "~5.0.0",
32-
"tslint": "~5.8.0",
33-
"typescript": "3.3.3333",
34-
"yalc": "^1.0.0-pre.27"
32+
"tslint": "~6.1.3",
33+
"typescript": "3.5.3",
34+
"yalc": "^1.0.0-pre.50"
3535
},
3636
"scripts": {
3737
"build": "rimraf dist && tsc",

blazeface/yarn.lock

Lines changed: 186 additions & 187 deletions
Large diffs are not rendered by default.

body-pix/.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ src/
66
models/
77
coverage/
88
package/
9-
demos/
9+
demo/
1010
**/node_modules/
1111
karma.conf.js
1212
*.tgz

body-pix/README-v1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,4 +472,4 @@ bodyPix.drawBokehEffect(
472472

473473
## Developing the Demos
474474

475-
Details for how to run the demos are included in the `demos/` folder.
475+
Details for how to run the demo are included in the `demo/` folder.

body-pix/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,4 +649,4 @@ bodyPix.blurBodyPart(
649649

650650
## Developing the Demos
651651

652-
Details for how to run the demos are included in the `demos/` folder.
652+
Details for how to run the demo are included in the `demo/` folder.
File renamed without changes.

body-pix/demos/README.md renamed to body-pix/demo/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ The demo shows how to estimate segmentation in real-time from a webcam video str
66

77
## Setup
88

9-
cd into the demos folder:
9+
cd into the demo folder:
1010

1111
```sh
12-
cd body-pix/demos
12+
cd body-pix/demo
1313
```
1414

1515
Install dependencies and prepare the build directory:
@@ -24,7 +24,7 @@ To watch files for changes, and launch a dev server:
2424
yarn watch
2525
```
2626

27-
## If you are developing body-pix locally, and want to test the changes in the demos
27+
## If you are developing body-pix locally, and want to test the changes in the demo
2828

2929
Cd into the body-pix folder:
3030
```sh
@@ -41,14 +41,14 @@ Build and publish the body-pix locally:
4141
yarn publish-local
4242
```
4343

44-
Cd into the demos and install dependencies:
44+
Cd into the demo and install dependencies:
4545

4646
```sh
47-
cd demos
47+
cd demo
4848
yarn
4949
```
5050

51-
Link the local body-pix to the demos:
51+
Link the local body-pix to the demo:
5252
```sh
5353
yarn yalc link @tensorflow-models/body-pix
5454
```
File renamed without changes.
File renamed without changes.
File renamed without changes.

body-pix/demos/package.json renamed to body-pix/demo/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@
3737
"dat.gui": "~0.7.2",
3838
"eslint": "~7.20.0",
3939
"eslint-config-google": "~0.14.0",
40-
"parcel-bundler": "~1.12.3",
41-
"yalc": "~1.0.0-pre.23"
40+
"parcel-bundler": "~1.12.5",
41+
"yalc": "~1.0.0-pre.50"
42+
},
43+
"resolutions": {
44+
"is-svg": "4.3.1"
4245
},
4346
"eslintConfig": {
4447
"extends": "google",

0 commit comments

Comments
 (0)