-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add quantization and validation on device
- Loading branch information
1 parent
12251a7
commit 82cfac8
Showing
20 changed files
with
547 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python test.py \ | ||
configs/tusimple_res18.py \ | ||
--model_ckpt runs/baseline/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python train.py \ | ||
configs/tusimple_res18.py \ | ||
--log_path runs/baseline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
python prune.py \ | ||
configs/tusimple_res18.py \ | ||
--log_path runs/jetson/x2/prune \ | ||
--latency_type server \ | ||
--acceleration 2.0 \ | ||
--n_search_steps 200 \ | ||
--host localhost \ | ||
--port 15003 \ | ||
--model_ckpt runs/baseline/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python test.py \ | ||
configs/tusimple_res18.py \ | ||
--model_ckpt runs/jetson/x2/tune/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
python train.py \ | ||
configs/tusimple_res18_tune.py \ | ||
--log_path runs/jetson/x2/tune \ | ||
--model_ckpt runs/jetson/x2/prune/model_best.pth \ | ||
--teacher runs/baseline/model_best.pth \ | ||
--distill_loss 2.0 \ | ||
--epoch 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
python measure.py \ | ||
--onnx runs/jetson/x3/quant/quantized_model.onnx \ | ||
--host localhost \ | ||
--port 15003 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/env bash | ||
|
||
python prune.py \ | ||
configs/tusimple_res18.py \ | ||
--log_path runs/jetson/x3/prune \ | ||
--latency_type server \ | ||
--acceleration 3.0 \ | ||
--n_search_steps 200 \ | ||
--host localhost \ | ||
--port 15003 \ | ||
--model_ckpt runs/baseline/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
python quant.py \ | ||
configs/tusimple_res18.py \ | ||
--log_path runs/jetson/x3/quant \ | ||
--model_ckpt checkpoints/x3_jetson/model_best.pth \ | ||
--epoch 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python test.py \ | ||
configs/tusimple_res18.py \ | ||
--model_ckpt runs/jetson/x3/tune/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
python train.py \ | ||
configs/tusimple_res18_tune.py \ | ||
--log_path runs/jetson/x3/tune \ | ||
--model_ckpt runs/jetson/x3/prune/model_best.pth \ | ||
--teacher runs/baseline/model_best.pth \ | ||
--distill_loss 2.0 \ | ||
--epoch 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
python prune.py \ | ||
configs/tusimple_res18.py \ | ||
--log_path runs/ti/x4/prune \ | ||
--latency_type server \ | ||
--acceleration 1.12 \ | ||
--n_search_steps 200 \ | ||
--host localhost \ | ||
--port 15003 \ | ||
--model_ckpt checkpoints/x3_jetson/model_best.pth \ | ||
--ti_compatible |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
python test.py \ | ||
configs/tusimple_res18.py \ | ||
--model_ckpt runs/ti/x4/tune/model_best.pth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
python train.py \ | ||
configs/tusimple_res18_tune.py \ | ||
--log_path runs/ti/x4/tune \ | ||
--model_ckpt runs/ti/x4/prune/model_best.pth \ | ||
--teacher checkpoints/baseline/model_best.pth \ | ||
--distill_loss 2.0 \ | ||
--epoch 200 |
Oops, something went wrong.