浏览代码

Merge branch '0.2.0-staging' into aisv614_0.2.0

/aisv614_0.2.0
GitHub 4 年前
当前提交
dc11ac60
共有 15 个文件被更改,包括 431 次插入337 次删除
  1. 21
      .yamato/publish.yml
  2. 4
      .yamato/promote.yml
  3. 4
      TestProjects/PerceptionHDRP/Assets/IdLabelConfig.asset
  4. 11
      TestProjects/PerceptionHDRP/Assets/Scenes/SampleScene.unity
  5. 3
      com.unity.perception/CHANGELOG.md
  6. 204
      com.unity.perception/Documentation~/images/PerceptionCameraFinished.png
  7. 366
      com.unity.perception/Documentation~/images/MainCameraLabelConfig.PNG
  8. 125
      com.unity.perception/Documentation~/images/IDLabelingConfigurationFinished.PNG
  9. 28
      com.unity.perception/Documentation~/GettingStarted.md
  10. 2
      com.unity.perception/package.json
  11. 0
      .gitmodules
  12. 0
      /.yamato/promote.yml
  13. 0
      /com.unity.perception/Documentation~/images/PerceptionCameraFinished.png
  14. 0
      /com.unity.perception/Documentation~/images/MainCameraLabelConfig.PNG
  15. 0
      /com.unity.perception/Documentation~/images/IDLabelingConfigurationFinished.PNG

21
.yamato/publish.yml


{% metadata_file .yamato/environments.yml %}
---
{% for variant in package_variants %}
name: Publish {{ variant.name }} package to internal registry
name: Publish Perception package to internal registry
agent:
type: Unity::VM
image: package-ci/win10:stable

triggers:
tags:
only:
- "/^(r|R)(c|C)-+(-preview(+)?)?$/"
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/upm-ci-full.yml#pkg_test_{{variant.name}}_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-full.yml#pack_Perception
{% for editor in publish_editors %}
{% for platform in publish_platforms %}
{% for suite in suites %}
{% for project in projects %}
- .yamato/upm-ci-full.yml#pkg_test_Perception_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_windows_{{suite.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% endfor %}

4
.yamato/promote.yml


{% for platform in publish_platforms %}
{% for suite in suites %}
{% for project in projects %}
{% for variant in package_variants %}
- .yamato/upm-ci-full.yml#pkg_test_{{variant.name}}_{{platform.name}}_{{editor.version}}
- .yamato/upm-ci-full.yml#pkg_test_Perception_{{platform.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}

4
TestProjects/PerceptionHDRP/Assets/IdLabelConfig.asset


m_Name: IdLabelConfig
m_EditorClassIdentifier: Unity.Perception.Runtime:UnityEngine.Perception.GroundTruth:IdLabelConfig
m_LabelEntries:
- label: Box
- label: Crate
- label: Crate
- label: Box
id: 3
autoAssignIds: 1
startingLabelId: 1

11
TestProjects/PerceptionHDRP/Assets/Scenes/SampleScene.unity


asm: Unity.Perception.Runtime}
data:
enabled: 1
foldout: 0
labelingConfiguration: {fileID: 11400000, guid: be3971a848968144e8d07d9136a5bf49,
idLabelConfig: {fileID: 11400000, guid: 034ffd4e09ffb7348b2fe6634259058a,
type: 2}
00000001:
type: {class: SemanticSegmentationLabeler, ns: UnityEngine.Perception.GroundTruth,

foldout: 0
m_TargetTextureOverride: {fileID: 0}
foldout: 0
m_LabelingConfiguration: {fileID: 11400000, guid: be3971a848968144e8d07d9136a5bf49,
m_LabelConfig: {fileID: 11400000, guid: 034ffd4e09ffb7348b2fe6634259058a,
type: 2}
00000003:
type: {class: RenderedObjectInfoLabeler, ns: UnityEngine.Perception.GroundTruth,

foldout: 0
labelingConfiguration: {fileID: 11400000, guid: be3971a848968144e8d07d9136a5bf49,
idLabelConfig: {fileID: 11400000, guid: 034ffd4e09ffb7348b2fe6634259058a,
type: 2}
--- !u!1 &1640252278
GameObject:

3
com.unity.perception/CHANGELOG.md


The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0-preview.1] - 2020-07-02
### Added
Added CameraLabeler, an extensible base type for all forms of dataset output from a camera.
Added LabelConfig\<T\>, a base class for mapping labels to data used by a labeler. There are two new derived types - ID label config and semantic segmentation label config.

Changed Semantic Segmentation to take a SemanticSegmentationLabelConfig, which maps labels to color pixel values.
### Deprecated
### Removed

204
com.unity.perception/Documentation~/images/PerceptionCameraFinished.png

之前 之后
宽度: 701  |  高度: 415  |  大小: 45 KiB

366
com.unity.perception/Documentation~/images/MainCameraLabelConfig.PNG

之前 之后
宽度: 701  |  高度: 830  |  大小: 76 KiB

125
com.unity.perception/Documentation~/images/IDLabelingConfigurationFinished.PNG

之前 之后
宽度: 704  |  高度: 280  |  大小: 12 KiB

28
com.unity.perception/Documentation~/GettingStarted.md


1. Select your project's `ScriptableRenderer` asset and open the inspector window. In most projects it is located at `Assets/Settings/ForwardRenderer.asset`.
2. Click `Add Renderer Feature` and select `Ground Truth Renderer Feature`
<img src="images/ScriptableRendererStep.PNG" align="middle"/>
<img src="images/ScriptableRendererStep.png" align="middle"/>
## Step 3: Create a new scene and camera
1. Create a new scene using File -> New Scene

1. In the inspector panel of the main camera select Add Component
2. Add a **Perception Camera** component
<img src="images/MainCameraConfig.PNG" align="middle"/>
<img src="images/PerceptionCameraFinished.png" align="middle"/>
1. Create 2 more cubes this way
1. Change the names of the cubes to Cube, Box, and Crate
1. Position the Cubes in front of the main Camera
2. Create 2 more cubes this way
3. Change the names of the cubes to Cube, Box, and Crate
4. Position the Cubes in front of the main Camera
1. On each cube, from the inspector panel add a **Labeling** component
5. On each cube, from the inspector panel add a **Labeling** component
1. In the Project panel right click -> Perception -> Labeling Configuration
1. Select the new **Labeling Configuration**
6. In the Project panel right click -> Perception -> Labeling Configuration
7. Select the new **ID Label Config**
3. Add a numerical value to the value field
Make sure the labels all have different values, for this example use increments of 10,000 to ensure they show up as very distinct colors in the segmentation images
<img src="images/LabelingConfigurationFinished.PNG" align="middle"/>
<img src="images/IDLabelingConfigurationFinished.PNG" align="middle"/>
1. Select the Main Camera in the Hierarchy panel
1. In the Perception Camera attach the Labeling Configuration created in previous step
8. Select the Main Camera in the Hierarchy panel
9. In the Perception Camera attach the ID Label Config created in previous step for each ID Label config
<img src="images/MainCameraConfig.PNG" align="middle"/>
<img src="images/MainCameraLabelConfig.PNG" align="middle"/>
## Step 5: Run simulation and generate dataset
1. Press play in the editor, allow the scene to run for a few seconds, and then exit playmode

2
com.unity.perception/package.json


"displayName": "Perception",
"name": "com.unity.perception",
"unity": "2019.3",
"version": "0.1.0-preview.4"
"version": "0.2.0-preview.1"
}

0
.gitmodules

/.yamato/promotion.yml → /.yamato/promote.yml

/com.unity.perception/Documentation~/images/PerceptionCamera.png → /com.unity.perception/Documentation~/images/PerceptionCameraFinished.png

/com.unity.perception/Documentation~/images/MainCameraConfig.PNG → /com.unity.perception/Documentation~/images/MainCameraLabelConfig.PNG

/com.unity.perception/Documentation~/images/LabelingConfigurationFinished.PNG → /com.unity.perception/Documentation~/images/IDLabelingConfigurationFinished.PNG

正在加载...
取消
保存