Giter Club home page Giter Club logo

strajnet-torch's Introduction

PyTorch implementation of STrajNet and other models

This repo includes a pytorch implementation of the STrajNet model. It also includes other models based on STrajNet as well as on FlexiViT and Perceiver IO.

STrajnet-torch

  • Updated preprocessing to generate compressed numpy files for each scenario (link to file in other repo)
  • Implemented distributed training with validation using DDP
  • Implemented inference to evaluate on waymo website

FlexiPerceiver

STrajNet, FlexiViT and Perceiver IO inspired architecture. Can be found in flexi_perceiver.py.

Sources

@misc{https://doi.org/10.48550/arxiv.2208.00394,
  doi = {10.48550/ARXIV.2208.00394},
  url = {https://arxiv.org/abs/2208.00394},
  author = {Liu, Haochen and Huang, Zhiyu and Lv, Chen},
  keywords = {Computer Vision and Pattern Recognition (cs.CV), Artificial Intelligence (cs.AI), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {STrajNet: Multi-modal Hierarchical Transformer for Occupancy Flow Field Prediction in Autonomous Driving},
  publisher = {arXiv},
  year = {2022},
  copyright = {Creative Commons Attribution 4.0 International}
}
@misc{beyer2023flexivit,
      title={FlexiViT: One Model for All Patch Sizes}, 
      author={Lucas Beyer and Pavel Izmailov and Alexander Kolesnikov and Mathilde Caron and Simon Kornblith and Xiaohua Zhai and Matthias Minderer and Michael Tschannen and Ibrahim Alabdulmohsin and Filip Pavetic},
      year={2023},
      eprint={2212.08013},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}
@misc{jaegle2022perceiver,
      title={Perceiver IO: A General Architecture for Structured Inputs & Outputs}, 
      author={Andrew Jaegle and Sebastian Borgeaud and Jean-Baptiste Alayrac and Carl Doersch and Catalin Ionescu and David Ding and Skanda Koppula and Daniel Zoran and Andrew Brock and Evan Shelhamer and Olivier Hénaff and Matthew M. Botvinick and Andrew Zisserman and Oriol Vinyals and Joāo Carreira},
      year={2022},
      eprint={2107.14795},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

strajnet-torch's People

Contributors

hugocasa avatar

Stargazers

Hongjin Chen avatar Clayton Kehoe avatar SUN, Ge avatar happiness avatar LRMbbj avatar Antoine Escoyez avatar Youshaa Murhij avatar

Watchers

 avatar  avatar

Forkers

flclain jin-013

strajnet-torch's Issues

Flow Loss is increasing after multiple iterations

Hi, thanks for sharing your code!
I tried to train it on WOD, but the flow loss is increasing!
Could you please help me figure out what could be the problem?
Thanks!

obs. loss: 0.243648, occl. loss:  0.150102, flow loss: 44.460011, warp loss: 1.001977  [ 3096/    0]
obs. loss: 0.243114, occl. loss:  0.149444, flow loss: 44.516956, warp loss: 1.008347  [ 3120/    0]
obs. loss: 0.242311, occl. loss:  0.148761, flow loss: 44.644539, warp loss: 1.012815  [ 3144/    0]
obs. loss: 0.241913, occl. loss:  0.148108, flow loss: 44.702065, warp loss: 1.020886  [ 3168/    0]
obs. loss: 0.241336, occl. loss:  0.147460, flow loss: 44.820835, warp loss: 1.027358  [ 3192/    0]
obs. loss: 0.240734, occl. loss:  0.146894, flow loss: 45.005154, warp loss: 1.032728  [ 3216/    0]
obs. loss: 0.240699, occl. loss:  0.146575, flow loss: 45.212120, warp loss: 1.044246  [ 3240/    0]
obs. loss: 0.240347, occl. loss:  0.146173, flow loss: 45.515354, warp loss: 1.051889  [ 3264/    0]
obs. loss: 0.240065, occl. loss:  0.145916, flow loss: 45.925617, warp loss: 1.060386  [ 3288/    0]
obs. loss: 0.239506, occl. loss:  0.145567, flow loss: 46.405163, warp loss: 1.064121  [ 3312/    0]
obs. loss: 0.239291, occl. loss:  0.145209, flow loss: 47.343037, warp loss: 1.072092  [ 3336/    0]
obs. loss: 0.239230, occl. loss:  0.144918, flow loss: 48.340939, warp loss: 1.082763  [ 3360/    0]
obs. loss: 0.239001, occl. loss:  0.144661, flow loss: 51.219795, warp loss: 1.086341  [ 3384/    0]
obs. loss: 0.238759, occl. loss:  0.144391, flow loss: 54.465942, warp loss: 1.090015  [ 3408/    0]
obs. loss: 0.238499, occl. loss:  0.144047, flow loss: 57.888397, warp loss: 1.093878  [ 3432/    0]
obs. loss: 0.238189, occl. loss:  0.143617, flow loss: 61.946064, warp loss: 1.096697  [ 3456/    0]
obs. loss: 0.237959, occl. loss:  0.143296, flow loss: 67.472435, warp loss: 1.099877  [ 3480/    0]
obs. loss: 0.237651, occl. loss:  0.142785, flow loss: 76.707634, warp loss: 1.101141  [ 3504/    0]
obs. loss: 0.237271, occl. loss:  0.142269, flow loss: 86.882683, warp loss: 1.101937  [ 3528/    0]
obs. loss: 0.236673, occl. loss:  0.141731, flow loss: 97.023819, warp loss: 1.100915  [ 3552/    0]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.