requirements_tensorrt.txt 959 B

123456789101112131415161718192021222324252627282930313233
  1. # LightGlue TensorRT 优化版本依赖清单
  2. # GTX 1660 专用
  3. # ============================================
  4. # 基础依赖(必需)
  5. # ============================================
  6. numpy>=1.19.0
  7. opencv-python>=4.5.0
  8. matplotlib>=3.3.0
  9. kornia>=0.6.11
  10. # ============================================
  11. # PyTorch (CUDA 12.1)
  12. # ============================================
  13. # 注意:这些包需要从 PyTorch 官方源安装
  14. # 安装命令:
  15. # pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 --index-url https://download.pytorch.org/whl/cu121
  16. torch==2.5.1
  17. torchvision==0.20.1
  18. torchaudio==2.5.1
  19. # ============================================
  20. # TensorRT 优化(二选一)
  21. # ============================================
  22. # 方案一:torch-tensorrt(推荐,最简单)
  23. torch-tensorrt==2.5.0
  24. # 方案二:ONNX → TensorRT(如果方案一失败,使用此方案)
  25. # nvidia-tensorrt>=8.0.0
  26. # onnx>=1.12.0
  27. # onnxruntime-gpu>=1.12.0