Skip to content

Commit

Permalink
Release 0.1.9 (#56)
Browse files Browse the repository at this point in the history
* OAK D SR POE and some reliability improvements (#35)

* WIP add support for tof (oak d sr poe)

* Accommodate new sdk, make tof stream show up, more or less properly. Still need to fix a few gui bugs.

* Fixed gui bugs with which sensors are "AI capable" improved a bit on resolution search stability.  did py-lints

* install wheel from artifactory

* Update rerun_py/depthai_viewer/_backend/device.py

* Update rerun_py/depthai_viewer/_backend/device.py

* UI changes (#36)

* fixed wrong timestamp in xlink plot

* WIP add support for tof (oak d sr poe)

* Accommodate new sdk, make tof stream show up, more or less properly. Still need to fix a few gui bugs.

* UI changes

* device setting ui changes

* xlink timestamp fix

* dependency installer ui respect style

* more information when downloading blobs fails

* fix formatting
  • Loading branch information
zrezke authored Apr 28, 2024
1 parent ea0cdb3 commit c76ea66
Show file tree
Hide file tree
Showing 19 changed files with 1,356 additions and 883 deletions.
67 changes: 56 additions & 11 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ jobs:
if [[ $TAGGED_OR_MAIN ]]; then
# MacOS build is really slow (>30 mins); uses up a lot of CI minutes
matrix+=('{"platform": "macos", "runs_on": "macos-latest"},')
matrix+=('{"platform": "macos", "runs_on": "macos-latest", "pip": "pip", "python": "python3"},')
fi
matrix+=('{"platform": "windows", "runs_on": "windows-latest"},')
matrix+=('{"platform": "linux", "runs_on": "ubuntu-latest", container: {"image": "rerunio/ci_docker:0.5"}}')
matrix+=('{"platform": "windows", "runs_on": "windows-latest", "pip": "pip", "python": "python"},')
matrix+=('{"platform": "linux", "runs_on": "ubuntu-latest", container: {"image": "rerunio/ci_docker:0.5"}, "pip": "pip", "python": "python3"},')
matrix+=('{"platform": "aarch64", "runs_on": ["self-hosted", "linux", "ARM64"], container: {"image": "quay.io/pypa/manylinux_2_28_aarch64"}, "pip": "python3.8 -m pip", "python": "python3.8"}')
echo "Matrix values: ${matrix[@]}"
Expand All @@ -109,6 +110,10 @@ jobs:
container: ${{ matrix.container }}

steps:
- name: Install rust
if: matrix.platform == 'aarch64'
run: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && echo "$HOME/.cargo/bin" >> $GITHUB_PATH

- uses: actions/checkout@v3

# These should already be in the docker container, but run for good measure. A no-op install
Expand All @@ -122,6 +127,20 @@ jobs:
version: 2.0 # Increment this to pull newer packages
execute_install_scripts: true

- name: Cache DNF packages
if: matrix.platform == 'aarch64'
uses: actions/cache@v2
with:
path: |
/var/cache/dnf
key: ${{ runner.os }}-dnf-aarch64

- name: AARCH64 install packages
if: matrix.platform == 'aarch64'
run: |
dnf makecache --refresh
dnf install -y gtk3-devel openssl-devel
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
with:
Expand All @@ -134,7 +153,7 @@ jobs:
# The pip-cache setup logic doesn't work in the ubuntu docker container
# That's probably fine since we bake these deps into the container already
- name: Setup python
if: matrix.platform != 'linux'
if: matrix.platform != 'linux' && matrix.platform != 'aarch64'
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
Expand All @@ -144,7 +163,14 @@ jobs:
# These should already be in the docker container, but run for good measure. A no-op install
# should be fast, and this way things don't break if we add new packages without rebuilding
# docker
- run: pip install -r rerun_py/requirements-build.txt
- name: "Install build requirements"
run: |
if [ "${{ matrix.platform }}" = "aarch64" ]; then
${{ matrix.pip }} install -r rerun_py/requirements-build.txt && echo "/opt/_internal/cpython-3.8.16/bin" >> $GITHUB_PATH
else
${{ matrix.pip }} install -r rerun_py/requirements-build.txt
fi
shell: bash

# ----------------------------------------------------------------------------------
# Install prerequisites for building the web-viewer Wasm
Expand Down Expand Up @@ -186,16 +212,17 @@ jobs:
# After patching the pre-release version, run cargo check.
# This updates the cargo.lock file with the new version numbers and keeps the wheel build from failing
run: |
python3 scripts/version_util.py --patch_prerelease
${{ matrix.python }} scripts/version_util.py --patch_prerelease
cargo check
- name: Version check for tagged-release
if: startsWith(github.ref, 'refs/tags/v') && github.event_name != 'workflow_dispatch'
# This call to version_util.py will assert version from Cargo.toml matches git tagged version vX.Y.Z
run: |
python3 scripts/version_util.py --check_version
${{ matrix.python }} scripts/version_util.py --check_version
- name: Build Wheel
if: matrix.platform != 'aarch64'
uses: PyO3/maturin-action@v1
with:
maturin-version: "0.14.10"
Expand All @@ -209,19 +236,33 @@ jobs:
--features pypi
--universal2
--out pre-dist
-i ${{ matrix.python }}
- name: Build Wheel (aarch64)
if: matrix.platform == 'aarch64'
run: python3.8 -m maturin build --manifest-path rerun_py/Cargo.toml --release --no-default-features --features pypi --universal2 --out pre-dist

- name: Install built wheel
run: |
pip install depthai_viewer --find-links pre-dist --force-reinstall
${{ matrix.pip }} install depthai_viewer --find-links pre-dist --force-reinstall
- name: Run tests
run: cd rerun_py/tests && pytest
shell: bash
run: |
if [ "${{ matrix.platform }}" = "aarch64" ]; then
cd rerun_py/tests && python3.8 -m pytest
else
cd rerun_py/tests && pytest
fi
- name: Unpack the wheel
shell: bash
run: |
mkdir unpack-dist
wheel unpack pre-dist/*.whl --dest unpack-dist
if [ "${{ matrix.platform }}" == "aarch64" ]; then
python3.8 -m wheel unpack pre-dist/*.whl --dest unpack-dist
else
wheel unpack pre-dist/*.whl --dest unpack-dist
fi
- name: Get the folder name
shell: bash
Expand All @@ -232,7 +273,11 @@ jobs:
shell: bash
run: |
mkdir dist
wheel pack unpack-dist/${{ env.pkg_folder }} --dest dist/
if [ "${{ matrix.platform }}" == "aarch64" ]; then
python3.8 -m wheel pack unpack-dist/${{ env.pkg_folder }} --dest dist/
else
wheel pack unpack-dist/${{ env.pkg_folder }} --dest dist/
fi
- name: Upload wheels
uses: actions/upload-artifact@v3
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Depthai Viewer changelog

## 0.1.9

- Added the new ToF decoding improvements.
- The default AI model is now Yolo V6 instead of mobilenet-ssd.
- Fixed OAK-D-SR-POE crashing on startup.
- Fixed deformed bounding boxes.

## 0.1.8

- Performance fix.
Expand Down
Loading

0 comments on commit c76ea66

Please sign in to comment.