Skip to content

Commit 9cd052e

Browse files
authored
v1.0.0 (#144)
* feat: Update date engine flag and remove old api. * feat: Update requirements. * feat: Update documents. * feat: Update visualization docs. * feat: Update config and fix test data. * feat: Make release model weight as the API.
1 parent 83ba216 commit 9cd052e

File tree

115 files changed

+2097
-1521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+2097
-1521
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- pypi-strip -->
33
<picture>
44
<!-- /pypi-strip -->
5-
<img alt="vis4d" src="docs/source/_static/vis4d_logo.svg" width="400">
5+
<img alt="vis4d" src="https://dl.cv.ethz.ch/vis4d/vis4d_logo.svg" width="400">
66
<!-- pypi-strip -->
77
</picture>
88
<!-- /pypi-strip -->
@@ -85,7 +85,7 @@ Vis4D was originally written by [Tobias Fischer](https://tobiasfshr.github.io/)
8585
- [Tobias Fischer](https://tobiasfshr.github.io/)*
8686

8787
**Core Contributors**
88-
- [Thomas E. Huang](https://www.thomasehuang.com/)
88+
- [Thomas E. Huang](https://www.thomasehuang.com/)*
8989
- [Tao Sun](https://www.suniique.com/)
9090
- [René Zurbrügg](https://renezurbruegg.github.io/)
9191

@@ -110,9 +110,9 @@ Vis4D was originally written by [Tobias Fischer](https://tobiasfshr.github.io/)
110110
If you find Vis4D is useful for your research, please consider citing the following BibTeX entry.
111111

112112
```bibtex
113-
@misc{vis4d_2024,
114-
author = {{Yung-Hsu Yang and Tobias Fischer and Thomas E. Huang} and René Zurbrügg and Tao Sun and Fisher Yu},
115-
title = {Vis4D},
113+
@misc{vis4d2024,
114+
author = {Yang, Yung-Hsu and Fischer, Tobias and Huang, Thomas E. and Zurbr{\"u}gg, Ren{\'e} and Sun, Tao and Yu, Fisher},
115+
title = {Vis4{D}},
116116
howpublished = {\url{https://github.com/SysCV/vis4d}},
117117
year = {2024}
118118
}

docs/source/_static/pipeline.png

432 KB
Loading

docs/source/_static/transform.png

436 KB
Loading

docs/source/conf.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# -- Project information -----------------------------------------------------
2424

2525
project = "Vis4D"
26-
copyright = "2022, ETH Zurich"
26+
copyright = "2024, ETH Zurich"
2727
author = "Vis4D Team"
2828

2929

@@ -56,7 +56,7 @@
5656
# directories to ignore when looking for source files.
5757
# This pattern also affects html_static_path and html_extra_path.
5858
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
59-
source_suffix = [".rst", ".ipynb"]
59+
source_suffix = [".rst", ".ipynb", ".md"]
6060

6161
# The master toctree document.
6262
master_doc = "index"
@@ -70,17 +70,7 @@
7070
# The theme to use for HTML and HTML Help pages. See the documentation for
7171
# a list of builtin themes.
7272
#
73-
html_theme = "furo"
74-
75-
# TODO revise logo
76-
html_theme_options = {
77-
"light_logo": "vis4d_logo.svg",
78-
"dark_logo": "vis4d_logo.svg",
79-
"sidebar_hide_name": True,
80-
"navigation_with_keys": True,
81-
}
82-
83-
# html_favicon = '_static/img/logo_favicon.png'
73+
html_theme = "sphinx_rtd_theme"
8474

8575
# Add any paths that contain custom static files (such as style sheets) here,
8676
# relative to this directory. They are copied after the builtin static files,
@@ -133,5 +123,10 @@
133123

134124
# -- MYSTNB -----------------------------------------------------------------
135125

136-
suppress_warnings = ["mystnb.unknown_mime_type", "myst.header"]
126+
suppress_warnings = [
127+
"mystnb.unknown_mime_type",
128+
"myst.header",
129+
"ref.python",
130+
"docutils",
131+
]
137132
nb_execution_mode = "off"

docs/source/contribute.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
# How to Contribute
3+
4+
To contribute to the codebase, users should create a pull request in the GitHub repository.
5+
6+
To do this, first checkout the latest main branch with:
7+
8+
```bash
9+
git checkout main
10+
git pull
11+
```
12+
13+
Next, you can make the code changes that you’d like to contribute.
14+
15+
After making your changes, please make sure to resolve all the code formatting and documentation issues that may arise by checking:
16+
17+
```bash
18+
bash scripts/lint.sh
19+
```
20+
21+
If you see any errors or warnings as output of this, please correct them and run this script again until there are no issues anymore.
22+
23+
Once you pass all linting checks, you can commit your changes to a new branch:
24+
25+
```bash
26+
git checkout -b my-feature
27+
git commit -m "awesome new feature"
28+
git push
29+
```
30+
31+
Finally, you can create your pull request on the GitHub repo website and request tobiasfshr or other maintaining members as reviewer.
32+
33+
Once your pull request is approved, it will be merged to the main branch.

docs/source/datasets.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/source/dev_guide/callback.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Callbacks
2+
3+
We use PyTorch Lightning [Callbacks](https://lightning.ai/docs/pytorch/stable/api/lightning.pytorch.callbacks.Callback.html#lightning.pytorch.callbacks.Callback) to support various functionality.
4+
5+
Each callback relies on `Callback Connector` to connect between data, model, and callbacks.
6+
7+
For each config, the default callback is logging callback which helps to logging the output of console.
8+
9+
```python
10+
def get_default_callbacks_cfg(
11+
epoch_based: bool = True,
12+
refresh_rate: int = 50,
13+
) -> list[ConfigDict]:
14+
"""Get default callbacks config.
15+
16+
It will return a list of callbacks config including:
17+
- LoggingCallback
18+
19+
Args:
20+
epoch_based (bool, optional): Whether to use epoch based logging.
21+
refresh_rate (int, optional): Refresh rate for the logging. Defaults to
22+
50.
23+
24+
Returns:
25+
list[ConfigDict]: List of callbacks config.
26+
"""
27+
callbacks = []
28+
29+
# Logger
30+
callbacks.append(
31+
class_config(
32+
LoggingCallback, epoch_based=epoch_based, refresh_rate=refresh_rate
33+
)
34+
)
35+
36+
return callbacks
37+
```
38+
39+
You can hook any `Callback` in the config as follow:
40+
41+
```python
42+
callbacks.append(
43+
class_config(
44+
EvaluatorCallback,
45+
evaluator=class_config(
46+
COCODetectEvaluator, data_root=data_root, split=test_split
47+
),
48+
metrics_to_eval=["Det"],
49+
test_connector=class_config(
50+
CallbackConnector, key_mapping=CONN_COCO_BBOX_EVAL
51+
),
52+
)
53+
)
54+
```
55+
56+
Check more details [here](https://github.com/SysCV/vis4d/tree/main/vis4d/engine/callbacks).

docs/source/dev_guide/cli.rst

Lines changed: 0 additions & 94 deletions
This file was deleted.

0 commit comments

Comments
 (0)