Skip to content

Commit 9fe2320

Browse files
committed
TuSimple results
1 parent 1b7f6e1 commit 9fe2320

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

LANEDETECTION.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,24 @@ Mixed precision training on CULane with ERFNet:
3939
python main_landec.py --epochs=12 --lr=0.15 --batch-size=20 --dataset=culane --model=erfnet --mixed-precision --exp-name=<whatever you like>
4040
```
4141

42+
Mixed precision training on TuSimple with ERFNet:
43+
44+
```
45+
python main_landec.py --epochs=12 --lr=0.7 --batch-size=20 --dataset=tusimple --model=erfnet --mixed-precision --exp-name=<whatever you like>
46+
```
47+
4248
Mixed precision training on CULane with ERFNet-SCNN:
4349

4450
```
4551
python main_landec.py --epochs=12 --lr=0.08 --batch-size=20 --dataset=culane --model=scnn --mixed-precision --exp-name=<whatever you like>
4652
```
4753

54+
Mixed precision training on TuSimple with ERFNet-SCNN:
55+
56+
```
57+
python main_landec.py --epochs=12 --lr=0.3 --batch-size=20 --dataset=tusimple --model=scnn --mixed-precision --exp-name=<whatever you like>
58+
```
59+
4860
## Testing:
4961

5062
Training contains online fast validations by using --val-num-steps=\<some number > 0\> and the best model is saved, but we find that the best checkpoint is usually the last, so probably no need for validations. For log details you can checkout tensorboard.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ And models from this repo is faster (also better or at least similar) than the o
6464
| :---: | :---: | :---: | :---: | :---: | :---: | :---: |
6565
| ERFNet | 288 x 800 | *yes* | CULane | 0.7346 | 0.7359 | 6h |
6666
| SCNN | 288 x 800 | *yes* | CULane | 0.7392 | 0.7405 | 11.3h |
67-
| ERFNet | 360 x 640 | *yes* | TuSimple | | |
68-
| SCNN | 360 x 640 | *yes* | TuSimple | | |
67+
| ERFNet | 360 x 640 | *yes* | TuSimple | 0.9468 | 0.9483 | 0.2h |
68+
| SCNN | 360 x 640 | *yes* | TuSimple | 0.9520 | 0.9526 | 0.4h |
6969

7070

7171
*\* All performance is measured with ImageNet pre-training and reported as 3 times average/best on test set.*

code/all_utils_landec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def erfnet_tusimple(num_classes, scnn=False, pretrained_weights='erfnet_encoder_pretrained.pth.tar'):
1818
# Define ERFNet for TuSimple (With only ImageNet pretraining)
1919
return erfnet_resnet(pretrained_weights=pretrained_weights, num_classes=num_classes, aux=4,
20-
dropout_1=0.1, dropout_2=0.1, flattened_size=4400, scnn=scnn)
20+
dropout_1=0.3, dropout_2=0.3, flattened_size=4400, scnn=scnn)
2121

2222

2323
def erfnet_culane(num_classes, scnn=False, pretrained_weights='erfnet_encoder_pretrained.pth.tar'):
@@ -42,7 +42,7 @@ def init(batch_size, state, input_sizes, dataset, mean, std):
4242
Normalize(mean=mean, std=std)])
4343
transforms_train = Compose(
4444
[Resize(size_image=input_sizes[0], size_label=input_sizes[0]),
45-
RandomRotation(degrees=1),
45+
RandomRotation(degrees=3),
4646
ToTensor(),
4747
Normalize(mean=mean, std=std)])
4848

0 commit comments

Comments
 (0)