Skip to content

Commit

Permalink
Package version
Browse files Browse the repository at this point in the history
  • Loading branch information
keijiro committed Jul 31, 2021
1 parent 55ea0e3 commit 4749c77
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 3 deletions.
55 changes: 55 additions & 0 deletions Packages/jp.keijiro.bodypix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,58 @@ See [the Colab notebook] for further details.
[tf2onnx]: https://github.com/onnx/tensorflow-onnx
[the Colab notebook]:
https://colab.research.google.com/drive/1ikOMoqOX7TSBNId0lGaQ_kIyDF2GV3M3?usp=sharing

ResNet support
--------------

This package supports the ResNet architecture (more accurate but slower and bigger models)
but doesn't contain those ONNX files due to the file size limit of GitHub and npm.js.
You can download them from [here][ResNetZip] instead.

To use those models, create a new BodyPix ResourceSet file and set the model, architecture,
and stride fields accordingly.

![ResNet50](https://user-images.githubusercontent.com/343936/127449759-a5294794-4a60-454c-8f9d-7899c14b0d48.png)

[ResNetZip]:
https://github.com/keijiro/BodyPixBarracuda/releases/download/1.0.3/ResNet50Models.zip

How to install
--------------

This package uses the [scoped registry] feature to resolve package dependencies.
Please add the following sections to the manifest file (Packages/manifest.json).

[scoped registry]: https://docs.unity3d.com/Manual/upm-scoped.html

To the `scopedRegistries` section:

```
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
```

To the `dependencies` section:

```
"jp.keijiro.bodypix": "2.0.0"
```

After changes, the manifest file should look like below:

```
{
"scopedRegistries": [
{
"name": "Keijiro",
"url": "https://registry.npmjs.com",
"scopes": [ "jp.keijiro" ]
}
],
"dependencies": {
"jp.keijiro.bodypix": "2.0.0",
...
```
2 changes: 1 addition & 1 deletion Packages/jp.keijiro.bodypix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"repository": "github:keijiro/BodyPixBarracuda",
"unity": "2020.3",
"unityRelease": "0f1",
"version": "1.0.3"
"version": "2.0.0"
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To the `scopedRegistries` section:
To the `dependencies` section:

```
"jp.keijiro.bodypix": "1.0.3"
"jp.keijiro.bodypix": "2.0.0"
```

After changes, the manifest file should look like below:
Expand All @@ -77,6 +77,6 @@ After changes, the manifest file should look like below:
}
],
"dependencies": {
"jp.keijiro.bodypix": "1.0.3",
"jp.keijiro.bodypix": "2.0.0",
...
```

0 comments on commit 4749c77

Please sign in to comment.