浏览代码

Merge branch 'change_to_stddev' into generic-asset-sources

/generic-asset-sources
Mohsen Kamalzadeh 3 年前
当前提交
8216c2ca
共有 4 个文件被更改,包括 7 次插入4 次删除
  1. 2
      com.unity.perception/CHANGELOG.md
  2. 3
      com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs
  3. 4
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs
  4. 2
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs

2
com.unity.perception/CHANGELOG.md


Upgraded capture package dependency to 0.0.10-preview.22 to fix an issue with URP where post processing effects were not included when capturing images.
Changed the JSON serialization key of Normal Sampler's standard deviation property from "standardDeviation" to "stddev". Scneario JSON configurations that were generated using previous versions will need to be manually updated to reflect this change.
### Deprecated
### Removed

3
com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs


Label m_PrevExecutionIdLabel;
Label m_PrevRandomSeedLabel;
RunParameters m_RunParameters;
const string k_SupportedGPUString = "NVIDIA";
[MenuItem("Window/Run in Unity Simulation")]
static void ShowWindow()

async void RunInUnitySimulation()
{
#if PLATFORM_CLOUD_RENDERING
if (!m_SysParamDefinitions[m_SysParamIndex].description.Contains(m_SupportedGPUString))
if (!m_SysParamDefinitions[m_SysParamIndex].description.Contains(k_SupportedGPUString))
{
EditorUtility.DisplayDialog("Unsupported Sysparam",
"The current selection of the Sysparam " + m_SysParamDefinitions[m_SysParamIndex].description +

4
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs


min = normalSampler.range.minimum,
max = normalSampler.range.maximum,
mean = normalSampler.mean,
standardDeviation = normalSampler.standardDeviation
stddev = normalSampler.standardDeviation
};
else
throw new ArgumentException($"Invalid sampler type ({sampler.GetType()})");

maximum = (float)normalSampler.max
},
mean = (float)normalSampler.mean,
standardDeviation = (float)normalSampler.standardDeviation
standardDeviation = (float)normalSampler.stddev
};
throw new ArgumentException($"Cannot deserialize unsupported sampler type {samplerOption.GetType()}");
}

2
com.unity.perception/Runtime/Randomization/Scenarios/Serialization/SerializationStructures.cs


public double min;
public double max;
public double mean;
public double standardDeviation;
public double stddev;
}
class ConstantSampler : ISamplerOption

正在加载...
取消
保存