Steve Borkman
3 年前
当前提交
ea4d3b1d
共有 4 个文件被更改,包括 100 次插入 和 9 次删除
-
19com.unity.perception/Runtime/GroundTruth/Labelers/CocoKeypointTemplate.asset
-
49com.unity.perception/Runtime/GroundTruth/Labelers/KeypointLabeler.cs
-
30com.unity.perception/Runtime/GroundTruth/Labelers/KeypointOcclusionOverrides.cs
-
11com.unity.perception/Runtime/GroundTruth/Labelers/KeypointOcclusionOverrides.cs.meta
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
|
|||
namespace UnityEngine.Perception.GroundTruth |
|||
{ |
|||
[Serializable] |
|||
public struct KeypointOcclusionOverride |
|||
{ |
|||
public string label; |
|||
public float distance; |
|||
} |
|||
|
|||
public class KeypointOcclusionOverrides : MonoBehaviour |
|||
{ |
|||
public float overrideDistanceScale = 1.0f; |
|||
#if false
|
|||
public Dictionary<string, float> overridesMap { get; private set; } |
|||
public List<KeypointOcclusionOverride> keypointOcclusionOverrides; |
|||
|
|||
void Start() |
|||
{ |
|||
overridesMap = new Dictionary<string, float>(keypointOcclusionOverrides.Count); |
|||
foreach (var kpOverride in keypointOcclusionOverrides) |
|||
{ |
|||
overridesMap[kpOverride.label] = kpOverride.distance; |
|||
} |
|||
} |
|||
#endif
|
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: e489de1fb596113408b951f93430150b |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue