Skip to content

Commit

Permalink
Bump to NatML 1.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
lanreolokoba committed Apr 3, 2023
1 parent 656027d commit 5c7a967
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 16 deletions.
4 changes: 4 additions & 0 deletions Packages/ai.natml.vision.mobilenet-v2/Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.3
+ Added `MobileNetv2Predictor.Tag` constant string to enable model embedding.
+ Upgraded to NatML 1.1.4.

## 1.0.2
+ Added `MobileNetv2Predictor.Create` static method for creating the predictor.
+ Removed public `MobileNetv2Predictor` constructor.
Expand Down
2 changes: 1 addition & 1 deletion Packages/ai.natml.vision.mobilenet-v2/LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License

Copyright (c) 2022 NatML Inc. All Rights Reserved.
Copyright © 2023 NatML Inc. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion Packages/ai.natml.vision.mobilenet-v2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Add the following items to your Unity project's `Packages/manifest.json`:
}
],
"dependencies": {
"ai.natml.vision.mobilenet-v2": "1.0.2"
"ai.natml.vision.mobilenet-v2": "1.0.3"
}
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace NatML.Vision {
/// </summary>
public sealed class MobileNetv2Predictor : IMLPredictor<MobileNetv2Predictor.Label> {

#region --Client API--
#region --Types--
/// <summary>
/// Class label with confidence score.
/// </summary>
Expand All @@ -38,6 +38,14 @@ public struct Label {
confidence = this.confidence;
}
}
#endregion


#region --Client API--
/// <summary>
/// Predictor tag.
/// </summary>
public const string Tag = "@natsuite/mobilenet-v2";

/// <summary>
/// Classify an image.
Expand Down Expand Up @@ -78,7 +86,7 @@ public struct Label {
MLEdgeModel.Configuration configuration = null,
string accessKey = null
) {
var model = await MLEdgeModel.Create("@natsuite/mobilenet-v2", configuration, accessKey);
var model = await MLEdgeModel.Create(Tag, configuration, accessKey);
var predictor = new MobileNetv2Predictor(model);
return predictor;
}
Expand Down
6 changes: 3 additions & 3 deletions Packages/ai.natml.vision.mobilenet-v2/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "ai.natml.vision.mobilenet-v2",
"version": "1.0.2",
"version": "1.0.3",
"displayName": "MobileNet v2",
"description": "Realtime image classification in Unity Engine.",
"unity": "2021.2",
"dependencies": {
"ai.natml.natml": "1.1.3"
"ai.natml.natml": "1.1.4"
},
"keywords": [
"natml",
Expand All @@ -20,5 +20,5 @@
"url": "https://github.com/natmlx"
},
"license": "MIT",
"repository": "github:natml-hub/MobileNet-v2"
"repository": "github:natmlx/mobilenet-v2-unity"
}
2 changes: 1 addition & 1 deletion Packages/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}
],
"dependencies": {
"ai.natml.videokit": "0.0.11",
"ai.natml.videokit": "0.0.12",
"com.unity.collab-proxy": "1.17.7",
"com.unity.feature.development": "1.0.1",
"com.unity.ide.rider": "3.0.18",
Expand Down
16 changes: 8 additions & 8 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"dependencies": {
"ai.natml.hub": {
"version": "1.0.20",
"depth": 1,
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://registry.npmjs.com"
Expand All @@ -26,11 +26,12 @@
"url": "https://registry.npmjs.com"
},
"ai.natml.natml": {
"version": "1.1.3",
"version": "1.1.4",
"depth": 1,
"source": "registry",
"dependencies": {
"ai.natml.hub": "1.0.20"
"ai.natml.hub": "1.0.20",
"com.unity.nuget.newtonsoft-json": "3.1.0"
},
"url": "https://registry.npmjs.com"
},
Expand All @@ -44,12 +45,11 @@
"url": "https://registry.npmjs.com"
},
"ai.natml.videokit": {
"version": "0.0.11",
"version": "0.0.12",
"depth": 0,
"source": "registry",
"dependencies": {
"ai.natml.hub": "1.0.20",
"ai.natml.natml": "1.1.3",
"ai.natml.natml": "1.1.4",
"ai.natml.natcorder": "1.9.4",
"ai.natml.natdevice": "1.3.3",
"ai.natml.natshare": "1.3.0"
Expand All @@ -61,7 +61,7 @@
"depth": 0,
"source": "embedded",
"dependencies": {
"ai.natml.natml": "1.1.3"
"ai.natml.natml": "1.1.4"
}
},
"com.unity.collab-proxy": {
Expand Down Expand Up @@ -127,7 +127,7 @@
"url": "https://packages.unity.com"
},
"com.unity.nuget.newtonsoft-json": {
"version": "3.0.2",
"version": "3.1.0",
"depth": 2,
"source": "registry",
"dependencies": {},
Expand Down

0 comments on commit 5c7a967

Please sign in to comment.