Skip to content

Commit b82d7f9

Browse files
authored
Merge pull request #216 from agimus-project/opencv
OpenCV: fix wheel use
2 parents f396b05 + 52cd1de commit b82d7f9

File tree

8 files changed

+296
-3808
lines changed

8 files changed

+296
-3808
lines changed

.git-blame-ignore-revs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
0e80a5fc7c514dacd1d8b957adf42ad636b4b1e3 pre-commit run -a
1+
# pre-commit run -a
2+
0e80a5fc7c514dacd1d8b957adf42ad636b4b1e3

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@ conda activate happypose
3232
pip install -r requirements/base.txt
3333
```
3434

35+
With conda, you **must not** install `pypi`, `cpu` or `cu124` extras or requirements files.
36+
3537
### Example with uv
3638

3739
```
3840
git clone --branch dev --recurse-submodules https://github.com/agimus-project/happypose.git
3941
cd happypose
4042
uv sync --extra pypi --extra cpu # you *must* choose between cpu / cu124
43+
source .venv/bin/activate
4144
```
4245

4346
### Example with venv

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ dependencies = [
3636
"pybind11>=2.13.6",
3737
"pybullet>=3.2.6",
3838
"pypng>=0.20220715.0",
39+
"pytest-order>=1.3.0",
3940
"pytest>=8.3.3",
4041
"pyyaml>=6.0.2",
4142
"roma>=1.5.0",
@@ -74,7 +75,6 @@ cu124 = [
7475
evaluation = ["cmeel-teaser-plusplus>=2.0"]
7576
pypi = [
7677
"opencv-contrib-python>=4.10.0",
77-
"opencv-python>=4.10.0",
7878
"pin>=2.7"
7979
]
8080

requirements/base.txt

+8-7
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ bokeh==3.6.1
1313
bop-toolkit-lib @ git+https://github.com/agimus-project/bop_toolkit@53b6e2e335c4e6aa76e5db34e809506ee3f4cf16
1414
braceexpand==0.1.7
1515
certifi==2024.8.30
16-
cffi==1.17.1 ; os_name == 'nt' or implementation_name == 'pypy'
16+
cffi==1.17.1 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and platform_machine == 'aarch64' and sys_platform == 'linux') or (implementation_name != 'pypy' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and platform_machine != 'aarch64' and sys_platform == 'linux') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
1717
cfgv==3.4.0
1818
charset-normalizer==3.4.0
19-
colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
19+
colorama==0.4.6 ; sys_platform == 'win32' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2020
contourpy==1.3.1
2121
coverage==7.6.8
2222
cycler==0.12.1
2323
cython==3.0.11
2424
decorator==5.1.1
2525
distlib==0.3.9
26-
exceptiongroup==1.2.2 ; python_full_version < '3.11'
26+
exceptiongroup==1.2.2 ; python_full_version < '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2727
executing==2.1.0
2828
filelock==3.16.1
2929
fonttools==4.55.0
@@ -61,7 +61,7 @@ packaging==24.2
6161
panda3d==1.10.15
6262
pandas==2.2.3
6363
parso==0.8.4
64-
pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
64+
pexpect==4.9.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
6565
pillow==11.0.0
6666
platformdirs==4.3.6
6767
pluggy==1.5.0
@@ -70,11 +70,11 @@ pre-commit==4.0.1
7070
prompt-toolkit==3.0.48
7171
protobuf==5.28.3
7272
psutil==6.1.0
73-
ptyprocess==0.7.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
73+
ptyprocess==0.7.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
7474
pure-eval==0.2.3
7575
pybind11==2.13.6
7676
pybullet==3.2.6
77-
pycparser==2.22 ; os_name == 'nt' or implementation_name == 'pypy'
77+
pycparser==2.22 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and platform_machine == 'aarch64' and sys_platform == 'linux') or (implementation_name != 'pypy' and platform_machine == 'aarch64' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and platform_machine != 'aarch64' and sys_platform == 'linux') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
7878
pygments==2.18.0
7979
pyngrok==7.2.1
8080
pyopengl==3.1.0
@@ -83,6 +83,7 @@ pypng==0.20220715.0
8383
pyre-extensions==0.0.32
8484
pysocks==1.7.1
8585
pytest==8.3.3
86+
pytest-order==1.3.0
8687
python-dateutil==2.9.0.post0
8788
pytz==2024.2
8889
pyyaml==6.0.2
@@ -107,7 +108,7 @@ tensorboard==2.18.0
107108
tensorboard-data-server==0.7.2
108109
threadpoolctl==3.5.0
109110
tifffile==2024.9.20
110-
tomli==2.1.0 ; python_full_version <= '3.11'
111+
tomli==2.1.0 ; python_full_version <= '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
111112
torchnet==0.0.4
112113
torchtnt==0.2.4
113114
tornado==6.4.2

requirements/cpu.txt

+14-11
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ bokeh==3.6.1
1313
bop-toolkit-lib @ git+https://github.com/agimus-project/bop_toolkit@53b6e2e335c4e6aa76e5db34e809506ee3f4cf16
1414
braceexpand==0.1.7
1515
certifi==2024.8.30
16-
cffi==1.17.1 ; os_name == 'nt' or implementation_name == 'pypy'
16+
cffi==1.17.1 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name == 'pypy' and sys_platform == 'linux') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name != 'pypy' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
1717
cfgv==3.4.0
1818
charset-normalizer==3.4.0
19-
colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
19+
colorama==0.4.6 ; sys_platform == 'win32' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2020
contourpy==1.3.1
2121
coverage==7.6.8
2222
cycler==0.12.1
2323
cython==3.0.11
2424
decorator==5.1.1
2525
distlib==0.3.9
26-
exceptiongroup==1.2.2 ; python_full_version < '3.11'
26+
exceptiongroup==1.2.2 ; python_full_version < '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2727
executing==2.1.0
2828
filelock==3.16.1
2929
fonttools==4.55.0
@@ -62,7 +62,7 @@ packaging==24.2
6262
panda3d==1.10.15
6363
pandas==2.2.3
6464
parso==0.8.4
65-
pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
65+
pexpect==4.9.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
6666
pillow==11.0.0
6767
platformdirs==4.3.6
6868
pluggy==1.5.0
@@ -71,11 +71,11 @@ pre-commit==4.0.1
7171
prompt-toolkit==3.0.48
7272
protobuf==5.28.3
7373
psutil==6.1.0
74-
ptyprocess==0.7.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
74+
ptyprocess==0.7.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
7575
pure-eval==0.2.3
7676
pybind11==2.13.6
7777
pybullet==3.2.6
78-
pycparser==2.22 ; os_name == 'nt' or implementation_name == 'pypy'
78+
pycparser==2.22 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name == 'pypy' and sys_platform == 'linux') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name != 'pypy' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
7979
pygments==2.18.0
8080
pyngrok==7.2.1
8181
pyopengl==3.1.0
@@ -84,6 +84,7 @@ pypng==0.20220715.0
8484
pyre-extensions==0.0.32
8585
pysocks==1.7.1
8686
pytest==8.3.3
87+
pytest-order==1.3.0
8788
python-dateutil==2.9.0.post0
8889
pytz==2024.2
8990
pyyaml==6.0.2
@@ -109,13 +110,15 @@ tensorboard==2.18.0
109110
tensorboard-data-server==0.7.2
110111
threadpoolctl==3.5.0
111112
tifffile==2024.9.20
112-
tomli==2.1.0 ; python_full_version <= '3.11'
113-
torch==2.5.1 ; platform_system == 'Darwin'
114-
torch==2.5.1+cpu ; platform_system != 'Darwin'
113+
tomli==2.1.0 ; python_full_version <= '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
114+
torch==2.5.1 ; platform_machine == 'aarch64' and sys_platform == 'linux'
115+
torch==2.5.1 ; sys_platform == 'darwin'
116+
torch==2.5.1+cpu ; (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
115117
torchnet==0.0.4
116118
torchtnt==0.2.4
117-
torchvision==0.20.1 ; platform_system == 'Darwin'
118-
torchvision==0.20.1+cpu ; platform_system != 'Darwin'
119+
torchvision==0.20.1 ; platform_machine == 'aarch64' and sys_platform == 'linux'
120+
torchvision==0.20.1 ; sys_platform == 'darwin'
121+
torchvision==0.20.1+cpu ; (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
119122
tornado==6.4.2
120123
tqdm==4.67.1
121124
traitlets==5.14.3

requirements/cu124.txt

+25-24
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ bokeh==3.6.1
1313
bop-toolkit-lib @ git+https://github.com/agimus-project/bop_toolkit@53b6e2e335c4e6aa76e5db34e809506ee3f4cf16
1414
braceexpand==0.1.7
1515
certifi==2024.8.30
16-
cffi==1.17.1 ; os_name == 'nt' or implementation_name == 'pypy'
16+
cffi==1.17.1 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name == 'pypy' and sys_platform == 'linux') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name != 'pypy' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
1717
cfgv==3.4.0
1818
charset-normalizer==3.4.0
19-
colorama==0.4.6 ; sys_platform == 'win32' or platform_system == 'Windows'
19+
colorama==0.4.6 ; sys_platform == 'win32' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2020
contourpy==1.3.1
2121
coverage==7.6.8
2222
cycler==0.12.1
2323
cython==3.0.11
2424
decorator==5.1.1
2525
distlib==0.3.9
26-
exceptiongroup==1.2.2 ; python_full_version < '3.11'
26+
exceptiongroup==1.2.2 ; python_full_version < '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
2727
executing==2.1.0
2828
filelock==3.16.1
2929
fonttools==4.55.0
@@ -56,25 +56,25 @@ mypy-extensions==1.0.0
5656
networkx==3.4.2
5757
nodeenv==1.9.1
5858
numpy==1.26.4
59-
nvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and platform_system == 'Linux'
60-
nvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
61-
nvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
62-
nvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
63-
nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and platform_system == 'Linux'
64-
nvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and platform_system == 'Linux'
65-
nvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and platform_system == 'Linux'
66-
nvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and platform_system == 'Linux'
67-
nvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and platform_system == 'Linux'
68-
nvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and platform_system == 'Linux'
69-
nvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
70-
nvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and platform_system == 'Linux'
59+
nvidia-cublas-cu12==12.4.5.8 ; platform_machine == 'x86_64' and sys_platform == 'linux'
60+
nvidia-cuda-cupti-cu12==12.4.127 ; platform_machine == 'x86_64' and sys_platform == 'linux'
61+
nvidia-cuda-nvrtc-cu12==12.4.127 ; platform_machine == 'x86_64' and sys_platform == 'linux'
62+
nvidia-cuda-runtime-cu12==12.4.127 ; platform_machine == 'x86_64' and sys_platform == 'linux'
63+
nvidia-cudnn-cu12==9.1.0.70 ; platform_machine == 'x86_64' and sys_platform == 'linux'
64+
nvidia-cufft-cu12==11.2.1.3 ; platform_machine == 'x86_64' and sys_platform == 'linux'
65+
nvidia-curand-cu12==10.3.5.147 ; platform_machine == 'x86_64' and sys_platform == 'linux'
66+
nvidia-cusolver-cu12==11.6.1.9 ; platform_machine == 'x86_64' and sys_platform == 'linux'
67+
nvidia-cusparse-cu12==12.3.1.170 ; platform_machine == 'x86_64' and sys_platform == 'linux'
68+
nvidia-nccl-cu12==2.21.5 ; platform_machine == 'x86_64' and sys_platform == 'linux'
69+
nvidia-nvjitlink-cu12==12.4.127 ; platform_machine == 'x86_64' and sys_platform == 'linux'
70+
nvidia-nvtx-cu12==12.4.127 ; platform_machine == 'x86_64' and sys_platform == 'linux'
7171
omegaconf==2.3.0
7272
outcome==1.3.0.post0
7373
packaging==24.2
7474
panda3d==1.10.15
7575
pandas==2.2.3
7676
parso==0.8.4
77-
pexpect==4.9.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
77+
pexpect==4.9.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
7878
pillow==11.0.0
7979
platformdirs==4.3.6
8080
pluggy==1.5.0
@@ -83,11 +83,11 @@ pre-commit==4.0.1
8383
prompt-toolkit==3.0.48
8484
protobuf==5.28.3
8585
psutil==6.1.0
86-
ptyprocess==0.7.0 ; sys_platform != 'emscripten' and sys_platform != 'win32'
86+
ptyprocess==0.7.0 ; (sys_platform != 'emscripten' and sys_platform != 'win32') or (sys_platform == 'emscripten' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (sys_platform == 'win32' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
8787
pure-eval==0.2.3
8888
pybind11==2.13.6
8989
pybullet==3.2.6
90-
pycparser==2.22 ; os_name == 'nt' or implementation_name == 'pypy'
90+
pycparser==2.22 ; (implementation_name == 'pypy' and os_name != 'nt') or (implementation_name == 'pypy' and sys_platform == 'darwin') or (implementation_name == 'pypy' and sys_platform == 'linux') or (implementation_name != 'pypy' and sys_platform == 'darwin' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (implementation_name != 'pypy' and sys_platform == 'linux' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124') or (os_name == 'nt' and sys_platform != 'darwin' and sys_platform != 'linux') or (os_name != 'nt' and extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
9191
pygments==2.18.0
9292
pyngrok==7.2.1
9393
pyopengl==3.1.0
@@ -96,6 +96,7 @@ pypng==0.20220715.0
9696
pyre-extensions==0.0.32
9797
pysocks==1.7.1
9898
pytest==8.3.3
99+
pytest-order==1.3.0
99100
python-dateutil==2.9.0.post0
100101
pytz==2024.2
101102
pyyaml==6.0.2
@@ -121,21 +122,21 @@ tensorboard==2.18.0
121122
tensorboard-data-server==0.7.2
122123
threadpoolctl==3.5.0
123124
tifffile==2024.9.20
124-
tomli==2.1.0 ; python_full_version <= '3.11'
125-
torch==2.5.1 ; platform_system == 'Darwin'
126-
torch==2.5.1+cu124 ; platform_system != 'Darwin'
125+
tomli==2.1.0 ; python_full_version <= '3.11' or (extra == 'extra-9-happypose-cpu' and extra == 'extra-9-happypose-cu124')
126+
torch==2.5.1 ; (platform_machine == 'aarch64' and sys_platform == 'linux') or sys_platform == 'darwin'
127+
torch==2.5.1+cu124 ; (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
127128
torchnet==0.0.4
128129
torchtnt==0.2.4
129-
torchvision==0.20.1 ; platform_system == 'Darwin'
130-
torchvision==0.20.1+cu124 ; platform_system != 'Darwin'
130+
torchvision==0.20.1 ; (platform_machine == 'aarch64' and sys_platform == 'linux') or sys_platform == 'darwin'
131+
torchvision==0.20.1+cu124 ; (platform_machine != 'aarch64' and sys_platform == 'linux') or (sys_platform != 'darwin' and sys_platform != 'linux')
131132
tornado==6.4.2
132133
tqdm==4.67.1
133134
traitlets==5.14.3
134135
transforms3d==0.4.2
135136
trimesh==4.5.2
136137
trio==0.27.0
137138
trio-websocket==0.11.1
138-
triton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and platform_system == 'Linux'
139+
triton==3.1.0 ; python_full_version < '3.13' and platform_machine == 'x86_64' and sys_platform == 'linux'
139140
typing-extensions==4.12.2
140141
typing-inspect==0.9.0
141142
tzdata==2024.2

0 commit comments

Comments
 (0)