Skip to content
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

feat: flexible numpy/torch backend and tensor type checking #69

Merged
merged 3 commits into from
Jul 9, 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
8 changes: 7 additions & 1 deletion .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run unit tests
- name: Run unit tests (numpy)
run: |
pytest
- name: Install dependencies with torch
run: |
pip install -e .[torch]
- name: Run unit tests (numpy + torch)
run: |
pytest
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
camtools/assets/bbox_box.png
camtools/assets/bbox_box_blender.png

# cProfile
*.prof

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
2 changes: 1 addition & 1 deletion camtools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from . import artifact
from . import backend
from . import camera
from . import colmap
from . import colormap
Expand All @@ -16,7 +17,6 @@
from . import transform
from . import util


try:
# Python >= 3.8
from importlib.metadata import version
Expand Down
Loading
Loading