|
|
本帖最后由 asa 于 2024-10-9 13:06 编辑
这是官方程序的源码 普通pth模型
- <blockquote> tg8x_dml.py ./work/xxx/input/00179 ./work/xxx/output/00179 0 TecoGAN8X_AF1b_253K@7t.pth 0 normal png
复制代码
这是使用onnx框架推理的效果 虽然推理时间基本一致,但框架是轻量化的 可以实现amd显卡以及intel显卡的多平台部署。
- gpu_id=0
- scale=8
- nf=128
- nb=20
- extension=png
- (653, 1, 1, 160, 128, 3)
- Inference time: 4.2258 seconds
- Image saving time: 6.2868 seconds
复制代码 这是N卡最强优化 TensorRT 推理速度是普通pth的四倍
- You engine has dynamic axes, please warm up by yourself !
- gpu_id=0
- scale=8
- nf=128
- nb=20
- extension=png
- (653, 1, 160, 128, 3)
- Inference time: 0.9028 seconds
- Image saving time: 6.0081 seconds
复制代码 |
|