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 missing steps or comments #80

Open
wants to merge 1 commit into
base: deploy
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Clone this code to your workspace.
We call this directory as `$CLRNET_ROOT`
```Shell
git clone https://github.com/Turoad/clrnet
git submodule update --init --recursive
```

### Create a conda virtual environment and activate it (conda is optional)
Expand Down
6 changes: 4 additions & 2 deletions deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ optional arguments:
```

For example:
```
```shell
python deploy/onnx/export_onnx.py --cfg configs/clrnet/clr_resnet18_culane.py \
--load-from culane_r18.pth \
--opset-version 16 \
--out-file culane_r18.onnx
```

if meet error, you can try to use lower opset-version, eg: when you use the provided trt7.2 version docker, you should set opset-version <= 12.

## Export from ONNX to TensorRT

```
Expand Down Expand Up @@ -95,7 +97,7 @@ export ONNXRUNTIME_DIR=$(pwd)/onnxruntime-linux-x64-1.8.1
### Build the operator for ONNX and TensorRT
```
cd /path of CLRNet/deploy/csrc/
mkdir build
mkdir build && cd build
cmake ..
make
```
Expand Down