8000 Updates for pycolmap by ahojnnes · Pull Request #2672 · colmap/colmap · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Updates for pycolmap #2672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pycolmap/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
# Python bindings for COLMAP

PyCOLMAP exposes to Python most capabilities of
[COLMAP](https://colmap.github.io/) for Structure-from-Motion and
Multiview-stereo, such as reconstruction pipelines & objects and geometric
estimators.
PyCOLMAP exposes to Python most capabilities of the
[COLMAP](https://colmap.github.io/) Structure-from-Motion (SfM) and Multi-View
Stereo (MVS) pipeline.

## Installation

Pre-built wheels for Python 3.8/3.9/3.10 on Linux, macOS 10/11/12 (both Intel
and Apple Silicon), and Windows can be installed using pip:
Pre-built wheels for Linux, macOS, and Windows can be installed using pip:
```bash
pip install pycolmap
```
Expand All @@ -25,10 +23,12 @@ not built with CUDA support, which requires building from source.
3. Build PyCOLMAP:
- On Linux and macOS:
```bash
cd pycolmap
python -m pip install .
```
- On Windows, after installing COLMAP [via VCPKG](https://colmap.github.io/install.html#id3), run in powershell:
```powershell
cd pycolmap
python -m pip install . `
--cmake.define.CMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" `
--cmake.define.VCPKG_TARGET_TRIPLET="x64-windows"
Expand Down
3 changes: 0 additions & 3 deletions pycolmap/custom_incremental_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
Python reimplementation of the C++ incremental mapper with equivalent logic.
"""

import shutil
import time
import urllib.request
import zipfile
from pathlib import Path

import enlighten
Expand Down
14 changes: 8 additions & 6 deletions pycolmap/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,33 @@
requires = ["scikit-build-core>=0.3.3", "pybind11==2.12.0"]
build-backend = "scikit_build_core.build"


[project]
name = "pycolmap"
version = "3.11-dev"
description="COLMAP bindings"
# WARNING: This version must follow the MAJOR.MINOR.PATCH format. If only
# MAJOR.MINOR is used, cibuildwheel will add a .dev0 patch version, which
# results in releasing a pre-release version on PyPI.
version = "3.11.dev0"
description = "COLMAP bindings"
readme = "README.md"
authors = [
{ name = "Johannes Schönberger", email = "jsch@demuc.de" },
{ name = "Mihai Dusmanu", email = "mihai.dusmanu@gmail.com" },
{ name = "Paul-Edouard Sarlin", email = "psarlin@ethz.ch" },
{ name = "Shaohui Liu", email = "b1ueber2y@gmail.com" },
{ name = "Philipp Lindenberger", email = "plindenbe@ethz.ch" },
]
license = {text = "BSD-3-Clause"}
urls = {Repository = "https://github.com/colmap/pycolmap"}
urls = {Repository = "https://github.com/colmap/colmap"}
requires-python = ">=3.7"
dependencies = ["numpy"]
classifiers = [
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
]


[tool.scikit-build]
wheel.expand-macos-universal-tags = true


[tool.cibuildwheel]
build = "cp3{8,9,10,11,12}-{macosx,manylinux,win}*"
archs = ["auto64"]
Expand Down
Loading
0