Skip to content

Commit d24a865

Browse files
Upgrade ML-Agents to 4.0.1 (#6269)
* Upgrade Inference Engine to 4.1.1 * Update inference engine dependencies * Update CHANGELOG.md * trunk test are unstable changing to 6.3 temporarily * Fixing issue #6268 Co-authored-by: maryam-zia <[email protected]>
1 parent f248e98 commit d24a865

File tree

8 files changed

+86
-14
lines changed

8 files changed

+86
-14
lines changed

.yamato/com.unity.ml-agents-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test_editors:
88
enableNoDefaultPackages: !!bool true
99

1010
trunk_editor:
11-
- version: trunk
11+
- version: 6000.4
1212
testProject: DevProject
1313

1414
test_platforms:

.yamato/test_versions.metafile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ test_editors:
77
extra_test: gym
88
- version: 6000.0
99
extra_test: sensor
10-
- version: trunk
10+
- version: 6000.3
1111
extra_test: llapi

DevProject/Packages/packages-lock.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"dependencies": {
33
"com.unity.ai.inference": {
4-
"version": "2.2.1",
4+
"version": "2.4.1",
55
"depth": 1,
66
"source": "registry",
77
"dependencies": {
88
"com.unity.burst": "1.8.17",
99
"com.unity.collections": "2.4.3",
10-
"com.unity.modules.imageconversion": "1.0.0"
10+
"com.unity.modules.imageconversion": "1.0.0",
11+
"com.unity.dt.app-ui": "1.3.1",
12+
"com.unity.nuget.newtonsoft-json": "3.2.1"
1113
},
1214
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
1315
},
@@ -51,6 +53,18 @@
5153
},
5254
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
5355
},
56+
"com.unity.dt.app-ui": {
57+
"version": "1.3.1",
58+
"depth": 2,
59+
"source": "registry",
60+
"dependencies": {
61+
"com.unity.modules.androidjni": "1.0.0",
62+
"com.unity.modules.uielements": "1.0.0",
63+
"com.unity.modules.physics": "1.0.0",
64+
"com.unity.modules.screencapture": "1.0.0"
65+
},
66+
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
67+
},
5468
"com.unity.ext.nunit": {
5569
"version": "2.0.5",
5670
"depth": 1,
@@ -79,7 +93,7 @@
7993
"depth": 0,
8094
"source": "local",
8195
"dependencies": {
82-
"com.unity.ai.inference": "2.2.1",
96+
"com.unity.ai.inference": "2.4.1",
8397
"com.unity.modules.imageconversion": "1.0.0",
8498
"com.unity.modules.jsonserialize": "1.0.0",
8599
"com.unity.modules.physics": "1.0.0"
@@ -200,6 +214,12 @@
200214
"source": "builtin",
201215
"dependencies": {}
202216
},
217+
"com.unity.modules.androidjni": {
218+
"version": "1.0.0",
219+
"depth": 3,
220+
"source": "builtin",
221+
"dependencies": {}
222+
},
203223
"com.unity.modules.hierarchycore": {
204224
"version": "1.0.0",
205225
"depth": 1,
@@ -236,6 +256,14 @@
236256
"source": "builtin",
237257
"dependencies": {}
238258
},
259+
"com.unity.modules.screencapture": {
260+
"version": "1.0.0",
261+
"depth": 3,
262+
"source": "builtin",
263+
"dependencies": {
264+
"com.unity.modules.imageconversion": "1.0.0"
265+
}
266+
},
239267
"com.unity.modules.ui": {
240268
"version": "1.0.0",
241269
"depth": 0,

PerformanceProject/Packages/packages-lock.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"dependencies": {
33
"com.unity.ai.inference": {
4-
"version": "2.2.1",
4+
"version": "2.4.1",
55
"depth": 1,
66
"source": "registry",
77
"dependencies": {
88
"com.unity.burst": "1.8.17",
99
"com.unity.collections": "2.4.3",
10-
"com.unity.modules.imageconversion": "1.0.0"
10+
"com.unity.modules.imageconversion": "1.0.0",
11+
"com.unity.dt.app-ui": "1.3.1",
12+
"com.unity.nuget.newtonsoft-json": "3.2.1"
1113
},
1214
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
1315
},
@@ -40,6 +42,18 @@
4042
},
4143
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
4244
},
45+
"com.unity.dt.app-ui": {
46+
"version": "1.3.1",
47+
"depth": 2,
48+
"source": "registry",
49+
"dependencies": {
50+
"com.unity.modules.androidjni": "1.0.0",
51+
"com.unity.modules.uielements": "1.0.0",
52+
"com.unity.modules.physics": "1.0.0",
53+
"com.unity.modules.screencapture": "1.0.0"
54+
},
55+
"url": "https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-candidates"
56+
},
4357
"com.unity.editorcoroutines": {
4458
"version": "1.0.0",
4559
"depth": 1,
@@ -106,7 +120,7 @@
106120
"depth": 0,
107121
"source": "local",
108122
"dependencies": {
109-
"com.unity.ai.inference": "2.2.1",
123+
"com.unity.ai.inference": "2.4.1",
110124
"com.unity.modules.imageconversion": "1.0.0",
111125
"com.unity.modules.jsonserialize": "1.0.0",
112126
"com.unity.modules.physics": "1.0.0"

Project/Packages/packages-lock.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
"url": "https://packages.unity.com"
99
},
1010
"com.unity.ai.inference": {
11-
"version": "2.2.1",
11+
"version": "2.4.1",
1212
"depth": 1,
1313
"source": "registry",
1414
"dependencies": {
1515
"com.unity.burst": "1.8.17",
16+
"com.unity.dt.app-ui": "1.3.1",
1617
"com.unity.collections": "2.4.3",
18+
"com.unity.nuget.newtonsoft-json": "3.2.1",
1719
"com.unity.modules.imageconversion": "1.0.0"
1820
},
1921
"url": "https://packages.unity.com"
@@ -58,6 +60,18 @@
5860
},
5961
"url": "https://packages.unity.com"
6062
},
63+
"com.unity.dt.app-ui": {
64+
"version": "1.3.1",
65+
"depth": 2,
66+
"source": "registry",
67+
"dependencies": {
68+
"com.unity.modules.physics": "1.0.0",
69+
"com.unity.modules.androidjni": "1.0.0",
70+
"com.unity.modules.uielements": "1.0.0",
71+
"com.unity.modules.screencapture": "1.0.0"
72+
},
73+
"url": "https://packages.unity.com"
74+
},
6175
"com.unity.ext.nunit": {
6276
"version": "2.0.5",
6377
"depth": 1,
@@ -105,7 +119,7 @@
105119
"depth": 0,
106120
"source": "local",
107121
"dependencies": {
108-
"com.unity.ai.inference": "2.2.1",
122+
"com.unity.ai.inference": "2.4.1",
109123
"com.unity.modules.imageconversion": "1.0.0",
110124
"com.unity.modules.jsonserialize": "1.0.0",
111125
"com.unity.modules.physics": "1.0.0"
@@ -218,6 +232,12 @@
218232
"source": "builtin",
219233
"dependencies": {}
220234
},
235+
"com.unity.modules.androidjni": {
236+
"version": "1.0.0",
237+
"depth": 3,
238+
"source": "builtin",
239+
"dependencies": {}
240+
},
221241
"com.unity.modules.animation": {
222242
"version": "1.0.0",
223243
"depth": 2,
@@ -281,6 +301,14 @@
281301
"source": "builtin",
282302
"dependencies": {}
283303
},
304+
"com.unity.modules.screencapture": {
305+
"version": "1.0.0",
306+
"depth": 3,
307+
"source": "builtin",
308+
"dependencies": {
309+
"com.unity.modules.imageconversion": "1.0.0"
310+
}
311+
},
284312
"com.unity.modules.ui": {
285313
"version": "1.0.0",
286314
"depth": 1,

com.unity.ml-agents/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,14 @@ and this project adheres to
99
## [Unreleased]
1010
### Minor Changes
1111
#### com.unity.ml-agents (C#)
12+
- Upgraded to Inference Engine 2.4.1 (#6269)
1213
- Fixed tensor indexing to use correct CHW layout (#6239)
1314
- Updated the installation doc (#6242)
1415

1516
#### ml-agents / ml-agents-envs
1617
- Set the Torch version constraint to 2.8 (#6251)
1718
- Fixed CUDA/CPU mismatch in threaded training (#6245)
19+
- Fixed HTTP Error when importing UnityToGymWrapper (#6269)
1820

1921
## [4.0.0] - 2025-08-28
2022
### Major Changes

com.unity.ml-agents/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"unity": "6000.0",
66
"description": "Use state-of-the-art machine learning to create intelligent character behaviors in any Unity environment (games, robotics, film, etc.).",
77
"dependencies": {
8-
"com.unity.ai.inference": "2.2.1",
8+
"com.unity.ai.inference": "2.4.1",
99
"com.unity.modules.imageconversion": "1.0.0",
1010
"com.unity.modules.jsonserialize": "1.0.0",
1111
"com.unity.modules.physics": "1.0.0"

ml-agents-envs/mlagents_envs/registry/unity_env_registry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ def __iter__(self) -> Iterator[Any]:
121121

122122
default_registry = UnityEnvRegistry()
123123
# TODO restore when a new registry is available.
124-
default_registry.register_from_yaml(
125-
"https://storage.googleapis.com/mlagents-test-environments/1.1.0/manifest.yaml"
126-
) # noqa E501
124+
# default_registry.register_from_yaml(
125+
# "https://storage.googleapis.com/mlagents-test-environments/1.1.0/manifest.yaml"
126+
# ) # noqa E501

0 commit comments

Comments
 (0)