-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
26 lines (19 loc) · 879 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import logging
import typer
from pointnet.classification import train as classification_train
from pointnet.classification.dataset import test_modelnet
from pointnet.classification.visualization_utils import visualize_modelnet
from pointnet.segmentation import train as segmentation_train
from pointnet.segmentation.dataset import test_shapenet
from pointnet.segmentation.visualization_utils import visualize_shapenet
entry_point = typer.Typer()
entry_point.command()(test_modelnet)
entry_point.command()(test_shapenet)
entry_point.command()(visualize_modelnet)
entry_point.command()(visualize_shapenet)
entry_point.command(name="train-classification")(classification_train.train)
entry_point.command(name="train-segmentation")(segmentation_train.train)
if __name__ == '__main__':
logging.basicConfig()
logging.getLogger().setLevel(logging.INFO)
entry_point()