• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Python
  • License
    Other
  • Created almost 4 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The 3rd place solution for competition "Lyft Motion Prediction for Autonomous Vehicles" at Kaggle

The 3rd place solution for competition "Lyft Motion Prediction for Autonomous Vehicles" at Kaggle

header

Team behind this solution:

  1. Artsiom Sanakoyeu [Homepage] [Twitter] [Telegram Channel] [LinkedIn]
  2. Dmytro Poplavskiy [Kaggle] [LinkedIn]
  3. Artsem Zhyvalkouski [Kaggle] [Twitter] [GitHub] [LinkedIn]

Explanation of the solution:

▶️ Video: link
📜 Blogpost: link
📝 Brief solution writeup: link

How to reproduce results

  1. [Optional] Set the paths in the configs. But the default paths should work as well.
  1. Install dependencies.
  • pip install -r requirements.txt
  • Apply patch to l5kit with ./apply_l5kit_patch.sh (it disables processing of rasterized images to allow rasterizer to return multiple results).
  1. Download and prepare data.
bash prepare_data_train.sh
  1. Train 1st level models.
bash train.sh
  1. Run inference of 1st level models on the test set.
    You may need to change which chekpoints to load when predicting (in predict_test_l1.sh), as the best epoch may change after you retrain the models.
bash prepare_data_test.sh
bash predict_test_l1.sh
  1. Train 2nd level model on the predicts of the 1st level models on the test set.
cd src/2nd_level && python train.py

Make sure you've set all paths right in 2nd_level/config.py w.r.t. the 2nd_level directory.

  1. Predict on the test set using the 2nd level model.
cd src/2nd_level && python infer.py

The file witn final predictions will be saved to `src/2nd_level/submission.csv'.

Directory structure example (i.e., how it should look like after everything is trained and predicted) is in directory_structure.txt.

Extra

  • To skip training the 1st level models, you can download the pretrained weights by running bash download_1st_level_weights.sh.
  • To skip training and inference of the 1st level models, you can download all predicts. More details on this are in src/1st_level/submissions.
  • More details on how to use 2nd level model are in src/2nd_level.
  • Our final 2nd level model with 9.404 Private LB score is already committed in this repository (src/2nd_level/transformer.bin). To run inference using this model you can directly execute cd src/2nd_level && python infer.py.

More Repositories

1

kaggle_carvana_segmentation

Code for the 1st place model in Carvana Image Masking Challenge
Python
442
star
2

deeppose_tf

DeepPose implementation on TensorFlow. Original Paper http://arxiv.org/abs/1312.4659
Python
143
star
3

kaggle_sea_lions_counting

Solution of the Kaggle competition Steller Sea Lion Population Count (4th place)
Jupyter Notebook
44
star
4

cliquecnn

Code for our paper "CliqueCNN: Deep Unsupervised Exemplar Learning" https://arxiv.org/abs/1608.08792
CSS
23
star
5

googleart_scraper

Scrape images from googleart
Python
20
star
6

deep_unsupervised_posets

Deep Unsupervised Similarity Learning using Partially Ordered Sets (CVPR17)
Python
20
star
7

deep_clustering

Implementation of [Deep Clustering for Unsupervised Learning of Visual Features]
Python
19
star
8

Exemplar_CNN

Unofficial fork of the Code used in the paper "Discriminative Unsupervised Feature Learning with Convolutional Neural Networks", NIPS 2014
MATLAB
16
star
9

densepose-evolution

Transferring Dense Pose to Proximal Animal Classes, CVPR2020
9
star
10

Multicore-TSNE

Parallel t-SNE implementation with Python and Torch wrappers. This fork has an option to choose the metric.
C++
5
star
11

web-crawler

Web-Crawler for simple.wikipedia.org on C++
C++
4
star
12

artprice_scrapper

Small application which uses Selenium and BeautifulSoup to scrape the https://artprice.com website to collect art auction data into a structured format.
Python
3
star
13

discovering-3d-obj-rel

Discovering Relationships between Object Categories via Universal Canonical Maps (CVPR2021)
3
star
14

awesome-ai-papers

Curated list of awesome the AI papers and brief notes on them
2
star
15

hci_similarities

MATLAB
2
star
16

bilinear-cnn

bilinear-cnn VGG16
Python
1
star
17

tjprj

Python
1
star
18

ai_cup_2015_code_race

Python
1
star
19

asanakoy.github.io

HTML
1
star
20

blog

my blog
SCSS
1
star
21

kaggle_amazon

Kaggle Amazon satellite images competition
Python
1
star