KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
neural-trajectory-model
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
Device-Identifier-Manager
:
A Flutter plugin to get a unique identifier for the device. Supports iOS and Android.
prismic-blog-tutorial
:
No description available.
odin-ffmpeg-bindings
:
Odin Bindings for the most recent version (Nov 2023) of FFMPEG's public API.
grokking-dichotomy
:
Code for "Dichotomy of Early and Late Phase Implicit Biases Can Provably Induce Grokking"
performania
:
No description available.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
neural-trajectory-model
?
Download (.md)
# Neural Trajectory Model ## A neural trajectory model using PyTorch This is a repo of our arXiv pre-print [Neural-Trajectory-Model](http://arxiv.org/abs/2402.01254) ## Installation a. Clone this repository. ```shell git clone https://github.com/laser2099/neural-trajectory-model.git ``` b. Install the dependent libraries as follows: ``` pip install -r requirements.txt ``` ## How To Run? ### Training Run neural trajectory model training. Make sure you have a proper mesh file. The coordinate range of mesh should not be too large. You can use Blender to reduce the range of the mesh file. The command to train on Blender scenes is: ``` python run.py --mesh-path {your path to store the mesh} --data {your training data path} --eval-data {your eval data path} --save-to {the path you expect to store the model} --A-star-num-agents {expected number of agents} ``` If you only have a mesh file, the script would generate A star trajectories, optimize A star trajectories or convert existing csv data to proper format based on the circumstances. #### Generate A star trajectories The single-agent trajectories are generated in mesh environment based on classical A star algorithm. You can adjust the correponding parameters to get the proper A star-based trajectory generation. ``` python run.py --mesh-path {your path to store the mesh} --A-star-grid-size {the grid map size of the mesh map} --A-star-num-traj {total number of A star trajectories} --A-star-num-step {the density of A star trajectories} --A-star-num-agents {expected number of agents} ``` #### Optimize A star trajectories to corresponding multi-agent trajectories The single-agent trajectories are then optimized by an optimizer to get the corresponding multi-agent trajectories. You can adjust the correponding parameters to get the proper optimized trajectory generation. ``` python run.py --mesh-path {your path to store the mesh} --optimizer-lr {the learning rate when optimizing multi-agent trajectories} --A-star-num-agents {expected number of agents} --safe-dis-sep {safe distance for all agents} --sdf-thresh {safe sdf thresh for potential environmental collision} ``` #### Other training options There are more options to guide you to train a neural trajectory model. If you set ```train_compute_sdf_loss``` to False, sdf loss during training process will be calculated based on nvidia kaolin library. If you set it to True, a neural sdf network is required to be selected. You can also change the hidden dim of neural trajectory model by adjusting ```hidden-dim```. ### Evaluation Once training has finished or you've achieved satisfactory results, the checkpoint will be in the ```{save-to}``` folder. The command to evaluate the result is: ``` python test_neural_traj.py --mesh-path {your path to store the mesh} --test-data {your test data path} --model-path {the checkpoit path} --num-agents { number of agents} ``` ### Bibtex If you find this useful, please cite the paper! <pre id="codecell0">@misc{yu2024neural, title={Neural Trajectory Model: Implicit Neural Trajectory Representation for Trajectories Generation}, author={Zihan Yu and Yuqing Tang}, year={2024}, eprint={2402.01254}, archivePrefix={arXiv}, primaryClass={cs.RO}, } </pre>