You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installation.mdx
+14-11Lines changed: 14 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ The basic environment is as follows:
16
16
|`cuda`| >= 11.0 | - The CUDA version must be consistent with the version that PyTorch depends on (for the convenience of `torch.utils.cpp_extension` to compile code on the fly). <br />- Compatibility testing with CUDA 10.2(no support for c++17) is no longer performed. |
17
17
|`pytorch`| >= 1.10.2(cuda11) | - Compatibility testing is no longer performed for `c++14/cuda-10.2/pytorch==1.10.2`, but you may still be able to run it with simple modifications. |
18
18
|`opencv`| 4.x | At least the core, imgproc, imgcodecs, and highgui modules are included. |
@@ -54,9 +54,7 @@ If you are using a transformer-like model, it is strongly recommended to use Ten
54
54
```
55
55
*Release 23.05 is based on CUDA 12.1.1, which requires NVIDIA Driver release 530 or later. However, if you are running on a data center GPU (for example, T4 or any other data center GPU), you can use NVIDIA driver release 450.51 (or later R450), 470.57 (or later R470), 510.47 (or later R510), 515.65 (or later R515), 525.85 (or later R525), or 530.30 (or later R530)*
56
56
```
57
-
This can be overcome by:
58
-
- Using the custom image described in the [next section](#selfdocker)
59
-
- For online deployment, only considering support for data center cards such as Tesla T4 for the time being.
'std': '58.395, 57.120, 57.375', # Merge into TensorRT network.
135
133
'color': 'rgb'}) # cvtColorTensor backend parameter: target color space order
136
-
data = torch.zeros((1, 3, 224, 224)) # or torch.from_numpy(...)
134
+
data = torch.zeros((1, 3, 224, 224)).cuda()# or torch.from_numpy(...)
137
135
input= {"data": data, 'color': 'bgr'}
138
136
model(input) # Concurrency can be utilized
139
137
# Use "result" as the data output identifier, although other key values can be customized as well.
@@ -148,13 +146,18 @@ For more examples, see [Showcase](./showcase/showcase.mdx).
148
146
149
147
## Customizing Dockerfile {#selfdocker}
150
148
151
-
Refer to the [example Dockerfile](https://github.com/torchpipe/torchpipe/blob/main/docker/trt9.1.base). After downloading [TensorRT](https://github.com/NVIDIA/TensorRT/tree/release/9.1#optional---if-not-using-tensorrt-container-specify-the-tensorrt-ga-release-build-path) in advance, you can compile the corresponding base image.
149
+
Refer to the [example Dockerfile](https://github.com/torchpipe/torchpipe/blob/main/docker/Dockerfile).
150
+
152
151
```bash
153
-
# put TensorRT-9.*.Linux.x86_64-gnu.cuda-11.8.tar.gz into thirdparty/
0 commit comments