2
2
3
3
[ ![ Conda] ( https://github.com/agimus-project/happypose/actions/workflows/conda-test.yml/badge.svg )] ( https://github.com/agimus-project/happypose/actions/workflows/conda-test.yml )
4
4
[ ![ Pip] ( https://github.com/agimus-project/happypose/actions/workflows/pip-test.yml/badge.svg )] ( https://github.com/agimus-project/happypose/actions/workflows/pip-test.yml )
5
- [ ![ Poetry ] ( https://github.com/agimus-project/happypose/actions/workflows/poetry -test.yml/badge.svg )] ( https://github.com/agimus-project/happypose/actions/workflows/poetry -test.yml )
5
+ [ ![ uv ] ( https://github.com/agimus-project/happypose/actions/workflows/uv -test.yml/badge.svg )] ( https://github.com/agimus-project/happypose/actions/workflows/uv -test.yml )
6
6
[ ![ Book] ( https://github.com/agimus-project/happypose/actions/workflows/book.yml/badge.svg )] ( https://github.com/agimus-project/happypose/actions/workflows/book.yml )
7
7
8
8
[ ![ pre-commit.ci status] ( https://results.pre-commit.ci/badge/github/agimus-project/happypose/main.svg )] ( https://results.pre-commit.ci/latest/github/agimus-project/happypose/main )
@@ -16,7 +16,7 @@ Toolbox and trackers for object pose-estimation. Based on the work [CosyPose](ht
16
16
17
17
## Installation
18
18
19
- To install happypose, you can use pip or poetry .
19
+ To install happypose, you can use pip or uv .
20
20
21
21
We strongly suggest to install it in either a
22
22
[ venv] ( https://docs.python.org/fr/3/library/venv.html ) or a
@@ -29,7 +29,15 @@ git clone --branch dev --recurse-submodules https://github.com/agimus-project/ha
29
29
cd happypose
30
30
conda env create -f environment.yml
31
31
conda activate happypose
32
- pip install .
32
+ pip install -r requirements/base.txt
33
+ ```
34
+
35
+ ### Example with uv
36
+
37
+ ```
38
+ git clone --branch dev --recurse-submodules https://github.com/agimus-project/happypose.git
39
+ cd happypose
40
+ uv sync --extra pypi --extra cpu # you *must* choose between cpu / cu124
33
41
```
34
42
35
43
### Example with venv
@@ -39,13 +47,14 @@ git clone --branch dev --recurse-submodules https://github.com/agimus-project/ha
39
47
cd happypose
40
48
python -m venv .venv
41
49
source .venv/bin/activate
42
- pip install .[ pypi]
50
+ pip install -r requirements/ pypi.txt -r requirements/cpu.txt # you *must* choose between cpu / cu124
43
51
```
44
52
45
53
### Install extras:
46
54
47
- - ` multiview ` : installs cosypose c++ extension
48
- - ` pypi ` : install torch, pinocchio & opencv from PyPI (don't use this with conda)
55
+ - ` pypi ` : install pinocchio & opencv from PyPI (don't use this with conda)
56
+ - ` cpu ` : install torch for CPU from wheel (don't use this with conda)
57
+ - ` cu124 ` : install torch for CUDA 12.4 from wheel (don't use this with conda)
49
58
50
59
## Create data directory
51
60
0 commit comments