浏览代码

Merge pull request #317 from Unity-Technologies/change_to_stddev

changed normal sampler standard deviation json key to "stddev"
/main
GitHub 3 年前
当前提交
79f26faf
共有 3 个文件被更改,包括 5 次插入3 次删除
  1. 2
      com.unity.perception/CHANGELOG.md
  2. 4
      com.unity.perception/Runtime/Randomization/Scenarios/Serialization/ScenarioSerializer.cs
  3. 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

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

正在加载...
取消
保存