poselib-gpu 0.1.0__cp312-abi3-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,303 @@
1
+ """poselib-gpu: robust relative pose and absolute pose (PnP) for calibrated cameras.
2
+
3
+ The five-point solver and P3P inside LO-RANSAC, with non-linear refinement, ported from PoseLib
4
+ (https://github.com/PoseLib/PoseLib), with GPU kernels for Metal and CUDA where a GPU is measured faster.
5
+ Use PoseLib for real work: this is a test bed for batching and GPU kernels.
6
+
7
+ Every call takes a batch of problems: a list of image pairs, or a list of images to register. Conventions
8
+ are the C API's (include/jpo/jpo.h): a pose is ``qw qx qy qz tx ty tz`` and maps a point X to R(q) X + t,
9
+ world to camera (absolute) or camera a to camera b with |t| = 1 (relative); camera axes are x right, y
10
+ down, z forward; cameras are COLMAP's models with COLMAP's parameter order.
11
+
12
+ >>> import poselib_gpu as pg
13
+ >>> ctx = pg.Context() # backend "auto": the GPU where it is faster
14
+ >>> cam = pg.Camera("PINHOLE", [800, 800, 320, 240])
15
+ >>> r = ctx.relative_pose([xy_a], [xy_b], cam)
16
+ >>> r.pose[0], r.n_inliers[0], r.inliers[0]
17
+ """
18
+
19
+ from __future__ import annotations
20
+
21
+
22
+ # start delvewheel patch
23
+ def _delvewheel_patch_1_13_2():
24
+ import os
25
+ if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, 'poselib_gpu.libs'))):
26
+ os.add_dll_directory(libs_dir)
27
+
28
+
29
+ _delvewheel_patch_1_13_2()
30
+ del _delvewheel_patch_1_13_2
31
+ # end delvewheel patch
32
+
33
+ from dataclasses import dataclass
34
+ from typing import Sequence, Union
35
+
36
+ import numpy as np
37
+
38
+ from . import _core
39
+ from ._build_info import CUDA_VERSION, VARIANT, __version__
40
+
41
+ __all__ = [
42
+ "BACKENDS",
43
+ "CAMERA_MODELS",
44
+ "CUDA_VERSION",
45
+ "Camera",
46
+ "Context",
47
+ "PoseResults",
48
+ "STATUS",
49
+ "VARIANT",
50
+ "__version__",
51
+ "backend_available",
52
+ "camera_param_count",
53
+ "compiled_backends",
54
+ ]
55
+
56
+ # jpo_backend
57
+ BACKENDS = {"auto": 0, "cpu": 1, "metal": 2, "cuda": 3, "webgpu": 4}
58
+ # jpo_camera_model: COLMAP's names and ids
59
+ CAMERA_MODELS = {
60
+ "SIMPLE_PINHOLE": 0,
61
+ "PINHOLE": 1,
62
+ "SIMPLE_RADIAL": 2,
63
+ "RADIAL": 3,
64
+ "OPENCV": 4,
65
+ "OPENCV_FISHEYE": 5,
66
+ }
67
+ # jpo_status
68
+ STATUS = {0: "ok", 1: "no_model", 2: "too_few_points", 3: "degenerate"}
69
+
70
+
71
+ def _backend_id(backend: Union[str, int]) -> int:
72
+ if isinstance(backend, str):
73
+ try:
74
+ return BACKENDS[backend.lower()]
75
+ except KeyError:
76
+ raise ValueError(f"unknown backend {backend!r}; one of {sorted(BACKENDS)}") from None
77
+ return int(backend)
78
+
79
+
80
+ def _model_id(model: Union[str, int]) -> int:
81
+ if isinstance(model, str):
82
+ try:
83
+ return CAMERA_MODELS[model.upper()]
84
+ except KeyError:
85
+ raise ValueError(f"unknown camera model {model!r}; one of {list(CAMERA_MODELS)}") from None
86
+ return int(model)
87
+
88
+
89
+ def camera_param_count(model: Union[str, int]) -> int:
90
+ """Number of parameters of a camera model (3 .. 8); 0 for an unknown model id."""
91
+ return _core.camera_param_count(_model_id(model))
92
+
93
+
94
+ def backend_available(backend: Union[str, int]) -> bool:
95
+ """Whether this build has the backend ("cpu" and "auto": always). The device is checked by Context."""
96
+ return _core.backend_available(_backend_id(backend))
97
+
98
+
99
+ def compiled_backends() -> list[str]:
100
+ """The backends this build has, besides "auto"."""
101
+ return [name for name, i in BACKENDS.items() if i and _core.backend_available(i)]
102
+
103
+
104
+ @dataclass(frozen=True)
105
+ class Camera:
106
+ """A calibrated camera: one of COLMAP's models (name or id) and its parameters in COLMAP's order."""
107
+
108
+ model: Union[str, int]
109
+ params: Sequence[float]
110
+
111
+ def __post_init__(self) -> None:
112
+ mid = _model_id(self.model)
113
+ count = _core.camera_param_count(mid)
114
+ if count == 0:
115
+ raise ValueError(f"unknown camera model {self.model!r}")
116
+ params = tuple(float(p) for p in self.params)
117
+ if len(params) != count:
118
+ raise ValueError(f"camera model {self.model!r} takes {count} parameters, got {len(params)}")
119
+ object.__setattr__(self, "model", next(k for k, v in CAMERA_MODELS.items() if v == mid))
120
+ object.__setattr__(self, "params", params)
121
+
122
+
123
+ @dataclass
124
+ class PoseResults:
125
+ """One entry per problem, in the order given.
126
+
127
+ pose: (n, 7) ``qw qx qy qz tx ty tz``. score: MSAC score in pixels^2. median_tri_angle_deg: relative
128
+ pose only, the median triangulation angle of the inliers (0 for PnP). n_inliers, iterations
129
+ (hypotheses drawn), status (0 ok, 1 no model, 2 too few points, 3 degenerate: see STATUS).
130
+ inliers: a boolean mask per problem, or None when not asked for.
131
+
132
+ Status "ok" only says that a model with more inliers than a minimal sample was found: accept a pair or
133
+ a registration by your own rule on n_inliers.
134
+ """
135
+
136
+ pose: np.ndarray
137
+ score: np.ndarray
138
+ median_tri_angle_deg: np.ndarray
139
+ n_inliers: np.ndarray
140
+ iterations: np.ndarray
141
+ status: np.ndarray
142
+ inliers: list[np.ndarray] | None
143
+
144
+ def __len__(self) -> int:
145
+ return len(self.pose)
146
+
147
+ @property
148
+ def ok(self) -> np.ndarray:
149
+ """Status ok, per problem."""
150
+ return self.status == 0
151
+
152
+
153
+ def _pack(arrays: Sequence, cols: int, name: str) -> tuple[np.ndarray, np.ndarray]:
154
+ """Concatenates a list of (m_i, cols) arrays; returns the rows and the offsets (n + 1)."""
155
+ parts = []
156
+ for a in arrays:
157
+ a = np.asarray(a, dtype=np.float64)
158
+ if a.size == 0:
159
+ a = a.reshape(0, cols)
160
+ if a.ndim != 2 or a.shape[1] != cols:
161
+ raise ValueError(f"each array of {name} must have shape (m, {cols})")
162
+ parts.append(a)
163
+ offsets = np.zeros(len(parts) + 1, dtype=np.uint32)
164
+ np.cumsum([len(p) for p in parts], out=offsets[1:])
165
+ rows = np.concatenate(parts) if parts else np.zeros((0, cols))
166
+ return np.ascontiguousarray(rows, dtype=np.float64), offsets
167
+
168
+
169
+ def _cameras(cameras) -> tuple[list[Camera], np.ndarray, np.ndarray]:
170
+ cams = [cameras] if isinstance(cameras, Camera) else list(cameras)
171
+ if not cams:
172
+ raise ValueError("at least one camera is needed")
173
+ for c in cams:
174
+ if not isinstance(c, Camera):
175
+ raise TypeError("cameras must be Camera objects")
176
+ models = np.array([CAMERA_MODELS[c.model] for c in cams], dtype=np.int32)
177
+ params = np.zeros((len(cams), 8), dtype=np.float64)
178
+ for i, c in enumerate(cams):
179
+ params[i, : len(c.params)] = c.params
180
+ return cams, models, params
181
+
182
+
183
+ def _indices(index, n: int, n_cameras: int, name: str) -> np.ndarray:
184
+ if index is None:
185
+ if n_cameras != 1:
186
+ raise ValueError(f"{name} is needed with more than one camera: an index into cameras per problem")
187
+ return np.zeros(n, dtype=np.uint32)
188
+ idx = np.asarray(index)
189
+ if idx.ndim == 0:
190
+ idx = np.full(n, int(idx))
191
+ if idx.shape != (n,):
192
+ raise ValueError(f"{name} needs one camera index per problem ({n})")
193
+ if n and (idx.min() < 0 or idx.max() >= n_cameras):
194
+ raise ValueError(f"{name} has an index outside cameras")
195
+ return np.ascontiguousarray(idx, dtype=np.uint32)
196
+
197
+
198
+ def _results(raw, offsets: np.ndarray) -> PoseResults:
199
+ pose, score, angle, n_inliers, iterations, status, mask = raw
200
+ inliers = None
201
+ if mask is not None:
202
+ m = np.asarray(mask).astype(bool)
203
+ inliers = [m[offsets[i] : offsets[i + 1]] for i in range(len(offsets) - 1)]
204
+ return PoseResults(pose, score, angle, n_inliers, iterations, status, inliers)
205
+
206
+
207
+ class Context:
208
+ """A solver: the backend, its threads and its GPU device, kept for any number of calls (one at a time).
209
+
210
+ backend: "auto" (default: every problem starts on the CPU, and those still running move to the GPU
211
+ when that is measured faster; the CPU alone without a GPU), "cpu", "metal", "cuda" or "webgpu".
212
+ seed: the same seed draws the same samples on every backend. threads: CPU threads, 0 = all.
213
+ cpu_float: run the CPU backend in float32, as the GPU kernels do (for testing). gpu_round: hypotheses
214
+ per problem in one GPU dispatch, 0 = 2048. Raises RuntimeError when the backend cannot be created.
215
+ """
216
+
217
+ def __init__(
218
+ self,
219
+ backend: Union[str, int] = "auto",
220
+ *,
221
+ seed: int = 0,
222
+ threads: int = 0,
223
+ cpu_float: bool = False,
224
+ gpu_round: int = 0,
225
+ ) -> None:
226
+ self._ctx = _core.Context(_backend_id(backend), seed, threads, cpu_float, gpu_round)
227
+
228
+ @property
229
+ def backend(self) -> str:
230
+ """The backend in use: "cpu", "metal", "cuda", "webgpu" or "auto(<gpu>)"."""
231
+ return self._ctx.backend
232
+
233
+ def __repr__(self) -> str:
234
+ return f"poselib_gpu.Context(backend={self.backend!r})"
235
+
236
+ def relative_pose(
237
+ self,
238
+ xy_a: Sequence,
239
+ xy_b: Sequence,
240
+ cameras,
241
+ camera_a=None,
242
+ camera_b=None,
243
+ *,
244
+ max_error_px: float = 1.0,
245
+ confidence: float = 0.9999,
246
+ min_iterations: int = 100,
247
+ max_iterations: int = 10000,
248
+ refine: bool = True,
249
+ min_inlier_ratio: float = 0.0,
250
+ inliers: bool = True,
251
+ ) -> PoseResults:
252
+ """Relative poses of image pairs (five-point solver in LO-RANSAC).
253
+
254
+ xy_a, xy_b: one (m_i, 2) array of matched pixels per pair, in image a and image b. cameras: a
255
+ Camera, or a list of them with camera_a and camera_b giving each pair's index (or one index for
256
+ every pair). Options as jpo_ransac_options. The pose is camera a to camera b with |t| = 1.
257
+ """
258
+ if len(xy_a) != len(xy_b):
259
+ raise ValueError("xy_a and xy_b need one array per pair")
260
+ a, offsets = _pack(xy_a, 2, "xy_a")
261
+ b, offsets_b = _pack(xy_b, 2, "xy_b")
262
+ if not np.array_equal(offsets, offsets_b):
263
+ raise ValueError("each pair needs as many points in xy_a as in xy_b")
264
+ cams, models, params = _cameras(cameras)
265
+ n = len(xy_a)
266
+ ia = _indices(camera_a, n, len(cams), "camera_a")
267
+ ib = _indices(camera_b if camera_b is not None else camera_a, n, len(cams), "camera_b")
268
+ raw = self._ctx.relative(offsets, a, b, models, params, ia, ib, max_error_px, confidence,
269
+ min_iterations, max_iterations, refine, min_inlier_ratio, inliers)
270
+ return _results(raw, offsets)
271
+
272
+ def absolute_pose(
273
+ self,
274
+ xy: Sequence,
275
+ xyz: Sequence,
276
+ cameras,
277
+ camera=None,
278
+ *,
279
+ max_error_px: float = 4.0,
280
+ confidence: float = 0.9999,
281
+ min_iterations: int = 100,
282
+ max_iterations: int = 10000,
283
+ refine: bool = True,
284
+ min_inlier_ratio: float = 0.0,
285
+ inliers: bool = True,
286
+ ) -> PoseResults:
287
+ """Absolute poses (PnP: P3P in LO-RANSAC) of images to register against known world points.
288
+
289
+ xy: one (m_i, 2) array of pixels per image; xyz: the matching (m_i, 3) world points. cameras: a
290
+ Camera, or a list with camera giving each image's index. min_inlier_ratio > 0 lets candidates that
291
+ cannot pass give up early (several candidate images in one call). The pose is world to camera.
292
+ """
293
+ if len(xy) != len(xyz):
294
+ raise ValueError("xy and xyz need one array per image")
295
+ p2, offsets = _pack(xy, 2, "xy")
296
+ p3, offsets_3 = _pack(xyz, 3, "xyz")
297
+ if not np.array_equal(offsets, offsets_3):
298
+ raise ValueError("each image needs as many points in xy as in xyz")
299
+ cams, models, params = _cameras(cameras)
300
+ idx = _indices(camera, len(xy), len(cams), "camera")
301
+ raw = self._ctx.absolute(offsets, p2, p3, models, params, idx, max_error_px, confidence,
302
+ min_iterations, max_iterations, refine, min_inlier_ratio, inliers)
303
+ return _results(raw, offsets)
@@ -0,0 +1,6 @@
1
+ # Written by CMake (bindings/python/build_info.py.in); do not edit.
2
+ __version__ = "0.1.0"
3
+ # "cpu" (poselib-gpu), "cu12" or "cu13" (poselib-gpu-cu12, poselib-gpu-cu13), "source" (a CMake build).
4
+ VARIANT = "cpu"
5
+ # The CUDA toolkit the CUDA backend was built with, or "" without one.
6
+ CUDA_VERSION = ""
poselib_gpu/_core.pyd ADDED
Binary file
poselib_gpu/_core.pyi ADDED
@@ -0,0 +1,27 @@
1
+ """
2
+ poselib-gpu's C API (include/jpo/jpo.h); use the poselib_gpu package, which wraps it.
3
+ """
4
+
5
+ from typing import Annotated
6
+
7
+ import numpy
8
+ from numpy.typing import NDArray
9
+
10
+
11
+ def camera_param_count(model: int) -> int:
12
+ """
13
+ Number of parameters of a camera model id (3 .. 8), 0 for an unknown model.
14
+ """
15
+
16
+ def backend_available(backend: int) -> bool:
17
+ """Whether this build has the backend id (CPU and auto: always)."""
18
+
19
+ class Context:
20
+ def __init__(self, backend: int, seed: int, threads: int, cpu_float: bool, gpu_round: int) -> None: ...
21
+
22
+ @property
23
+ def backend(self) -> str: ...
24
+
25
+ def relative(self, offsets: Annotated[NDArray[numpy.uint32], dict(order='C', device='cpu', writable=False)], xy_a: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], xy_b: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], models: Annotated[NDArray[numpy.int32], dict(order='C', device='cpu', writable=False)], params: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], camera_a: Annotated[NDArray[numpy.uint32], dict(order='C', device='cpu', writable=False)], camera_b: Annotated[NDArray[numpy.uint32], dict(order='C', device='cpu', writable=False)], max_error_px: float, confidence: float, min_iterations: int, max_iterations: int, refine: bool, min_inlier_ratio: float, want_inliers: bool) -> tuple[NDArray[numpy.float64], NDArray[numpy.float64], NDArray[numpy.float64], NDArray[numpy.uint32], NDArray[numpy.uint32], NDArray[numpy.int32], object]: ...
26
+
27
+ def absolute(self, offsets: Annotated[NDArray[numpy.uint32], dict(order='C', device='cpu', writable=False)], xy: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], xyz: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], models: Annotated[NDArray[numpy.int32], dict(order='C', device='cpu', writable=False)], params: Annotated[NDArray[numpy.float64], dict(order='C', device='cpu', writable=False)], camera: Annotated[NDArray[numpy.uint32], dict(order='C', device='cpu', writable=False)], max_error_px: float, confidence: float, min_iterations: int, max_iterations: int, refine: bool, min_inlier_ratio: float, want_inliers: bool) -> tuple[NDArray[numpy.float64], NDArray[numpy.float64], NDArray[numpy.float64], NDArray[numpy.uint32], NDArray[numpy.uint32], NDArray[numpy.int32], object]: ...
poselib_gpu/py.typed ADDED
File without changes
@@ -0,0 +1,2 @@
1
+ Version: 1.13.2
2
+ Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-qyc8ipw7\\cp312-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-qyc8ipw7\\cp312-win_amd64\\repaired_wheel', '-v', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-qyc8ipw7\\cp312-win_amd64\\built_wheel\\poselib_gpu-0.1.0-cp312-abi3-win_amd64.whl']
@@ -0,0 +1,91 @@
1
+ Metadata-Version: 2.4
2
+ Name: poselib-gpu
3
+ Version: 0.1.0
4
+ Summary: Batched robust relative and absolute pose (PnP) for calibrated cameras, ported from PoseLib, with Metal and CUDA kernels
5
+ Keywords: relative pose,PnP,RANSAC,structure from motion,PoseLib,GPU
6
+ License-Expression: Apache-2.0 AND BSD-3-Clause
7
+ License-File: LICENSE
8
+ License-File: LICENSE.PoseLib
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Science/Research
11
+ Classifier: Operating System :: MacOS
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: C++
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
17
+ Project-URL: Documentation, https://poselib-gpu.pages.dev
18
+ Project-URL: Source, https://github.com/manlito/poselib-gpu
19
+ Project-URL: PoseLib, https://github.com/PoseLib/PoseLib
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: numpy>=1.26
22
+ Provides-Extra: test
23
+ Requires-Dist: pytest; extra == "test"
24
+ Description-Content-Type: text/markdown
25
+
26
+ # poselib-gpu
27
+
28
+ Robust relative pose and absolute pose (PnP) for calibrated cameras, over batches of problems: the five-point
29
+ solver and P3P inside LO-RANSAC, with non-linear refinement, ported from
30
+ [PoseLib](https://github.com/PoseLib/PoseLib), with hand-written GPU kernels for Metal and CUDA where a GPU is
31
+ measured faster than the CPU.
32
+
33
+ **Use [PoseLib](https://github.com/PoseLib/PoseLib) for real work.** This project is a test bed for batching and
34
+ GPU kernels, not a replacement for it. It adds nothing to PoseLib except speed: no new solvers, models or
35
+ features, and only a subset of what PoseLib offers. The methods, and the credit for them, are PoseLib's
36
+ (BSD-3-Clause, Copyright (c) 2020 Viktor Larsson; the notice ships in the package).
37
+
38
+ ## Install
39
+
40
+ One of three packages, all providing the module `poselib_gpu`:
41
+
42
+ | Package | Platforms | Backends |
43
+ |---|---|---|
44
+ | `poselib-gpu` | Linux x86_64, macOS arm64, Windows x86_64 | CPU; Metal on macOS |
45
+ | `poselib-gpu-cu12` | Linux x86_64, Windows x86_64 | CPU and CUDA, built with CUDA 12 (GPUs from Pascal, sm_60) |
46
+ | `poselib-gpu-cu13` | Linux x86_64, Windows x86_64 | CPU and CUDA, built with CUDA 13 (GPUs from Turing, sm_75) |
47
+
48
+ ```bash
49
+ pip install poselib-gpu # or poselib-gpu-cu12 / poselib-gpu-cu13
50
+ ```
51
+
52
+ The CUDA packages link the CUDA runtime statically: they need only an NVIDIA driver that supports their CUDA
53
+ version, and no CUDA toolkit. Install one package, not several.
54
+
55
+ ## Use
56
+
57
+ ```python
58
+ import numpy as np
59
+ import poselib_gpu as pg
60
+
61
+ ctx = pg.Context() # "auto": every problem starts on the CPU; those still
62
+ # running move to the GPU where that is measured faster
63
+ cam = pg.Camera("PINHOLE", [fx, fy, cx, cy])
64
+
65
+ # Image pairs: one (m, 2) array of matched pixels per pair, in image a and in image b.
66
+ r = ctx.relative_pose([xy_a0, xy_a1], [xy_b0, xy_b1], cam, max_error_px=1.0)
67
+ r.pose # (n, 7): qw qx qy qz tx ty tz, camera a to camera b, |t| = 1
68
+ r.n_inliers # (n,)
69
+ r.inliers # one boolean mask per pair
70
+ r.median_tri_angle_deg, r.status, r.iterations, r.score
71
+
72
+ # Images to register: pixels and their world points.
73
+ r = ctx.absolute_pose([xy0, xy1], [xyz0, xyz1], cam, max_error_px=4.0, min_inlier_ratio=0.25)
74
+ r.pose # world to camera
75
+ ```
76
+
77
+ Several cameras: pass a list and give each problem its index (`camera_a`, `camera_b` for pairs, `camera` for
78
+ images). Cameras are COLMAP's models with COLMAP's parameter order: `SIMPLE_PINHOLE`, `PINHOLE`,
79
+ `SIMPLE_RADIAL`, `RADIAL`, `OPENCV`, `OPENCV_FISHEYE`. A status of `0` (ok) only says a model was found:
80
+ accept a pair or a registration by your own rule on `n_inliers`.
81
+
82
+ `pg.Context("cpu")`, `"metal"` or `"cuda"` picks a backend; `pg.compiled_backends()` lists the ones the package
83
+ has, and `pg.VARIANT`, `pg.CUDA_VERSION` and `pg.__version__` say which build it is. The `auto` rule was
84
+ measured on an M5 Pro (Metal) and an RTX 2070 Max-Q (CUDA); on other GPUs it is a reasonable start, not a
85
+ measurement.
86
+
87
+ Documentation, the C API and measurements: <https://poselib-gpu.pages.dev> and
88
+ <https://github.com/manlito/poselib-gpu>.
89
+
90
+ Licence: Apache-2.0. The solvers are ported from PoseLib (BSD-3-Clause, Copyright (c) 2020 Viktor Larsson); its
91
+ notice is in the package.
@@ -0,0 +1,12 @@
1
+ poselib_gpu/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ poselib_gpu/_build_info.py,sha256=wrvGzDj1Pw-6znoM4RnroffHT730OozEZBa8_I-JcMM,305
3
+ poselib_gpu/_core.pyd,sha256=R-RPIAD5cOm7Qqigu3bgIxcmdfTWOvqLCWZSWQu7XE8,331776
4
+ poselib_gpu/_core.pyi,sha256=07zsQ9d-tDXU30h2OCq12Aj8Iq-TV50pYkDmwYIUijo,2440
5
+ poselib_gpu/__init__.py,sha256=XPqOwrUpNJ_02bevH5RFFbUJpYaSdj6tUL5wAf_vkx8,11981
6
+ poselib_gpu-0.1.0.dist-info/DELVEWHEEL,sha256=bJOkCMdcL1fB3TEUoveBlNsI4ox3gR9AeQuJQkXrXAM,409
7
+ poselib_gpu-0.1.0.dist-info/METADATA,sha256=bno_AwqeB7LX8QR0Dfss7OR-R7WiaYzoc8LPfVF0cIQ,4332
8
+ poselib_gpu-0.1.0.dist-info/RECORD,,
9
+ poselib_gpu-0.1.0.dist-info/WHEEL,sha256=8_VRiNQbKO5y5eAOf8e1j64w5TmsZcQyvXjqQfIKHN4,104
10
+ poselib_gpu-0.1.0.dist-info/licenses/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
11
+ poselib_gpu-0.1.0.dist-info/licenses/LICENSE.PoseLib,sha256=8pdN_HgDhY5MPTXE1fJikc8HK2YHpWHKovrkdYv8E9I,1551
12
+ poselib_gpu.libs/msvcp140-a4c2229bdc2a2a630acdc095b4d86008.dll,sha256=pMIim9wqKmMKzcCVtNhgCOXD47x3cxdDVPPaT1vrnN4,575056
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: scikit-build-core 1.1.2
3
+ Root-Is-Purelib: false
4
+ Tag: cp312-abi3-win_amd64
5
+
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,29 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2020, Viktor Larsson
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are met:
8
+
9
+ 1. Redistributions of source code must retain the above copyright notice, this
10
+ list of conditions and the following disclaimer.
11
+
12
+ 2. Redistributions in binary form must reproduce the above copyright notice,
13
+ this list of conditions and the following disclaimer in the documentation
14
+ and/or other materials provided with the distribution.
15
+
16
+ 3. Neither the name of the copyright holder nor the names of its
17
+ contributors may be used to endorse or promote products derived from
18
+ this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.