-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cac2be3
commit 3312d62
Showing
14 changed files
with
379 additions
and
369 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,26 +13,25 @@ Add the following items to your Unity project's `Packages/manifest.json`: | |
} | ||
], | ||
"dependencies": { | ||
"ai.natml.vision.meet": "1.0.3" | ||
"ai.natml.vision.meet": "1.0.4" | ||
} | ||
} | ||
``` | ||
|
||
## Predicting the Matte | ||
First, create the predictor: | ||
```csharp | ||
// Fetch the model data from NatML Hub | ||
var modelData = await MLModelData.FromHub("@natml/meet"); | ||
// Deserialize the model | ||
var model = modelData.Deserialize(); | ||
// Create the model | ||
var model = await MLEdgeModel.Create("@natml/meet"); | ||
// Create the Meet predictor | ||
var predictor = new MeetPredictor(model); | ||
``` | ||
|
||
Then predict the human matte: | ||
```csharp | ||
// Predict | ||
Texture2D image = ...; // This can also be a `WebCamTexture` or any other image feature | ||
// Given an image... | ||
Texture2D image = ...; | ||
// Predict the human matte | ||
MeetPredictor.Matte matte = predictor.Predict(image); | ||
``` | ||
|
||
|
@@ -51,8 +50,7 @@ ___ | |
## Quick Tips | ||
- Discover more ML models on [NatML Hub](https://hub.natml.ai). | ||
- See the [NatML documentation](https://docs.natml.ai/unity). | ||
- Join the [NatML community on Discord](https://hub.natml.ai/community). | ||
- Discuss [NatML on Unity Forums](https://forum.unity.com/threads/open-beta-natml-machine-learning-runtime.1109339/). | ||
- Join the [NatML community on Discord](https://natml.ai/community). | ||
- Contact us at [[email protected]](mailto:[email protected]). | ||
|
||
Thank you very much! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
m_EditorVersion: 2021.3.4f1 | ||
m_EditorVersionWithRevision: 2021.3.4f1 (cb45f9cae8b7) | ||
m_EditorVersion: 2021.3.17f1 | ||
m_EditorVersionWithRevision: 2021.3.17f1 (3e8111cac19d) |
Oops, something went wrong.