浏览代码

moved synthdet specidic label config and labeling logic out of this repo

/addressables-test
Mohsen Kamalzadeh 4 年前
当前提交
85f07b97
共有 2 个文件被更改,包括 1 次插入10 次删除
  1. 8
      com.unity.perception/Runtime/GroundTruth/Labeling/LabelManager.cs
  2. 3
      com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs

8
com.unity.perception/Runtime/GroundTruth/Labeling/LabelManager.cs


/// </summary>
public IEnumerable<Labeling> registeredLabels => m_RegisteredLabels;
public List<string> LabelStringsForAutoLabelConfig { get; } = new List<string>();
public void AddLabelStringToAutoLabelConfigList(string label)
{
if(!LabelStringsForAutoLabelConfig.Contains(label))
LabelStringsForAutoLabelConfig.Add(label);
}
/// <summary>
/// Registers all pending labels.
/// Called once per frame during LateUpdate by the <see cref="PerceptionUpdater"/>.

3
com.unity.perception/Runtime/Randomization/Scenarios/FixedLengthScenario.cs


/// <inheritdoc/>
protected override void OnUpdate()
{
if (m_PerceptionCamera && currentIterationFrame == constants.framesPerIteration - 1
&& currentIteration > 1)
if (m_PerceptionCamera && currentIterationFrame == constants.framesPerIteration - 1)
{
m_PerceptionCamera.RequestCapture();
}

正在加载...
取消
保存