Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add condlane #20

Merged
merged 15 commits into from
Sep 11, 2021
17 changes: 17 additions & 0 deletions configs/condlane/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CondLaneNet: a Top-to-down Lane Detection Framework Based on Conditional Convolution

## Introduction

```latex
@article{liu2021condlanenet,
title={CondLaneNet: a Top-to-down Lane Detection Framework Based on Conditional Convolution},
author={Liu, Lizhe and Chen, Xiaohao and Zhu, Siyu and Tan, Ping},
journal={arXiv preprint arXiv:2105.05003},
year={2021}
}
```

## Models
| Architecture| Backbone |Dataset | Metric | Config| Checkpoints |
|-------------|----------|--------|--------|-------|--------------|
| CondLane | ResNet101 | CULane | F1: 76.46| [config]() |[model](https://github.com/Turoad/lanedet/releases/download/1.0/condlane_r101_culane.pth.zip) |
5 changes: 2 additions & 3 deletions lanedet/datasets/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ def build_dataloader(split_cfg, cfg, is_train=True):
shuffle = True
else:
shuffle = False
batch_size=cfg.batch_size

dataset = build_dataset(split_cfg, cfg)

init_fn = partial(
worker_init_fn, seed=cfg.seed)

samples_per_gpu = batch_size#cfg.batch_size // cfg.gpus
samples_per_gpu = cfg.batch_size // cfg.gpus
data_loader = torch.utils.data.DataLoader(
dataset, batch_size = batch_size, shuffle = shuffle,
dataset, batch_size = cfg.batch_size, shuffle = shuffle,
num_workers = cfg.workers, pin_memory = False, drop_last = False,
collate_fn=partial(collate, samples_per_gpu=samples_per_gpu),
worker_init_fn=init_fn)
Expand Down