浏览代码

Merge pull request #105 from Unity-Technologies/categorical-parameter-enumeration-fix

Categorical parameter enumeration fix
/main
GitHub 4 年前
当前提交
b4c91f0b
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 2
      com.unity.perception/CHANGELOG.md
  2. 2
      com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs

2
com.unity.perception/CHANGELOG.md


Fixed Unity Simulation nodes generating one extra empty image before generating their share of the randomization scenario iterations
Fixed enumeration in the CategoricalParameter.categories property
## [0.5.0-preview.1] - 2020-10-14
### Known Issues

2
com.unity.perception/Runtime/Randomization/Parameters/CategoricalParameter.cs


get
{
var catOptions = new List<(T, float)>(m_Categories.Count);
for (var i = 0; i < catOptions.Count; i++)
for (var i = 0; i < m_Categories.Count; i++)
catOptions.Add((m_Categories[i], probabilities[i]));
return catOptions;
}

正在加载...
取消
保存