SelfMotion
(CVPR 2024) Paper: Self-Supervised Class-Agnostic Motion Prediction with Spatial and Temporal Consistency Regularizations
Install / Use
/learn @kwwcv/SelfMotionREADME
Self-Supervised Class-Agnostic Motion Prediction with Spatial and Temporal Consistency Regularizations
Official implementation for our CVPR2024 paper: "Self-Supervised Class-Agnostic Motion Prediction with Spatial and Temporal Consistency Regularizations". [Arxiv]
🔨 Dependencies and Installation
- Python 3.9
- Pytorch >= 2.0
# git clone this repository
git clone https://github.com/kwwcv/SelfMotion
cd SelfMotion
Dataset
- Download the nuScenes data.
# modified the following paths in gen_data.py, gen_GSdata.py, and data_utils.py
# sys.path.append('root_path/SelfMotion')
# sys.path.append('root_path/SelfMotion/nuscenes-devkit/python-sdk/')
-
Run command
python data/gen_data.pyto generate preprocessed BEV data for validating, and testing. Refer to MotionNet andpython data/gen_data.py -hfor detailed instructions. -
Install the ground segmentation algorithm following Patchwork++. One can also try removing the ground points by simply setting a threshold along the Z-axis.
# modified the following path in gen_GSdata.py
# patchwork_module_path = "root_path/patchwork-plusplus/build/python_wrapper"
- Run command
python data/gen_GSdata.pyto generate preprocessed ground-removed BEV data for training.
🔥 Training
python train.py --train_data [ground removal bev training folder] --test_data [bev validation folder] \
--log --log_path [path to save log] --if_cluster --if_forward --if_reverse
🎯 Evaluation
python test.py --data [bev testing folder] --model [model path] \
--log_path [path to save results]
Citation
@misc{wang2024selfsupervised,
title={Self-Supervised Class-Agnostic Motion Prediction with Spatial and Temporal Consistency Regularizations},
author={Kewei Wang and Yizheng Wu and Jun Cen and Zhiyu Pan and Xingyi Li and Zhe Wang and Zhiguo Cao and Guosheng Lin},
year={2024},
eprint={2403.13261},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
🍭 Acknowledgement
Our project is based on MotionNet
The optimal transport solver is adopted from Self-Point-Flow
License
This project is licensed under NTU S-Lab License 1.0
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
