github NVIDIA/ncore v20.0.0-rc.2

pre-releaseone hour ago

Highlights

Second release candidate of NCore 20: rc.1 with a fix for the cost of generic frame data lookups (see below). The APIs are frozen for 20.0, and only fixes are planned until the final release. Install with pip install --pre nvidia-ncore or nvidia-ncore==20.0.0rc2.

Fixed since rc.1

  • has_frame_generic_data (also of the compat API) cost time proportional to the size of the whole hierarchy instead of the frame's generic data group: it listed all generic data names of the frame, and zarr-python 2 lists groups of consolidated hierarchies by scanning all node metadata keys of the hierarchy. For sequences with ~1,400 frames and a few generic data arrays per frame (~36,000 metadata keys) a check took ~10 ms, and reads of several generic data fields for many frames spent most of their time in these checks. Checks now look up the name (~20 us), and listings of groups of consolidated hierarchies use an index built on the first listing (e.g. get_frame_generic_data_names ~10 ms -> ~100 us). With zarr-python 3, which isn't affected by the scaling, checks are ~6x faster. The same fix is in 19.9.2.
  • The documentation footer shows the documented version and commit.

NCore 20 keeps the data format: data written by NCore 19.x is read by NCore 20, and data written by NCore 20 in zarr format v2 (the default) is read by NCore 19.x. Major features compared to NCore 19.x:

  • zarr-python 3 support (zarr-python 2 remains supported), and component stores in zarr format v3 (opt-in).
  • Faster reads: 1.7x to 5.5x faster frame reads of local .itar archives via non-blocking and range-read APIs.
    • Remote storage / faster opening: .itar stores are opened with a single request, with exact range reads for synchronous reads.
    • Asynchronous APIs: *_async reads of all component readers and of the compat API, and asynchronous opening of sequences (SequenceLoaderV4.open_async), next to the new synchronous SequenceLoaderV4.open.
    • Storage write / read APIs: reads into preallocated buffers, arrays written by selection or from chunks encoded on worker threads, and hierarchies opened from consolidated metadata when stored.
  • Public packages: ncore.data, ncore.data.v4, ncore.data.stores, ncore.geometry and ncore.sensors now export every type their APIs take and return; ncore.impl is fully internal.
  • Camera models: ray generation and projections return valid flags, the OpenCV pinhole projection validity is derived from the radial distortion, and FTheta cameras support new tangential distortion coefficients.
  • Faster motion compensation: ~1.5x faster exact method (default), and an interpolated method (MotionCompensator.Parameters.Method.INTERPOLATED).

For upgrading from NCore 19.x, see the Upgrading from NCore 19.x guide.

Thanks to Dezhen Lu (@0z5a), Nick Lucas (@nlucas-nvidia) and Sanchit Garg (@sanchitgarg) for their contributions to this release!

Changes since v19.8.0

➕ Added

  • (data_converter) default zarr format 2 (0d9137a) - @janickm
  • BREAKING (data) sync loader opening, default motion compensators and V4 component API consistency (68391b9) - @janickm
  • BREAKING (sensors) factory-only model construction, uniform validity returns and camera model conventions (fbf9400) - @janickm
  • BREAKING (data) uniform write checks, release_index_tail without consolidated, and Group / Array API consistency (1347a09) - @janickm
  • BREAKING keyword-only optional parameters and public types of the storage, loader and sensor APIs (9a5a639) - @janickm
  • (data) export BloscCompression and EncodedArray from ncore.data.stores (bb30302) - @janickm
  • (data) open hierarchies from consolidated metadata if stored (f224965) - @janickm
  • (data) create arrays from chunks encoded on other threads (8fc4f14) - @janickm
  • (data) create fill-valued arrays and write selections of them (d4114e8) - @janickm
  • (data) read arrays into preallocated output buffers (9dc561a) - @janickm
  • BREAKING (sensors) derive the OpenCV pinhole projection validity from its radial distortion (ffad25e) - @janickm
  • (sensors) add FTheta tangential distortion coefficients (b7a158d) - @janickm
  • public storage and geometry packages, ray validity helpers (bcd3e49) - @janickm
  • BREAKING (sensors) return validity flags from structured lidar ray generation (05e6e86) - @janickm
  • BREAKING (sensors) return validity flags from camera ray generation (e1b44a8) - @janickm
  • (data) open sequences asynchronously (dfe3729) - @janickm
  • (data) asynchronous reads of SequenceLoaderV4 (d49ca46) - @janickm
  • (data) asynchronous compat protocols (d97b7ce) - @janickm
  • (data) range reads of remote archives for synchronous reads (1880cb6) - @janickm
  • (data) asynchronous component reader API (f67caa3) - @janickm
  • BREAKING (data) zarr format v3 stores (c5fce26) - @janickm
  • BREAKING (data) support zarr-python 3 (2cee604) - @janickm
  • BREAKING (data) typed node API for component groups (ff2eeb0) - @janickm

🪲 Fixed

  • (data) read remote archive records as bytes for any buffer type of the filesystem (de0d61e) - @janickm
  • (data) reject multi-storage-client < 1.4.0 for remote archives (7f5f200) - @janickm
  • (geometry) exclude samples outside the interval from HalfClosedInterval.cover_range (0d1d0d9) - @0z5a
  • BREAKING (sensors,geometry) raise ValueError instead of AssertionError in user-facing validation (0a1c2a7) - @janickm
  • BREAKING (data) raise ValueError instead of AssertionError in V4 writer validation (bc1b114) - @janickm
  • (sensors) keep projection valid indices 1-D for single valid points (b47c5a0) - @nlucas-nvidia
  • (sensors) apply the converged Newton step in the bracketed fisheye inverse (16d2f65) - @janickm
  • (sensors) bracket the OpenCV fisheye inverse to the monotonic branch (71a0602) - @janickm
  • (data) read single poses with their stored dtype (1de0192) - @janickm
  • type narrowing in ncore_export_ply and the argoverse2 converter test (348262a) - @janickm
  • (kitti) keep lidar point timestamps integer (5bf8f9f) - @janickm

⚡ Performance

  • (data) look up generic frame data without listing all members (9a62feb) - @janickm
  • (geometry) add an interpolated motion compensation method (84d965b) - @janickm
  • (sensors) skip zero tangential and thin-prism terms in OpenCV pinhole (2419967) - @janickm
  • (sensors) skip identity linear term in FTheta camera model (1c0c1bf) - @janickm
  • (data) release index tail reads of opened archives (10c2609) - @janickm
  • (data) open remote indexed tar archives with a single request (f57784c) - @janickm
  • (data) direct chunk reads with zarr-python 3 (979882a) - @janickm
  • (data) node cache for component readers (0d6c43d) - @janickm
  • (data) cache decoded label types and schemas in CameraLabelDescriptor.from_dict (1813046) - @janickm
  • (data) load label and point-cloud reader data on first use (fe6eaf2) - @janickm

🔄 Changed

  • (tools) import the public packages instead of ncore.impl (7007cc4) - @janickm
  • BREAKING (geometry) typed pose interpolator and a result type for motion decompensation (4efd97b) - @janickm
  • BREAKING (data) move is_consolidated_metadata_key to Store (5175459) - @janickm
  • (sensors) construct sensor return types through their defining class (e7c26c3) - @janickm
  • (data) restructure IndexedTarArchive (fd9a4f0) - @janickm
  • BREAKING (data) implement IndexedTarArchive independently of zarr-python (cd3078f) - @janickm

📚 Documentation

⚙️ CI

🏗️ Build

🎨 Style

🔧 Chore

  • map Dezhen Lu (0z5a) to his GitHub username in release notes (0f40da0) - @janickm
  • map Nick Lucas to his GitHub username in release notes (0a4d576) - @janickm

🧪 Tests

  • (sensors) check camera ray valid flags in the unprojection tests (22db77d) - @janickm
  • (sensors) share the lidar model between tests of a parameterization (c490c63) - @janickm
  • run tests with a single OpenMP thread (2d4263f) - @janickm
  • make tests independent of scipy / numpy versions (f2d59b0) - @janickm

New since v20.0.0-rc.1

⚡ Performance
  • (data) look up generic frame data without listing all members (9a62feb) - @janickm
📚 Documentation
  • show the documented version and commit in the footer (bf884ac) - @janickm

Changes since v20.0.0-rc.1: v20.0.0-rc.1...v20.0.0-rc.2
Full diff: v19.8.0...v20.0.0-rc.2

Don't miss a new ncore release

NewReleases is sending notifications on new releases.