Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
59534e9
fix: Fix reduce_mean and nms.
RoyYang0714 Jul 9, 2024
91b2fca
fix: Fix lint.
RoyYang0714 Jul 10, 2024
96871a5
feat: Add VIS flag and update transformer related code.
RoyYang0714 Jul 26, 2024
c834f28
fix: Fix mypy for PyTorch 2.4.0
RoyYang0714 Jul 26, 2024
456e3da
feat: Add compute FLOPs flag.
RoyYang0714 Aug 7, 2024
70fbfd7
feat: Add fix sized resize, update vis functional and fix test error.
RoyYang0714 Aug 21, 2024
4f490d1
fix: Fix tests.
RoyYang0714 Aug 21, 2024
17c4e02
fix: Update ipynb for test.
RoyYang0714 Aug 21, 2024
d042e2f
feat: Update docs.
RoyYang0714 Aug 22, 2024
f90fdb4
fix: Separate to hdf5 script.
RoyYang0714 Aug 23, 2024
633a711
Merge branch '0.1.3' of github.com:SysCV/vis4d into 0.1.3
RoyYang0714 Aug 23, 2024
539b8a9
feat: Give user freedom to select dist tmp dir.
RoyYang0714 Aug 27, 2024
04ae3e9
Merge branch '0.1.3' of github.com:SysCV/vis4d into 0.1.3
RoyYang0714 Aug 27, 2024
8b0055f
fix: Fix pylint.
RoyYang0714 Aug 27, 2024
68c99ce
feat: Add pl trainer ddp timeout and separate evaluator callback meti…
RoyYang0714 Aug 30, 2024
4ca57f6
fix: Fix lint.
RoyYang0714 Aug 30, 2024
ae4523a
fix: Fix bbox3d visualizer for corner cases. Update Visualizer callba…
RoyYang0714 Sep 2, 2024
d95fb72
feat: Add grad checking and set wandb id.
RoyYang0714 Oct 13, 2024
53f2242
fix: Fix function args.
RoyYang0714 Oct 15, 2024
efd205c
feat: Update CBGS, bbox3D visualization.
RoyYang0714 Nov 28, 2024
d8751fe
feat: Add AspectRationBatchSampler.
RoyYang0714 Dec 2, 2024
72ca7ca
feat: Update data loader for multiple datasets; add COCO categories; …
RoyYang0714 Feb 7, 2025
dce4847
feat: Update bbox3d visualizer and evaluator.
RoyYang0714 Feb 11, 2025
23f85cd
feat: Update DLA basemodel.
RoyYang0714 Feb 18, 2025
55d6a51
feat: Disable system tmp for gather cpu.
RoyYang0714 Feb 19, 2025
8625b4b
feat: Fix DLA for DDP and gradient checkpointing.
RoyYang0714 Feb 21, 2025
8693b90
feat: Separate wandb id and version.
RoyYang0714 Feb 21, 2025
71af387
feat: Add dumping 3D boxes npy.
RoyYang0714 Feb 25, 2025
131784e
feat: Enable drop last for data loader.
RoyYang0714 Feb 25, 2025
3e876a5
feat: Make sampler of train dataloader configurable.
RoyYang0714 Mar 11, 2025
ec45a69
feat: Update visualization for wandb.
RoyYang0714 Mar 18, 2025
c589630
feat: Support wand log image for visualizer callback.
RoyYang0714 Mar 18, 2025
a778ed0
feat: Add hungarian matching.
RoyYang0714 Mar 18, 2025
7b8a4b3
feat: Enable efficient MultiHeadAttention.
RoyYang0714 Mar 19, 2025
fcbf850
Merge branch '0.1.3' of github.com:SysCV/vis4d into 0.1.3
RoyYang0714 Mar 19, 2025
00b731c
feat: Fix lr scheduler callback for accumulate gradient.
RoyYang0714 Mar 19, 2025
59626c2
feat: Update trainer global_step.
RoyYang0714 Mar 20, 2025
e6c31a6
feat: Update checkpoint for ResNet.
RoyYang0714 Mar 25, 2025
f1c861a
feat: Update scheduler and add control for check unused parameters.
RoyYang0714 Mar 27, 2025
927e20a
feat: Update sampler for train dataloader.
RoyYang0714 Apr 1, 2025
cb4b1bc
feat: Update pillow bounding boxes visualization.
RoyYang0714 Apr 2, 2025
935fc1d
fix: Fix typo and update hdf5 backend.
RoyYang0714 Apr 29, 2025
45cad40
feat: Merge engine and pl.
RoyYang0714 Jul 17, 2025
56dbf05
feat: Refactor Callbacks.
RoyYang0714 Jul 21, 2025
cfbe0a7
feat: lint.
RoyYang0714 Jul 22, 2025
7778c53
Merge branch 'main' into 0.1.3
RoyYang0714 Jul 22, 2025
049f3b9
feat: lint.
RoyYang0714 Jul 22, 2025
e69be80
feat: Refactor data const.
RoyYang0714 Jul 22, 2025
037b12a
feat: Update doc.
RoyYang0714 Jul 22, 2025
9b358ab
feat: Update cuda ops link.
RoyYang0714 Jul 22, 2025
c61b611
feat: Update test.
RoyYang0714 Jul 22, 2025
808ab98
fix: Fix lint.
RoyYang0714 Jul 22, 2025
4181e4e
fix: Remove scalabel test for detection.
RoyYang0714 Jul 22, 2025
bd0ce34
feat: Update version.
RoyYang0714 Jul 22, 2025
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
11 changes: 0 additions & 11 deletions .github/dependabot.yml

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: set up python
uses: actions/setup-python@v2
with:
python-version: "3.10"
python-version: "3.11"

- name: install
run: |
Expand Down Expand Up @@ -55,11 +55,11 @@ jobs:
python3 -m mypy tests

test:
name: test py${{ matrix.python-version }}
name: test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
run: python3 -m coverage run --source=vis4d -m pytest --pyargs tests

- name: test coverage
run: python3 -m coverage report --fail-under=88 -m
run: python3 -m coverage report -m

- name: build
run: python3 -m build
42 changes: 0 additions & 42 deletions .github/workflows/deploy_doc.yml

This file was deleted.

3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,13 @@ doc/media
# python build
build/
dist/
scalabel.egg-info
vis4d.egg-info

# coverage
.coverage*

# package default workspace
vis4d-workspace
vis4d.egg-info

*.tmp

Expand Down
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "vis4d-test-data"]
path = tests/vis4d-test-data
url = git@github.com:SysCV/vis4d-test-data.git
path = tests/vis4d-test-data
url = git@github.com:SysCV/vis4d-test-data.git
branch = main
32 changes: 0 additions & 32 deletions .pre-commit-config.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ max-spelling-suggestions=2

# Maximum number of arguments for function / method
max-args=20
max-positional-arguments=20

# Maximum number of locals for function / method body
max-locals=100
Expand Down
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ build:
python:
install:
- requirements: docs/requirements.txt
- requirements: requirements/install.txt
- requirements: requirements/torch-lib.txt
- requirements: requirements/viewer.txt

sphinx:
configuration: docs/source/conf.py
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ sphinx_autodoc_defaultargs
sphinx_autodoc_typehints
sphinx_copybutton
sphinx_design
sphinx_rtd_theme
sphinxcontrib-aafig
11 changes: 6 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

project = "Vis4D"
copyright = "2022, ETH Zurich"
author = "Tobias Fischer"
author = "Vis4D Team"


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -94,21 +94,22 @@
"Vis4D Documentation",
author,
"Vis4D",
"Dynamic Scene Understanding in Pytorch.",
"Dynamic Scene Understanding in PyTorch.",
"Miscellaneous",
)
]

# -- auto doc settings -------------------------------------------------------
autosummary_generate = True
autodoc_member_order = "groupwise"
autoclass_content = "both"
# autoclass_content = "both"
add_module_names = False # Remove namespaces from class/method signatures
autodoc_member_order = "bysource"
autodoc_default_options = {
"members": True,
"methods": True,
"special-members": "__call__",
"exclude-members": "_abc_impl,__init__",
"exclude-members": "_abc_impl,__repr__",
}

# -- Napoleon settings -------------------------------------------------------
Expand All @@ -117,7 +118,7 @@
# project.
napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_init_with_doc = False
napoleon_include_init_with_doc = True
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
Expand Down
3 changes: 3 additions & 0 deletions docs/source/datasets.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
********
Datasets
********
12 changes: 7 additions & 5 deletions docs/source/dev_guide/cli.rst
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
###
CLI
###

We provide a command line interface for training and evaluating your models.
Assuming you have installed the package using pip, you can use the command `vis4d` to access the CLI.

Alternatively, you can run the CLI using `python -m vis4d.engine.cli` or `python -m vis4d.pl.cli` if you want to use the PyTorch Lightning version.
Alternatively, you can run the CLI using `python -m vis4d.engine.run` or `python -m vis4d.pl.run` if you want to use the PyTorch Lightning version.

The CLI relies on a configuration file to specify each experiment. We use `ml_collections <https://github.com/google/ml_collections>`_ as underlying framework to define the configuration files.
You can read up on our configuration files in the `Config System <configuration_files>`_ section.

=============
CLI Interface
=============

The provided examples assume that the experiment configuration file is located at `path_to_experiment_cfg.py`.
You can read up on our configuration files in the `Config System <configuration_files>`_ section.

Expand All @@ -20,6 +22,7 @@ We support both, our own training engine as well as `PyTorch Lightning <https://
------------
CLI Commands
------------

.. code-block:: bash

vis4d [fit | test] --config path_to_experiment_cfg.py
Expand Down Expand Up @@ -54,16 +57,14 @@ Quick Start

.. code-block:: bash

vis4d fit --config path_to_experiment_cfg.py
vis4d test --config path_to_experiment_cfg.py

**Overwrite Config Parameters**

.. code-block:: bash

vis4d fit --config path_to_experiment_cfg.py --config.my_field=2 --config.my.nested.field="test"



**Perform Parameter Sweeps**

.. code-block:: bash
Expand All @@ -87,6 +88,7 @@ Note that misstyping a config parameter
vis4d fit --config path_to_experiment_cfg.py --config.params.lrs=0.01

will result in the following error:

.. code-block:: bash

AttributeError: Did you mean "lr" instead of "lrw"?'
AttributeError: Did you mean "lr" instead of "lrs"?'
4 changes: 0 additions & 4 deletions docs/source/faq/trouble.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
Troubleshooting
***************

================
Training crashes
================

-----------
File limits
-----------
Expand Down
1 change: 0 additions & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ for further research and development of 4D Vision algorithms.

.. toctree::
:hidden:
:maxdepth: 1
:caption: Reference

API<api/vis4d>
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user_guide/3D_visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"os.environ[\"WEBRTC_IP\"] = \"127.0.0.1\"\n",
"\n",
"import pickle\n",
"from vis4d.vis.functional import show_points\n",
"from vis4d.vis.pointcloud.functional import show_points\n",
"import numpy as np"
]
},
Expand Down
4 changes: 2 additions & 2 deletions docs/source/user_guide/faster_rcnn_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import lightning.pytorch as pl
import numpy as np
from torch.optim import SGD
from torch.optim.sgd import SGD
from torch.optim.lr_scheduler import LinearLR, MultiStepLR

from vis4d.config import class_config
Expand Down Expand Up @@ -137,7 +137,7 @@ def get_config() -> ExperimentConfig:
## CALLBACKS ##
######################################################
# Logger and Checkpoint
callbacks = get_default_callbacks_cfg(config.output_dir, refresh_rate=1)
callbacks = get_default_callbacks_cfg(refresh_rate=1)

# Evaluator
callbacks.append(
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user_guide/getting_started.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
"from vis4d.model.detect.faster_rcnn import FasterRCNN\n",
"\n",
"from vis4d.data.const import CommonKeys as K\n",
"from vis4d.vis.functional.image import imshow_bboxes\n",
"from vis4d.vis.image.functional import imshow_bboxes\n",
"\n",
"from vis4d.config import instantiate_classes\n",
"from vis4d.zoo.base.datasets.coco import get_coco_detection_cfg"
Expand Down
16 changes: 3 additions & 13 deletions docs/source/user_guide/visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,12 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Jupyter environment detected. Enabling Open3D WebVisualizer.\n",
"[Open3D INFO] WebRTC GUI backend enabled.\n",
"[Open3D INFO] WebRTCWindowSystem: HTTP handshake server disabled.\n"
]
}
],
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"from vis4d.common.typing import NDArrayF64, NDArrayI64\n",
"from vis4d.vis.functional import imshow_bboxes, imshow_masks, imshow_topk_bboxes, imshow, draw_bboxes, draw_masks, imshow_track_matches\n",
"from vis4d.vis.image.functional import imshow_bboxes, imshow_masks, imshow_topk_bboxes, imshow, draw_bboxes, draw_masks, imshow_track_matches\n",
"\n",
"import pickle\n",
"import numpy as np"
Expand Down Expand Up @@ -453,7 +443,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.8"
"version": "3.11.9"
},
"vscode": {
"interpreter": {
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ line_length = 79

[tool.pyright]
include = ["vis4d"]
typeCheckingMode = "off"

[tool.coverage]
[tool.coverage.report]
Expand Down Expand Up @@ -112,12 +113,12 @@ plugins = ["numpy.typing.mypy_plugin"]

[project]
name = "vis4d"
version = "0.1.2"
authors = [{name = "VIS @ ETH", email = "i@yf.io"}]
version = "0.1.3"
authors = [{name = "Vis4D Team"}]
description = "Vis4D Python package for Visual 4D scene understanding"
readme = "README.md"
license = {text = "Apache 2.0"}
requires-python = ">=3.10"
requires-python = ">=3.11"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
Expand Down
Loading