wildflow-splat 0.1.2__tar.gz
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.
- wildflow_splat-0.1.2/.gitattributes +2 -0
- wildflow_splat-0.1.2/.github/workflows/build-wheels.yml +142 -0
- wildflow_splat-0.1.2/.github/workflows/publish.yml +45 -0
- wildflow_splat-0.1.2/.gitignore +55 -0
- wildflow_splat-0.1.2/Cargo.lock +506 -0
- wildflow_splat-0.1.2/Cargo.toml +16 -0
- wildflow_splat-0.1.2/LICENSE +21 -0
- wildflow_splat-0.1.2/PKG-INFO +170 -0
- wildflow_splat-0.1.2/README.md +139 -0
- wildflow_splat-0.1.2/clean.go +648 -0
- wildflow_splat-0.1.2/cleanup_splats.py +172 -0
- wildflow_splat-0.1.2/configs/q5.yaml +21 -0
- wildflow_splat-0.1.2/copy_cell.py +45 -0
- wildflow_splat-0.1.2/core/cell.py +122 -0
- wildflow_splat-0.1.2/core/colmap_reader.py +19 -0
- wildflow_splat-0.1.2/core/crop_colmap.py +91 -0
- wildflow_splat-0.1.2/core/grid.py +45 -0
- wildflow_splat-0.1.2/core/ply_reader.py +41 -0
- wildflow_splat-0.1.2/core/processor.py +80 -0
- wildflow_splat-0.1.2/core/types.py +9 -0
- wildflow_splat-0.1.2/core/visualizer.py +104 -0
- wildflow_splat-0.1.2/export_cell.py +34 -0
- wildflow_splat-0.1.2/export_cells.py +71 -0
- wildflow_splat-0.1.2/images/wildflow-3dgs-wf.svg +1 -0
- wildflow_splat-0.1.2/meta-package/.gitignore +53 -0
- wildflow_splat-0.1.2/meta-package/README.md +39 -0
- wildflow_splat-0.1.2/meta-package/pyproject.toml +47 -0
- wildflow_splat-0.1.2/meta-package/wildflow/__init__.py +18 -0
- wildflow_splat-0.1.2/native/lib.rs +13 -0
- wildflow_splat-0.1.2/native/split.rs +407 -0
- wildflow_splat-0.1.2/plan.py +345 -0
- wildflow_splat-0.1.2/plot_colmap.py +254 -0
- wildflow_splat-0.1.2/plot_ply.py +72 -0
- wildflow_splat-0.1.2/ply_to_colmap_bin.py +206 -0
- wildflow_splat-0.1.2/pyproject.toml +46 -0
- wildflow_splat-0.1.2/requirements-dev.txt +1 -0
- wildflow_splat-0.1.2/run.py +90 -0
- wildflow_splat-0.1.2/setup.cfg +2 -0
- wildflow_splat-0.1.2/wildflow/__init__.py +7 -0
- wildflow_splat-0.1.2/wildflow/splat/__init__.py +9 -0
- wildflow_splat-0.1.2/wildflow/splat/split.py +36 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
name: Build and publish wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
push:
|
|
8
|
+
branches: [main]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [main]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
linux:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
strategy:
|
|
16
|
+
matrix:
|
|
17
|
+
target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/setup-python@v4
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.11"
|
|
23
|
+
- name: Build wheels
|
|
24
|
+
uses: PyO3/maturin-action@v1
|
|
25
|
+
env:
|
|
26
|
+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
27
|
+
with:
|
|
28
|
+
target: ${{ matrix.target }}
|
|
29
|
+
args: --release --out dist --find-interpreter
|
|
30
|
+
sccache: "true"
|
|
31
|
+
manylinux: auto
|
|
32
|
+
skip: pp*
|
|
33
|
+
- name: Upload wheels
|
|
34
|
+
uses: actions/upload-artifact@v4
|
|
35
|
+
with:
|
|
36
|
+
name: wheels-linux-${{ matrix.target }}
|
|
37
|
+
path: dist
|
|
38
|
+
|
|
39
|
+
windows:
|
|
40
|
+
runs-on: windows-latest
|
|
41
|
+
strategy:
|
|
42
|
+
matrix:
|
|
43
|
+
target: [x64, x86]
|
|
44
|
+
steps:
|
|
45
|
+
- uses: actions/checkout@v4
|
|
46
|
+
- uses: actions/setup-python@v4
|
|
47
|
+
with:
|
|
48
|
+
python-version: "3.11"
|
|
49
|
+
- name: Build wheels
|
|
50
|
+
uses: PyO3/maturin-action@v1
|
|
51
|
+
env:
|
|
52
|
+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
53
|
+
with:
|
|
54
|
+
target: ${{ matrix.target }}
|
|
55
|
+
args: --release --out dist --find-interpreter
|
|
56
|
+
sccache: "true"
|
|
57
|
+
skip: pp*
|
|
58
|
+
- name: Upload wheels
|
|
59
|
+
uses: actions/upload-artifact@v4
|
|
60
|
+
with:
|
|
61
|
+
name: wheels-windows-${{ matrix.target }}
|
|
62
|
+
path: dist
|
|
63
|
+
|
|
64
|
+
macos:
|
|
65
|
+
runs-on: macos-latest
|
|
66
|
+
strategy:
|
|
67
|
+
matrix:
|
|
68
|
+
target: [x86_64, aarch64]
|
|
69
|
+
steps:
|
|
70
|
+
- uses: actions/checkout@v4
|
|
71
|
+
- uses: actions/setup-python@v4
|
|
72
|
+
with:
|
|
73
|
+
python-version: "3.11"
|
|
74
|
+
- name: Build wheels
|
|
75
|
+
uses: PyO3/maturin-action@v1
|
|
76
|
+
env:
|
|
77
|
+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
78
|
+
with:
|
|
79
|
+
target: ${{ matrix.target }}
|
|
80
|
+
args: --release --out dist --find-interpreter
|
|
81
|
+
sccache: "true"
|
|
82
|
+
skip: pp*
|
|
83
|
+
- name: Upload wheels
|
|
84
|
+
uses: actions/upload-artifact@v4
|
|
85
|
+
with:
|
|
86
|
+
name: wheels-macos-${{ matrix.target }}
|
|
87
|
+
path: dist
|
|
88
|
+
|
|
89
|
+
sdist:
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
steps:
|
|
92
|
+
- uses: actions/checkout@v4
|
|
93
|
+
- name: Build sdist
|
|
94
|
+
uses: PyO3/maturin-action@v1
|
|
95
|
+
env:
|
|
96
|
+
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
|
|
97
|
+
with:
|
|
98
|
+
command: sdist
|
|
99
|
+
args: --out dist
|
|
100
|
+
- name: Upload sdist
|
|
101
|
+
uses: actions/upload-artifact@v4
|
|
102
|
+
with:
|
|
103
|
+
name: wheels-sdist
|
|
104
|
+
path: dist
|
|
105
|
+
|
|
106
|
+
build_meta_package:
|
|
107
|
+
name: Build meta-package
|
|
108
|
+
runs-on: ubuntu-latest
|
|
109
|
+
steps:
|
|
110
|
+
- uses: actions/checkout@v4
|
|
111
|
+
- name: Set up Python
|
|
112
|
+
uses: actions/setup-python@v4
|
|
113
|
+
with:
|
|
114
|
+
python-version: "3.11"
|
|
115
|
+
- name: Build meta-package
|
|
116
|
+
run: |
|
|
117
|
+
pip install build
|
|
118
|
+
cd meta-package
|
|
119
|
+
python -m build --outdir ../dist
|
|
120
|
+
- name: Upload meta-package
|
|
121
|
+
uses: actions/upload-artifact@v4
|
|
122
|
+
with:
|
|
123
|
+
name: wheels-meta-package
|
|
124
|
+
path: dist/*
|
|
125
|
+
|
|
126
|
+
release:
|
|
127
|
+
name: Release
|
|
128
|
+
runs-on: ubuntu-latest
|
|
129
|
+
if: github.event_name == 'release'
|
|
130
|
+
needs: [linux, windows, macos, sdist, build_meta_package]
|
|
131
|
+
steps:
|
|
132
|
+
- uses: actions/download-artifact@v4
|
|
133
|
+
with:
|
|
134
|
+
path: dist
|
|
135
|
+
merge-multiple: true
|
|
136
|
+
- name: Publish to PyPI
|
|
137
|
+
uses: PyO3/maturin-action@v1
|
|
138
|
+
env:
|
|
139
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
140
|
+
with:
|
|
141
|
+
command: upload
|
|
142
|
+
args: --non-interactive --skip-existing dist/*
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build-and-publish:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Set up Python
|
|
16
|
+
uses: actions/setup-python@v4
|
|
17
|
+
with:
|
|
18
|
+
python-version: "3.11"
|
|
19
|
+
|
|
20
|
+
- name: Set up Rust
|
|
21
|
+
uses: actions-rs/toolchain@v1
|
|
22
|
+
with:
|
|
23
|
+
toolchain: stable
|
|
24
|
+
override: true
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
pip install maturin build twine
|
|
30
|
+
|
|
31
|
+
- name: Build wildflow-splat
|
|
32
|
+
run: maturin build --release --out dist/
|
|
33
|
+
|
|
34
|
+
- name: Build wildflow meta-package
|
|
35
|
+
run: |
|
|
36
|
+
cd meta-package
|
|
37
|
+
python -m build --outdir ../dist/
|
|
38
|
+
cd ..
|
|
39
|
+
|
|
40
|
+
- name: Publish to PyPI
|
|
41
|
+
env:
|
|
42
|
+
TWINE_USERNAME: __token__
|
|
43
|
+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
|
|
44
|
+
run: |
|
|
45
|
+
twine upload dist/*
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
*.pyc
|
|
6
|
+
*.pyo
|
|
7
|
+
*.pyd
|
|
8
|
+
.Python
|
|
9
|
+
*.egg-info/
|
|
10
|
+
dist/
|
|
11
|
+
build/
|
|
12
|
+
.venv/
|
|
13
|
+
venv/
|
|
14
|
+
env/
|
|
15
|
+
|
|
16
|
+
# Rust
|
|
17
|
+
/target/
|
|
18
|
+
Cargo.lock
|
|
19
|
+
**/*.rs.bk
|
|
20
|
+
|
|
21
|
+
# PyO3/Maturin
|
|
22
|
+
*.so
|
|
23
|
+
*.pyd
|
|
24
|
+
*.dll
|
|
25
|
+
|
|
26
|
+
# IDEs
|
|
27
|
+
.vscode/
|
|
28
|
+
.idea/
|
|
29
|
+
*.swp
|
|
30
|
+
*.swo
|
|
31
|
+
*~
|
|
32
|
+
|
|
33
|
+
# OS
|
|
34
|
+
.DS_Store
|
|
35
|
+
.DS_Store?
|
|
36
|
+
._*
|
|
37
|
+
.Spotlight-V100
|
|
38
|
+
.Trashes
|
|
39
|
+
ehthumbs.db
|
|
40
|
+
Thumbs.db
|
|
41
|
+
|
|
42
|
+
# Testing
|
|
43
|
+
.pytest_cache/
|
|
44
|
+
.coverage
|
|
45
|
+
htmlcov/
|
|
46
|
+
|
|
47
|
+
# Virtual environments
|
|
48
|
+
venv/
|
|
49
|
+
env/
|
|
50
|
+
ENV/
|
|
51
|
+
|
|
52
|
+
# Temporary files
|
|
53
|
+
*.tmp
|
|
54
|
+
*.bak
|
|
55
|
+
/to_refurbish
|