-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe49ab8
commit 68ac163
Showing
30 changed files
with
2,030 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
.github | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# celery beat schedule file | ||
celerybeat-schedule | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
# IDEs | ||
.idea | ||
.vscode | ||
|
||
# seed project | ||
lightning_logs/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added
BIN
+859 KB
checkpoints/HiVT-128/events.out.tfevents.1650879100.zikanzhou2.1296348.0
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
historical_steps: 20 | ||
future_steps: 30 | ||
num_modes: 6 | ||
rotate: true | ||
node_dim: 2 | ||
edge_dim: 2 | ||
embed_dim: 128 | ||
num_heads: 8 | ||
dropout: 0.1 | ||
num_temporal_layers: 4 | ||
num_global_layers: 3 | ||
local_radius: 50 | ||
parallel: false | ||
lr: 0.0005 | ||
weight_decay: 0.0001 | ||
T_max: 64 | ||
root: / | ||
train_batch_size: 32 | ||
val_batch_size: 32 | ||
shuffle: true | ||
num_workers: 8 | ||
pin_memory: true | ||
persistent_workers: true | ||
gpus: 1 | ||
max_epochs: 64 | ||
monitor: val_minFDE | ||
save_top_k: 5 |
Binary file not shown.
Binary file added
BIN
+859 KB
checkpoints/HiVT-64/events.out.tfevents.1650721755.zikanzhou2.894042.0
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
historical_steps: 20 | ||
future_steps: 30 | ||
num_modes: 6 | ||
rotate: true | ||
node_dim: 2 | ||
edge_dim: 2 | ||
embed_dim: 64 | ||
num_heads: 8 | ||
dropout: 0.1 | ||
num_temporal_layers: 4 | ||
num_global_layers: 3 | ||
local_radius: 50 | ||
parallel: false | ||
lr: 0.0005 | ||
weight_decay: 0.0001 | ||
T_max: 64 | ||
root: / | ||
train_batch_size: 32 | ||
val_batch_size: 32 | ||
shuffle: true | ||
num_workers: 8 | ||
pin_memory: true | ||
persistent_workers: true | ||
gpus: 1 | ||
max_epochs: 64 | ||
monitor: val_minFDE | ||
save_top_k: 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2022, Zikang Zhou. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
from datamodules.argoverse_v1_datamodule import ArgoverseV1DataModule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright (c) 2022, Zikang Zhou. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
from typing import Callable, Optional | ||
|
||
from pytorch_lightning import LightningDataModule | ||
from torch_geometric.data import DataLoader | ||
|
||
from datasets import ArgoverseV1Dataset | ||
|
||
|
||
class ArgoverseV1DataModule(LightningDataModule): | ||
|
||
def __init__(self, | ||
root: str, | ||
train_batch_size: int, | ||
val_batch_size: int, | ||
shuffle: bool = True, | ||
num_workers: int = 8, | ||
pin_memory: bool = True, | ||
persistent_workers: bool = True, | ||
train_transform: Optional[Callable] = None, | ||
val_transform: Optional[Callable] = None, | ||
local_radius: float = 50) -> None: | ||
super(ArgoverseV1DataModule, self).__init__() | ||
self.root = root | ||
self.train_batch_size = train_batch_size | ||
self.val_batch_size = val_batch_size | ||
self.shuffle = shuffle | ||
self.pin_memory = pin_memory | ||
self.persistent_workers = persistent_workers | ||
self.num_workers = num_workers | ||
self.train_transform = train_transform | ||
self.val_transform = val_transform | ||
self.local_radius = local_radius | ||
|
||
def prepare_data(self) -> None: | ||
ArgoverseV1Dataset(self.root, 'train', self.train_transform, self.local_radius) | ||
ArgoverseV1Dataset(self.root, 'val', self.val_transform, self.local_radius) | ||
|
||
def setup(self, stage: Optional[str] = None) -> None: | ||
self.train_dataset = ArgoverseV1Dataset(self.root, 'train', self.train_transform, self.local_radius) | ||
self.val_dataset = ArgoverseV1Dataset(self.root, 'val', self.val_transform, self.local_radius) | ||
|
||
def train_dataloader(self): | ||
return DataLoader(self.train_dataset, batch_size=self.train_batch_size, shuffle=self.shuffle, | ||
num_workers=self.num_workers, pin_memory=self.pin_memory, | ||
persistent_workers=self.persistent_workers) | ||
|
||
def val_dataloader(self): | ||
return DataLoader(self.val_dataset, batch_size=self.val_batch_size, shuffle=False, num_workers=self.num_workers, | ||
pin_memory=self.pin_memory, persistent_workers=self.persistent_workers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (c) 2022, Zikang Zhou. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
from datasets.argoverse_v1_dataset import ArgoverseV1Dataset |
Oops, something went wrong.