Template repository for creating and registering methods in Vis4D.
To use the vis4d package, you need to put your config as part of your method package. We recommend the following file structure which is close to the vis4d package structure.
├── YOUR_METHOD_NAME
│ ├── __init__.py
│ ├── data
│ │ ├── __init__.py
│ │ ├── dataset
│ │ │ ├── __init__.py
│ │ │ ├── dataset1.py
│ │ │ ├── dataset2.py
│ │ ├── transforms
│ │ │ ├── __init__.py
│ │ │ ├── transform1.py
│ │ │ ├── transform2.py
│ ├── eval
│ │ ├── __init__.py
│ │ ├── eval1.py
│ │ ├── eval2.py
│ ├── model
│ │ ├── __init__.py
│ │ ├── model.py
│ ├── op
│ │ ├── __init__.py
│ │ ├── op1.py
│ │ ├── op2.py
│ ├── vis
│ │ ├── __init__.py
│ │ ├── vis1.py
│ │ ├── vis2.py
│ ├── zoo
│ │ ├── __init__.py
│ │ ├── config1.py
│ │ ├── config2.py
├── pyproject.toml
- Note that you need to update
vis4d-templateto your own method name inpyproject.tomlto install the package correctly.
pip install -e .- To lint the package, you can update
vis4d-templateto your own method name inscripts/lint.shand run the following command:
bash scripts/lint.shAfter install the package, you can run the method using the following command:
# Train
vis4d fit --config YOUR_METHOD_NAME/zoo/config1.py ...
# Test
vis4d test --config YOUR_METHOD_NAME/zoo/config1.py ...