比较提交

...
此合并请求有变更与目标分支冲突。
/TestProjects/PerceptionHDRP/Packages/manifest.json
/TestProjects/PerceptionHDRP/Packages/packages-lock.json
/TestProjects/PerceptionHDRP/ProjectSettings/PackageManagerSettings.asset
/TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset
/TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
/com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs
/com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/RandomizerTagTests.cs
/com.unity.perception/package.json
/com.unity.perception/CHANGELOG.md
/com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTagManager.cs
/com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
/com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentationLabeler.cs
/com.unity.perception/Runtime/GroundTruth/InstanceSegmentationPass.cs
/com.unity.perception/Runtime/GroundTruth/SemanticSegmentationPass.cs
/com.unity.perception/Runtime/GroundTruth/GroundTruthPass.cs
/com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/ExampleTag.cs
/com.unity.perception/Runtime/GroundTruth/LensDistortionPass.cs
/com.unity.perception/Runtime/GroundTruth/SemanticSegmentationCrossPipelinePass.cs

8 次代码提交

共有 23 个文件被更改,包括 367 次插入170 次删除
  1. 27
      TestProjects/PerceptionHDRP/Assets/CrateMaterial.mat
  2. 20
      TestProjects/PerceptionHDRP/Packages/manifest.json
  3. 225
      TestProjects/PerceptionHDRP/Packages/packages-lock.json
  4. 15
      TestProjects/PerceptionHDRP/ProjectSettings/EditorSettings.asset
  5. 4
      TestProjects/PerceptionHDRP/ProjectSettings/HDRPProjectSettings.asset
  6. 11
      TestProjects/PerceptionHDRP/ProjectSettings/PackageManagerSettings.asset
  7. 78
      TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset
  8. 4
      TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt
  9. 2
      TestProjects/PerceptionHDRP/ProjectSettings/QualitySettings.asset
  10. 2
      TestProjects/PerceptionHDRP/ProjectSettings/VFXManager.asset
  11. 4
      com.unity.perception/Editor/Randomization/Editors/RunInUnitySimulationWindow.cs
  12. 2
      com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/ExampleTag.cs
  13. 11
      com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/RandomizerTagTests.cs
  14. 2
      com.unity.perception/package.json
  15. 2
      com.unity.perception/CHANGELOG.md
  16. 71
      com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTagManager.cs
  17. 19
      com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs
  18. 7
      com.unity.perception/Runtime/GroundTruth/InstanceSegmentationPass.cs
  19. 7
      com.unity.perception/Runtime/GroundTruth/SemanticSegmentationPass.cs
  20. 7
      com.unity.perception/Runtime/GroundTruth/GroundTruthPass.cs
  21. 7
      com.unity.perception/Runtime/GroundTruth/LensDistortionPass.cs
  22. 6
      com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentationLabeler.cs
  23. 4
      com.unity.perception/Runtime/GroundTruth/SemanticSegmentationCrossPipelinePass.cs

27
TestProjects/PerceptionHDRP/Assets/CrateMaterial.mat


m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 2
version: 11
--- !u!21 &2100000
Material:
serializedVersion: 6

m_PrefabAsset: {fileID: 0}
m_Name: CrateMaterial
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _NORMALMAP_TANGENT_SPACE
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _NORMALMAP_TANGENT_SPACE
m_CustomRenderQueue: -1
m_CustomRenderQueue: 2225
stringTagMap: {}
disabledShaderPasses:
- DistortionVectors

- TransparentBackface
- RayTracingPrepass
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:

m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0

- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _AlphaToMaskInspectorValue: 0
- _Anisotropy: 0
- _BlendMode: 0
- _CoatMask: 0

- _LinkDetailsWithBase: 1
- _MaterialID: 1
- _Metallic: 0.28
- _MetallicRemapMax: 0.28
- _MetallicRemapMin: 0
- _OpaqueCullMode: 2
- _RayTracing: 0
- _ReceivesSSRTransparent: 0
- _RefractionModel: 0
- _SSRefractionProjectionModel: 0
- _Smoothness: 0.667

- _UVDetailsMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMask: {r: 1, g: 0, b: 0, a: 0}
- _UVMappingMaskEmissive: {r: 1, g: 0, b: 0, a: 0}
m_BuildTextureStacks: []

20
TestProjects/PerceptionHDRP/Packages/manifest.json


{
"dependencies": {
"com.unity.collab-proxy": "1.2.16",
"com.unity.ext.nunit": "1.0.0",
"com.unity.ide.rider": "1.1.4",
"com.unity.ide.vscode": "1.2.1",
"com.unity.package-validation-suite": "0.9.1-preview",
"com.unity.collab-proxy": "1.3.9",
"com.unity.entities": "0.16.0-preview.21",
"com.unity.ext.nunit": "1.0.5",
"com.unity.ide.rider": "2.0.7",
"com.unity.ide.visualstudio": "2.0.5",
"com.unity.ide.vscode": "1.2.3",
"com.unity.render-pipelines.core": "7.3.1",
"com.unity.render-pipelines.high-definition": "7.3.1",
"com.unity.render-pipelines.core": "10.2.2",
"com.unity.render-pipelines.high-definition": "10.2.2",
"com.unity.test-framework": "1.1.16",
"com.unity.test-framework": "1.1.19",
"com.unity.textmeshpro": "2.0.1",
"com.unity.textmeshpro": "3.0.1",
"com.unity.toolchain.win-x86_64-linux-x86_64": "0.1.16-preview",
"com.unity.ugui": "1.0.0",
"nuget.moq": "1.0.0",
"com.unity.modules.ai": "1.0.0",

225
TestProjects/PerceptionHDRP/Packages/packages-lock.json


{
"dependencies": {
"com.unity.burst": {
"version": "1.3.0-preview.5",
"depth": 2,
"version": "1.3.9",
"depth": 1,
"com.unity.mathematics": "1.1.0"
"com.unity.mathematics": "1.2.1"
"version": "1.2.16",
"version": "1.3.9",
"depth": 0,
"source": "registry",
"dependencies": {},

"version": "0.7.0-preview.2",
"depth": 3,
"version": "0.14.0-preview.16",
"depth": 1,
"com.unity.test-framework.performance": "1.3.3-preview",
"com.unity.burst": "1.3.0-preview.5"
"com.unity.test-framework.performance": "2.3.1-preview",
"com.unity.burst": "1.3.7"
"version": "0.8.0-preview.8",
"depth": 1,
"version": "0.16.0-preview.21",
"depth": 0,
"com.unity.burst": "1.3.0-preview.5",
"com.unity.properties": "0.10.4-preview",
"com.unity.mathematics": "1.1.0",
"com.unity.serialization": "0.6.4-preview",
"com.unity.test-framework.performance": "1.3.3-preview",
"nuget.mono-cecil": "0.1.5-preview",
"com.unity.jobs": "0.2.7-preview.11",
"com.unity.scriptablebuildpipeline": "1.6.4-preview",
"com.unity.platforms": "0.2.1-preview.4"
"com.unity.burst": "1.3.7",
"com.unity.properties": "1.5.0-preview",
"com.unity.serialization": "1.5.0-preview",
"com.unity.collections": "0.14.0-preview.16",
"com.unity.mathematics": "1.2.1",
"com.unity.modules.assetbundle": "1.0.0",
"com.unity.test-framework.performance": "2.3.1-preview",
"com.unity.nuget.mono-cecil": "0.1.6-preview.2",
"com.unity.jobs": "0.7.0-preview.17",
"com.unity.scriptablebuildpipeline": "1.9.0",
"com.unity.platforms": "0.9.0-preview.9"
"version": "1.0.0",
"version": "1.0.5",
"depth": 0,
"source": "registry",
"dependencies": {},

"version": "1.1.4",
"version": "2.0.7",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.ide.visualstudio": {
"version": "2.0.5",
"depth": 0,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"version": "1.2.1",
"version": "1.2.3",
"depth": 0,
"source": "registry",
"dependencies": {},

"version": "0.2.7-preview.11",
"depth": 2,
"version": "0.7.0-preview.17",
"depth": 1,
"com.unity.collections": "0.7.0-preview.2",
"com.unity.mathematics": "1.1.0"
"com.unity.collections": "0.14.0-preview.16",
"com.unity.mathematics": "1.2.1"
"version": "1.1.0",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.nuget.newtonsoft-json": {
"version": "1.1.2",
"version": "1.2.1",
"com.unity.package-validation-suite": {
"version": "0.9.1-preview",
"depth": 0,
"com.unity.nuget.mono-cecil": {
"version": "0.1.6-preview.2",
"depth": 1,
"source": "registry",
"dependencies": {
"nuget.mono-cecil": "0.1.6-preview"

"com.unity.nuget.newtonsoft-json": {
"version": "2.0.0-preview",
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.perception": {
"version": "file:../../../com.unity.perception",
"depth": 0,

"com.unity.render-pipelines.core": "7.1.6",
"com.unity.burst": "1.3.9",
"com.unity.simulation.capture": "0.0.10-preview.13",
"com.unity.simulation.core": "0.0.10-preview.19"
"com.unity.simulation.capture": "0.0.10-preview.14",
"com.unity.simulation.core": "0.0.10-preview.20"
"version": "0.2.1-preview.4",
"depth": 2,
"version": "0.9.0-preview.9",
"depth": 1,
"com.unity.nuget.newtonsoft-json": "1.1.2",
"com.unity.properties": "0.10.4-preview",
"com.unity.searcher": "4.0.9",
"com.unity.serialization": "0.6.4-preview"
"com.unity.properties": "1.5.0-preview",
"com.unity.properties.ui": "1.5.0-preview",
"com.unity.scriptablebuildpipeline": "1.6.4-preview",
"com.unity.serialization": "1.5.0-preview"
"version": "0.10.4-preview",
"version": "1.5.0-preview",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.nuget.mono-cecil": "0.1.6-preview.2",
"com.unity.test-framework.performance": "2.0.8-preview"
},
"url": "https://packages.unity.com"
},
"com.unity.properties.ui": {
"version": "1.5.0-preview",
"com.unity.collections": "0.1.1-preview",
"com.unity.test-framework.performance": "1.0.9-preview"
"com.unity.properties": "1.5.0-preview",
"com.unity.serialization": "1.5.0-preview",
"com.unity.modules.uielements": "1.0.0"
"version": "7.3.1",
"version": "10.2.2",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.render-pipelines.high-definition": {
"version": "7.3.1",
"version": "10.2.2",
"com.unity.render-pipelines.core": "7.3.1",
"com.unity.shadergraph": "7.3.1",
"com.unity.visualeffectgraph": "7.3.1",
"com.unity.render-pipelines.high-definition-config": "7.3.1"
"com.unity.render-pipelines.core": "10.2.2",
"com.unity.shadergraph": "10.2.2",
"com.unity.visualeffectgraph": "10.2.2",
"com.unity.render-pipelines.high-definition-config": "10.2.2"
"version": "7.3.1",
"version": "10.2.2",
"com.unity.render-pipelines.core": "7.3.1"
"com.unity.render-pipelines.core": "10.2.2"
"version": "1.6.4-preview",
"depth": 2,
"version": "1.9.0",
"depth": 1,
"version": "4.0.9",
"depth": 3,
"version": "4.3.1",
"depth": 2,
"version": "0.6.4-preview",
"depth": 2,
"version": "1.5.0-preview",
"depth": 1,
"com.unity.burst": "1.1.2",
"com.unity.collections": "0.1.1-preview",
"com.unity.jobs": "0.1.1-preview",
"com.unity.mathematics": "1.1.0",
"com.unity.properties": "0.10.4-preview",
"com.unity.test-framework.performance": "1.0.9-preview"
"com.unity.collections": "0.8.0-preview.5",
"com.unity.burst": "1.3.0-preview.12",
"com.unity.jobs": "0.2.9-preview.15",
"com.unity.properties": "1.4.3-preview",
"com.unity.test-framework.performance": "2.0.8-preview"
"version": "7.3.1",
"version": "10.2.2",
"com.unity.render-pipelines.core": "7.3.1"
"com.unity.render-pipelines.core": "10.2.2",
"com.unity.searcher": "4.3.1"
"version": "0.0.10-preview.13",
"depth": 0,
"version": "0.0.10-preview.14",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.simulation.core": "0.0.10-preview.19"

"url": "https://packages.unity.com"
},
"com.unity.simulation.core": {
"version": "0.0.10-preview.19",
"depth": 0,
"version": "0.0.10-preview.20",
"depth": 1,
"com.unity.sysroot": {
"version": "0.1.16-preview",
"depth": 1,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"
},
"com.unity.sysroot.linux-x86_64": {
"version": "0.1.12-preview",
"depth": 1,
"source": "registry",
"dependencies": {
"com.unity.sysroot": "0.1.16-preview"
},
"url": "https://packages.unity.com"
},
"version": "1.1.16",
"version": "1.1.19",
"com.unity.ext.nunit": "1.0.0",
"com.unity.ext.nunit": "1.0.5",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
},

"version": "1.3.3-preview",
"depth": 2,
"version": "2.3.1-preview",
"depth": 1,
"com.unity.modules.jsonserialize": "1.0.0"
"com.unity.nuget.newtonsoft-json": "2.0.0-preview"
},
"url": "https://packages.unity.com"
},

"url": "https://packages.unity.com"
},
"com.unity.textmeshpro": {
"version": "2.0.1",
"version": "3.0.1",
"depth": 0,
"source": "registry",
"dependencies": {

},
"com.unity.toolchain.win-x86_64-linux-x86_64": {
"version": "0.1.16-preview",
"depth": 0,
"source": "registry",
"dependencies": {
"com.unity.sysroot": "0.1.16-preview",
"com.unity.sysroot.linux-x86_64": "0.1.12-preview"
},
"url": "https://packages.unity.com"
},
"com.unity.ugui": {
"version": "1.0.0",
"depth": 0,

}
},
"com.unity.visualeffectgraph": {
"version": "7.3.1",
"version": "10.2.2",
"com.unity.shadergraph": "7.3.1"
"com.unity.shadergraph": "10.2.2"
},
"url": "https://packages.unity.com"
},

},
"nuget.mono-cecil": {
"version": "0.1.6-preview",
"depth": 1,
"depth": 2,
"source": "registry",
"dependencies": {},
"url": "https://packages.unity.com"

"depth": 0,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0",
"com.unity.modules.uielementsnative": "1.0.0"
}
},
"com.unity.modules.uielementsnative": {
"version": "1.0.0",
"depth": 1,
"source": "builtin",
"dependencies": {
"com.unity.modules.ui": "1.0.0",
"com.unity.modules.imgui": "1.0.0",
"com.unity.modules.jsonserialize": "1.0.0"
}

15
TestProjects/PerceptionHDRP/ProjectSettings/EditorSettings.asset


--- !u!159 &1
EditorSettings:
m_ObjectHideFlags: 0
serializedVersion: 9
m_ExternalVersionControlSupport: Visible Meta Files
serializedVersion: 11
m_SerializationMode: 2
m_LineEndingsForNewScripts: 2
m_DefaultBehaviorMode: 0

m_EtcTextureBestCompressor: 4
m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd;asmdef;rsp;asmref
m_ProjectGenerationRootNamespace:
m_CollabEditorSettings:
inProgressEnabled: 1
m_CachingShaderPreprocessor: 1
m_PrefabModeAllowAutoSave: 1
m_ShowLightmapResolutionOverlay: 1
m_GameObjectNamingDigits: 1
m_GameObjectNamingScheme: 0
m_AssetNamingUsesSpace: 1
m_SerializeInlineMappingsOnOneLine: 0
m_DisableCookiesInLightmapper: 0
m_AssetPipelineMode: 1
m_CacheServerMode: 0
m_CacheServerEndpoint:

m_CacheServerEnableAuth: 0
m_CacheServerEnableTls: 0

4
TestProjects/PerceptionHDRP/ProjectSettings/HDRPProjectSettings.asset


m_Name:
m_EditorClassIdentifier:
version: 1
m_DefaultScenePrefabSaved: {fileID: 0}
m_DefaultDXRScenePrefabSaved: {fileID: 0}
m_ProjectSettingFolderPath: HDRPDefaultResources
m_WizardPopupAtStart: 0
m_WizardPopupAlreadyShownOnce: 0

m_LastMaterialVersion: 2
m_LastMaterialVersion: 11

11
TestProjects/PerceptionHDRP/ProjectSettings/PackageManagerSettings.asset


m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 0}
m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0}
m_EditorClassIdentifier: UnityEditor:UnityEditor.PackageManager.UI:PackageManagerProjectSettings
m_EditorClassIdentifier:
m_EnablePreviewPackages: 1
m_EnablePackageDependencies: 1
m_AdvancedSettingsExpanded: 1
oneTimeWarningShown: 0
oneTimeWarningShown: 1
m_Registries:
- m_Id: main
m_Name:

m_Capabilities: 7
m_UserSelectedRegistryName:
m_UserAddingNewScopedRegistry: 0
m_RegistryInfoDraft:

m_Url:
m_Scopes: []
m_IsDefault: 0
m_Capabilities: 0
m_Modified: 0
m_Name:
m_Url:

78
TestProjects/PerceptionHDRP/ProjectSettings/ProjectSettings.asset


--- !u!129 &1
PlayerSettings:
m_ObjectHideFlags: 0
serializedVersion: 20
serializedVersion: 22
productGUID: 57f77c262a9af434b9423af9c6b04c37
AndroidProfiler: 0
AndroidFilterTouchesWhenObscured: 0

m_StereoRenderingPath: 0
m_ActiveColorSpace: 1
m_MTRendering: 1
mipStripping: 0
numberOfMipsStripped: 0
m_StackTraceTypes: 010000000100000001000000010000000100000001000000
iosShowActivityIndicatorOnLoading: -1
androidShowActivityIndicatorOnLoading: -1

stadiaTargetFramerate: 0
vulkanNumSwapchainBuffers: 2
vulkanEnableSetSRGBWrite: 0
vulkanEnablePreTransform: 0
vulkanEnableLateAcquireNextImage: 0
m_SupportedAspectRatios:
4:3: 1

xboxOneDisableKinectGpuReservation: 1
xboxOneEnable7thCore: 1
vrSettings:
cardboard:
depthFormat: 0
enableTransitionView: 0
daydream:
depthFormat: 0
useSustainedPerformanceMode: 0
enableVideoLayer: 0
useProtectedVideoMemory: 0
minimumSupportedHeadTracking: 0
maximumSupportedHeadTracking: 1
hololens:
depthFormat: 1
depthBufferSharingEnabled: 1
lumin:
depthFormat: 0
frameTiming: 2
enableGLCache: 0
glCacheMaxBlobSize: 524288
glCacheMaxFileSize: 8388608
oculus:
sharedDepthBuffer: 1
dashSupport: 1
lowOverheadMode: 0
protectedContext: 0
v2Signing: 1
enable360StereoCapture: 0
isWsaHolographicRemotingEnabled: 0
enableFrameTimingStats: 0

androidMaxAspectRatio: 2.1
applicationIdentifier:
Standalone: com.unity.PerceptionTest
buildNumber: {}
buildNumber:
Standalone: 0
iPhone: 0
tvOS: 0
overrideDefaultApplicationIdentifier: 0
AndroidBundleVersionCode: 1
AndroidMinSdkVersion: 19
AndroidTargetSdkVersion: 0

iOSLaunchScreeniPadFillPct: 100
iOSLaunchScreeniPadSize: 100
iOSLaunchScreeniPadCustomXibPath:
iOSUseLaunchScreenStoryboard: 0
iOSLaunchScreeniPadCustomStoryboardPath:
iOSDeviceRequirements: []
iOSURLSchemes: []
iOSBackgroundModes: 0

iOSRenderExtraFrameOnPause: 0
iosCopyPluginsCodeInsteadOfSymlink: 0
appleDeveloperTeamID:
iOSManualSigningProvisioningProfileID:
tvOSManualSigningProvisioningProfileID:

iOSRequireARKit: 0
iOSAutomaticallyDetectAndAddCapabilities: 1
appleEnableProMotion: 0
shaderPrecisionModel: 0
useCustomMainManifest: 0
useCustomLauncherManifest: 0
useCustomMainGradleTemplate: 0
useCustomLauncherGradleManifest: 0
useCustomBaseGradleTemplate: 0
useCustomGradlePropertiesTemplate: 0
useCustomProguardFile: 0
AndroidTargetArchitectures: 1
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}

height: 180
banner: {fileID: 0}
androidGamepadSupportLevel: 0
AndroidMinifyWithR8: 0
AndroidMinifyRelease: 0
AndroidMinifyDebug: 0
AndroidValidateAppBundleSize: 1
AndroidAppBundleSizeToValidate: 150
m_BuildTargetIcons: []

- m_BuildTarget: MacStandaloneSupport
m_APIs: 10000000
m_Automatic: 0
- m_BuildTarget: iOSSupport
m_APIs: 10000000
m_Automatic: 1
m_BuildTargetVRSettings: []
openGLRequireES31: 0
openGLRequireES31AEP: 0

tvOS: 1
m_BuildTargetGroupLightmapEncodingQuality: []
m_BuildTargetGroupLightmapSettings: []
m_BuildTargetNormalMapEncoding: []
playModeTestRunnerEnabled: 0
runPlayModeTestAsEditModeTest: 0
actionOnDotNetUnhandledException: 1

cameraUsageDescription:
locationUsageDescription:
microphoneUsageDescription:
switchNMETAOverride:
switchNetLibKey:
switchSocketMemoryPoolSize: 6144
switchSocketAllocatorPoolSize: 128

switchUseGOLDLinker: 0
switchApplicationID: 0x01004b9000490000
switchNSODependencies:
switchTitleNames_0:

switchSocketInitializeEnabled: 1
switchNetworkInterfaceManagerInitializeEnabled: 1
switchPlayerConnectionEnabled: 1
switchUseNewStyleFilepaths: 0
ps4NPAgeRating: 12
ps4NPTitleSecret:
ps4NPTrophyPackPath:

webGLAnalyzeBuildSize: 0
webGLUseEmbeddedResources: 0
webGLCompressionFormat: 0
webGLWasmArithmeticExceptions: 0
webGLWasmStreaming: 0
scriptingDefineSymbols: {}
webGLDecompressionFallback: 0
scriptingDefineSymbols:
30: UNITY_STANDALONE_LINUX_API
additionalCompilerArguments: {}
platformArchitecture: {}
scriptingBackend:
Standalone: 0

suppressCommonWarnings: 1
useDeterministicCompilation: 1
useReferenceAssemblies: 1
enableRoslynAnalyzers: 1
additionalIl2CppArgs:
scriptingRuntimeVersion: 1
gcIncremental: 0

XboxOneXTitleMemory: 8
XboxOneOverrideIdentityName:
XboxOneOverrideIdentityPublisher:
vrEditorSettings:
daydream:
daydreamIconForeground: {fileID: 0}
daydreamIconBackground: {fileID: 0}
vrEditorSettings: {}
cloudServicesEnabled: {}
luminIcon:
m_Name:

m_VersionCode: 1
m_VersionName:
apiCompatibilityLevel: 6
activeInputHandler: 0
qualitySettingsNames: []
enableNativePlatformBackendsForNewInputSystem: 0
disableOldInputManagerSupport: 0
virtualTexturingSupportEnabled: 0

4
TestProjects/PerceptionHDRP/ProjectSettings/ProjectVersion.txt


m_EditorVersion: 2019.4.12f1
m_EditorVersionWithRevision: 2019.4.12f1 (225e826a680e)
m_EditorVersion: 2020.2.0f1
m_EditorVersionWithRevision: 2020.2.0f1 (3721df5a8b28)

2
TestProjects/PerceptionHDRP/ProjectSettings/QualitySettings.asset


realtimeReflectionProbes: 1
billboardsFaceCameraPosition: 1
vSyncCount: 1
lodBias: 2
lodBias: 1
maximumLODLevel: 0
streamingMipmapsActive: 0
streamingMipmapsAddAllCameras: 1

2
TestProjects/PerceptionHDRP/ProjectSettings/VFXManager.asset


m_RenderPipeSettingsPath:
m_FixedTimeStep: 0.016666668
m_MaxDeltaTime: 0.05
m_CompiledVersion: 2
m_RuntimeVersion: 12

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


{
scenes = new[] { AssetDatabase.GetAssetPath(m_MainSceneField.value) },
locationPathName = Path.Combine(projectBuildDirectory, $"{m_RunNameField.value}.x86_64"),
#if USE_CLOUD_RENDERING
target = BuildTarget.CloudRendering
#else
#endif
};
var report = BuildPipeline.BuildPlayer(buildPlayerOptions);
var summary = report.summary;

2
com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/ExampleTag.cs


namespace RandomizationTests.RandomizerTests
{
public class ExampleTag : RandomizerTag { }
public class ExampleTag2 : ExampleTag { }
}

11
com.unity.perception/Tests/Runtime/Randomization/RandomizerTests/RandomizerTagTests.cs


for (var i = 0; i < copyCount - 1; i++)
Object.Instantiate(gameObject);
var gameObject2 = new GameObject();
gameObject2.AddComponent<ExampleTag2>();
for (var i = 0; i < copyCount - 1; i++)
Object.Instantiate(gameObject2);
queriedObjects = m_Scenario.tagManager.Query<ExampleTag2>().ToArray();
Assert.AreEqual(queriedObjects.Length, copyCount);
queriedObjects = m_Scenario.tagManager.Query<ExampleTag>(true).ToArray();
Assert.AreEqual(queriedObjects.Length, copyCount * 2);
}
}
}

2
com.unity.perception/package.json


"com.unity.burst": "1.3.9",
"com.unity.entities": "0.8.0-preview.8",
"com.unity.simulation.client": "0.0.10-preview.9",
"com.unity.simulation.capture": "0.0.10-preview.14",
"com.unity.simulation.capture": "0.0.10-preview.15",
"com.unity.simulation.core": "0.0.10-preview.20"
},
"description": "Tools for generating large-scale data sets for perception-based machine learning training and validation",

2
com.unity.perception/CHANGELOG.md


### Added
Randomizer tags now support inheritance
### Changed
### Deprecated

71
com.unity.perception/Runtime/Randomization/Randomizers/RandomizerTagManager.cs


/// </summary>
public class RandomizerTagManager
{
Dictionary<Type, List<Type>> m_TypeCache = new Dictionary<Type, List<Type>>();
Dictionary<GameObject, HashSet<Type>> m_ObjectTags = new Dictionary<GameObject, HashSet<Type>>();
/// <param name="returnSubclasses">Should this method retrieve all tags derived from the passed in tag also?</param>
public IEnumerable<GameObject> Query<T>() where T : RandomizerTag
public IEnumerable<GameObject> Query<T>(bool returnSubclasses = false) where T : RandomizerTag
yield return taggedObject;
{
if (returnSubclasses)
{
yield return taggedObject.gameObject;
}
else
{
if (m_ObjectTags.ContainsKey(taggedObject) && m_ObjectTags[taggedObject].Contains(type))
yield return taggedObject.gameObject;
}
}
if (!m_TagMap.ContainsKey(tagType))
m_TagMap[tagType] = new HashSet<GameObject>();
m_TagMap[tagType].Add(obj);
// Add tag to the game object to tag map
if (!m_ObjectTags.ContainsKey(obj))
m_ObjectTags[obj] = new HashSet<Type>();
m_ObjectTags[obj].Add(tagType);
if (!m_TypeCache.ContainsKey(tagType))
{
var inheritedTags = new List<Type>();
while (tagType != null && tagType != typeof(RandomizerTag))
{
inheritedTags.Add(tagType);
tagType = tagType.BaseType;
}
m_TypeCache[tagType] = inheritedTags;
}
var tags = m_TypeCache[tagType];
foreach (var tag in tags)
{
if (!m_TagMap.ContainsKey(tag))
m_TagMap[tag] = new HashSet<GameObject>();
m_TagMap[tag].Add(obj);
}
if (m_TagMap.ContainsKey(tagType))
m_TagMap[tagType].Remove(obj);
// Grab all of the tags from the inheritance tree, and remove
// the passed in object from all of them
if (m_TypeCache.ContainsKey(tagType))
{
var tags = m_TypeCache[tagType];
foreach (var tag in tags.Where(tag => m_TagMap.ContainsKey(tag)))
{
m_TagMap[tag].Remove(obj);
}
}
// Remove entry from the object to tag map
if (m_ObjectTags.ContainsKey(obj))
{
m_ObjectTags[obj].Remove(tagType);
if (!m_ObjectTags[obj].Any())
m_ObjectTags.Remove(obj);
}
}
}
}

19
com.unity.perception/Runtime/Randomization/Scenarios/ScenarioBase.cs


{
static ScenarioBase s_ActiveScenario;
const string k_ScenarioIterationMetricDefinitionId = "DB1B258E-D1D0-41B6-8751-16F601A2E230";
MetricDefinition m_IterationMetricDefinition;
IEnumerable<Randomizer> activeRandomizers
{

// Don't skip the first frame if executing on Unity Simulation
if (Configuration.Instance.IsSimulationRunningInCloud())
m_SkipFrame = false;
m_IterationMetricDefinition = DatasetCapture.RegisterMetricDefinition("scenario_iteration", "Iteration information for dataset sequences",
Guid.Parse(k_ScenarioIterationMetricDefinitionId));
}
void OnEnable()

void Start()
{
Deserialize();
}
struct IterationMetricData
{
public int iteration;
}
void Update()

if (currentIterationFrame == 0)
{
DatasetCapture.StartNewSequence();
DatasetCapture.ReportMetric(m_IterationMetricDefinition, new[]
{
new IterationMetricData()
{
iteration = currentIteration
}
});
IterateParameterStates();
foreach (var randomizer in activeRandomizers)
randomizer.IterationStart();

7
com.unity.perception/Runtime/GroundTruth/InstanceSegmentationPass.cs


public InstanceSegmentationPass()
{}
protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
//protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
protected override void Execute(CustomPassContext customPassContext)
CoreUtils.SetRenderTarget(cmd, targetTexture, ClearFlag.All);
m_InstanceSegmentationCrossPipelinePass.Execute(renderContext, cmd, hdCamera.camera, cullingResult);
CoreUtils.SetRenderTarget(customPassContext.cmd, targetTexture, ClearFlag.All);
m_InstanceSegmentationCrossPipelinePass.Execute(customPassContext.renderContext, customPassContext.cmd, customPassContext.hdCamera.camera, customPassContext.cullingResults);
}
public void EnsureInit()

7
com.unity.perception/Runtime/GroundTruth/SemanticSegmentationPass.cs


m_SemanticSegmentationCrossPipelinePass.Setup();
}
protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
//protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
protected override void Execute(CustomPassContext customPassContext)
CoreUtils.SetRenderTarget(cmd, targetTexture);
m_SemanticSegmentationCrossPipelinePass.Execute(renderContext, cmd, hdCamera.camera, cullingResult);
CoreUtils.SetRenderTarget(customPassContext.cmd, targetTexture);
m_SemanticSegmentationCrossPipelinePass.Execute(customPassContext.renderContext, customPassContext.cmd, customPassContext.hdCamera.camera, customPassContext.cullingResults);
}
}
}

7
com.unity.perception/Runtime/GroundTruth/GroundTruthPass.cs


this.targetDepthBuffer = TargetBuffer.Custom;
}
protected sealed override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
//protected sealed override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
protected sealed override void Execute(CustomPassContext customPassContext)
if (hdCamera.camera != targetCamera)
if (customPassContext.hdCamera.camera != targetCamera)
ExecutePass(renderContext, cmd, hdCamera, cullingResult);
ExecutePass(customPassContext.renderContext, customPassContext.cmd, customPassContext.hdCamera, customPassContext.cullingResults);
}
protected abstract void ExecutePass(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult);

7
com.unity.perception/Runtime/GroundTruth/LensDistortionPass.cs


m_LensDistortionCrossPipelinePass.Setup();
}
protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
//protected override void Execute(ScriptableRenderContext renderContext, CommandBuffer cmd, HDCamera hdCamera, CullingResults cullingResult)
protected override void Execute(CustomPassContext customPassContext)
CoreUtils.SetRenderTarget(cmd, targetTexture);
m_LensDistortionCrossPipelinePass.Execute(renderContext, cmd, hdCamera.camera, cullingResult);
CoreUtils.SetRenderTarget(customPassContext.cmd, targetTexture);
m_LensDistortionCrossPipelinePass.Execute(customPassContext.renderContext, customPassContext.cmd, customPassContext.hdCamera.camera, customPassContext.cullingResults);
}
}
}

6
com.unity.perception/Runtime/GroundTruth/Labelers/SemanticSegmentationLabeler.cs


const string k_SemanticSegmentationDirectory = "SemanticSegmentation";
const string k_SegmentationFilePrefix = "segmentation_";
string m_SemanticSegmentationDirectory;
/// <summary>
/// The id to associate with semantic segmentation annotations in the dataset.

targetTexture.Create();
targetTexture.name = "Labeling";
m_SemanticSegmentationDirectory = k_SemanticSegmentationDirectory + Guid.NewGuid();
#if HDRP_PRESENT
var gameObject = perceptionCamera.gameObject;

if (!m_AsyncAnnotations.TryGetValue(frameCount, out var annotation))
return;
var datasetRelativePath = $"{k_SemanticSegmentationDirectory}/{k_SegmentationFilePrefix}{frameCount}.png";
var localPath = $"{Manager.Instance.GetDirectoryFor(k_SemanticSegmentationDirectory)}/{k_SegmentationFilePrefix}{frameCount}.png";
var datasetRelativePath = $"{m_SemanticSegmentationDirectory}/{k_SegmentationFilePrefix}{frameCount}.png";
var localPath = $"{Manager.Instance.GetDirectoryFor(m_SemanticSegmentationDirectory)}/{k_SegmentationFilePrefix}{frameCount}.png";
annotation.ReportFile(datasetRelativePath);

4
com.unity.perception/Runtime/GroundTruth/SemanticSegmentationCrossPipelinePass.cs


protected override void ExecutePass(ScriptableRenderContext renderContext, CommandBuffer cmd, Camera camera, CullingResults cullingResult)
{
if (s_LastFrameExecuted == Time.frameCount)
{
Debug.LogError("Semantic segmentation was run twice in the same frame. Multiple semantic segmentations are not currently supported.");
}
return;
s_LastFrameExecuted = Time.frameCount;
var renderList = CreateRendererListDesc(camera, cullingResult, "FirstPass", 0, m_OverrideMaterial, -1);

正在加载...
取消
保存