com.unity.perception 0.7.0-preview.1
PreviewNotes: processedReleased February 6, 2021
Download Options
Direct package downloads captured from Unity's package registry.
Unity Compatibility
Minimum Unity: 2019.4
Package Dependencies
- com.unity.burst (1.3.9)
- com.unity.entities (0.8.0-preview.8)
- com.unity.nuget.newtonsoft-json (1.1.2)
- com.unity.render-pipelines.core (7.1.6)
- com.unity.simulation.capture (0.0.10-preview.19)
- com.unity.simulation.client (0.0.10-preview.10)
- com.unity.simulation.core (0.0.10-preview.22)
Known Issues
- The bounding box 3D labeler does not work with labeled assets that utilize a skinned mesh renderer. These are commonly used with animated models.
Features
- Added keypoint ground truth labeling
- Added animation randomization
- Added ScenarioConstants base class for all scenario constants objects
- Added ScenarioBase.SerializeToConfigFile()
- Randomizer tags now support inheritance
- Added AnimationCurveSampler, which returns random values according to a range and probability distribution denoted by a user provided AnimationCurve.
- Added ParameterUIElementsEditor class to allow custom ScriptableObjects and MonoBehaviours to render Parameter and Sampler typed public fields correctly in their inspector windows.
- Added new capture options to Perception Camera:
- Can now render intermediate frames between captures.
- Capture can now be triggered manually using a function call, instead of automatic capturing on a schedule.
- Added 3D bounding box visualizer
- Categorical Parameters will now validate that their specified options are unique at runtime.
Improvements
- Randomizers now access their parent scenario through the static activeScenario property.
- Unique seeds per Sampler have been replaced with one global random seed configured via the ScenarioConstants of a Scenario
- Samplers now derive their random state from the static SamplerState class instead of individual scenarios to allow parameters and samplers to be used outside of the context of a scenario
- Replaced ScenarioBase.GenerateRandomSeed() with SamplerState.NextRandomState() and SamplerState.CreateGenerator()
- ScenarioBase.Serialize() now directly returns the serialized scenario configuration JSON string instead of writing directly to a file (use SerializeToConfigFile() instead)
- ScenarioBase.Serialize() now not only serializes scenario constants, but also all sampler member fields on randomizers attached to the scenario
- RandomizerTagManager.Query() now returns RandomizerTags directly instead of the GameObjects attached to said tags
- Semantic Segmentation Labeler now places data in folders with randomized filenames.
- The uniform toggle on Categorical Parameters will now reset the Parameter's probability weights to be uniform.
- Reorganized Perception MonoBehaviour paths within the AddComponentMenu.
- Upgraded the Unity Simulation Capture package dependency to 0.0.10-preview.18 and Unity Simulation Core to 0.0.10-preview.22
- ### Deprecated
API Changes
- Removed ScenarioBase.GenerateRandomSeedFromIndex()
- Removed native sampling (through jobs) capability from all samplers and parameters as it introduced additional complexity to the code and was not a common usage pattern
- Removed `range` as a required ISampler interface property.
- Removed randomization tooling from the "Experimental" namespace
Bug Fixes
- Fixed an issue where the overlay panel would display a full screen semi-transparent image over the entire screen when the overlay panel is disabled in the UI
- Fixed a bug in instance segmentation labeler that erroneously logged that object ID 255 was not supported
- Fixed the simulation stopping while the editor/player is not focused
- Fixed memory leak or crash occurring at the end of long simulations when using BackgroundObjectPlacementRandomizer or ForegroundObjectPlacementRandomizer
- Randomizer.OnCreate() is no longer called in edit-mode when adding a randomizer to a scenario
- Fixed a bug where removing all randomizers from a scenario caused the randomizer container UI element to overflow over the end of Scenario component UI
- Semantic Segmentation Labeler now produces output in the proper form for distributed data generation on Unity Simulation by placing output in randomized directory names
- Texture Randomizer is now compatible with HDRP.
- Categorical Parameters no longer produce errors when deleting items from long options lists.
- Parameter, ISampler, and non-generic Sampler class UIs now render properly in MonoBehaviours and ScriptableObjects.
- Fixed an issue in the perception tutorial sample assets where upon the editor being first opened, and a user generates a dataset by clicking the play button, the first generated image has duplicated textures and hue offsets for all background objects. Enabling the "GPU instancing" boolean in the tutorial's sample material's inspector fixed this issue.
