-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from agimus-project/next-pack
Update packaging, CI, and tools
- Loading branch information
Showing
319 changed files
with
14,014 additions
and
9,095 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0e80a5fc7c514dacd1d8b957adf42ad636b4b1e3 pre-commit run -a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Tests with pip | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install EGL mesa - required for Panda3D renderer | ||
run: sudo apt-get update && sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev rclone | ||
|
||
- name: Caching of the happypose installation and data | ||
uses: actions/cache@v3 | ||
with: | ||
path: local_data | ||
key: data | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Update pip | ||
run: pip install -U pip | ||
|
||
- name: Install happypose | ||
run: pip install ".[render,cpu,evaluation]" --extra-index-url https://download.pytorch.org/whl/cpu | ||
|
||
- name: Download pre-trained models required for tests | ||
run: | | ||
mkdir -p local_data | ||
python -m happypose.toolbox.utils.download \ | ||
--megapose_models \ | ||
--examples \ | ||
crackers_example \ | ||
--cosypose_models \ | ||
detector-bop-ycbv-pbr--970850 \ | ||
coarse-bop-ycbv-pbr--724183 \ | ||
refiner-bop-ycbv-pbr--604090 | ||
- name: Run tests | ||
run: python -m unittest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Tests with poetry + Coverage | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Install EGL mesa - required for Panda3D renderer | ||
run: sudo apt-get update && sudo apt-get install -qqy libegl1-mesa libegl1-mesa-dev rclone | ||
|
||
- name: Setup poetry | ||
run: pipx install poetry | ||
|
||
- name: Caching of the happypose installation and data | ||
uses: actions/cache@v3 | ||
with: | ||
path: local_data | ||
key: data | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: poetry | ||
|
||
- name: Install happypose | ||
run: poetry install --with dev -E render -E cpu -E evaluation | ||
|
||
- name: Download pre-trained models required for tests | ||
run: | | ||
mkdir -p local_data | ||
poetry run python -m happypose.toolbox.utils.download \ | ||
--megapose_models \ | ||
--examples \ | ||
crackers_example \ | ||
--cosypose_models \ | ||
detector-bop-ycbv-pbr--970850 \ | ||
coarse-bop-ycbv-pbr--724183 \ | ||
refiner-bop-ycbv-pbr--604090 | ||
- name: Run tests | ||
run: poetry run coverage run --source=happypose -m unittest | ||
|
||
- name: Process coverage | ||
run: poetry run coverage xml | ||
|
||
- uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,5 @@ __pycache__ | |
*.cpython | ||
experiments/outputs | ||
/book | ||
happypose/pose_estimators/cosypose/build/ | ||
local_data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,3 @@ | ||
[submodule "happypose/pose_estimators/cosypose/deps/bop_toolkit_challenge"] | ||
path = happypose/pose_estimators/cosypose/deps/bop_toolkit_challenge | ||
url = https://github.com/ylabbe/bop_toolkit_challenge20.git | ||
[submodule "happypose/pose_estimators/cosypose/deps/bop_toolkit_cosypose"] | ||
path = happypose/pose_estimators/cosypose/deps/bop_toolkit_cosypose | ||
url = https://github.com/ylabbe/bop_toolkit_cosypose.git | ||
[submodule "happypose/pose_estimators/cosypose/deps/job-runner"] | ||
path = happypose/pose_estimators/cosypose/deps/job-runner | ||
url = https://github.com/ylabbe/job-runner.git | ||
[submodule "deps/bop_toolkit_challenge"] | ||
path = deps/bop_toolkit_challenge | ||
url = https://github.com/thodan/bop_toolkit | ||
[submodule "deps/bop_renderer"] | ||
path = deps/bop_renderer | ||
url = https://github.com/thodan/bop_renderer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
exclude: 'cosypose|megapose6d|happypose|experiments' | ||
repos: | ||
#- repo: https://github.com/pre-commit/pre-commit-hooks | ||
#rev: v4.4.0 | ||
#hooks: | ||
#- id: check-added-large-files | ||
#- id: check-ast | ||
#- id: check-executables-have-shebangs | ||
#- id: check-json | ||
#- id: check-merge-conflict | ||
#- id: check-symlinks | ||
#- id: check-toml | ||
#- id: check-yaml | ||
#- id: debug-statements | ||
#- id: destroyed-symlinks | ||
#- id: detect-private-key | ||
#- id: end-of-file-fixer | ||
#- id: fix-byte-order-marker | ||
#- id: mixed-line-ending | ||
#- id: trailing-whitespace | ||
#- repo: https://github.com/PyCQA/isort | ||
#rev: 5.12.0 | ||
#hooks: | ||
#- id: isort | ||
#- repo: https://github.com/psf/black | ||
#rev: 23.3.0 | ||
#hooks: | ||
#- id: black | ||
- repo: https://github.com/pappasam/toml-sort | ||
rev: v0.23.1 | ||
hooks: | ||
- id: toml-sort-fix | ||
exclude: 'poetry.lock' | ||
#- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
#rev: v0.0.267 | ||
#hooks: | ||
#- id: ruff | ||
#args: [--fix, --exit-non-zero-on-fix] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/charliermarsh/ruff-pre-commit | ||
rev: v0.0.267 | ||
hooks: | ||
- id: ruff | ||
args: | ||
- --fix | ||
- --exit-non-zero-on-fix | ||
- repo: https://github.com/pappasam/toml-sort | ||
rev: v0.23.1 | ||
hooks: | ||
- id: toml-sort-fix | ||
exclude: poetry.lock | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-ast | ||
- id: check-executables-have-shebangs | ||
- id: check-json | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: check-toml | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: destroyed-symlinks | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
- id: fix-byte-order-marker | ||
- id: mixed-line-ending | ||
- id: trailing-whitespace | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
hooks: | ||
- id: black |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
defaults: | ||
- base_dsgen | ||
- base_dsgen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ defaults: | |
- default | ||
few: True | ||
verbose: True | ||
debug: True | ||
debug: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
defaults: | ||
- default | ||
dataset_id: gso_1M | ||
dataset_id: gso_1M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
defaults: | ||
- base_job_env | ||
conda_env: 'happypose' | ||
conda_env: 'happypose' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ defaults: | |
- base_local_job | ||
nodes: 1 | ||
tasks_per_node: 1 | ||
gpus_per_node: 1 | ||
gpus_per_node: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ defaults: | |
gpus_per_node: 1 | ||
mem_per_gpu: '8GB' | ||
cpus_per_gpu: 12 | ||
mem_per_cpu: '2.7GB' | ||
mem_per_cpu: '2.7GB' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.