ComfyUI-YoloNasPose-Tensorrt
ComfyUI ultra fast (100+ FPS) pose estimation custom node
Package profile
- Status
- Verified
- Publisher
- @yuvraj108c
- Source
- GitHub
README
ComfyUI Yolo Nas Pose TensorRT
This project is licensed under CC BY-NC-SA, everyone is FREE to access, use, modify and redistribute with the same license.
For commercial purposes, please contact me directly at [email protected]
If you like the project, please give me a star! ⭐
This repo provides a ComfyUI Custom Node implementation of YOLO-NAS-POSE, powered by TensorRT for ultra fast pose estimation. It has been adapted to work with openpose controlnet (experimental)
⏱️ Performance
The benchmarks were performed on 1225 frames
| Device | Model | Precision | Model Input (WxH) | Image Resolution (WxH) | FPS |
|---|---|---|---|---|---|
| H100 | YOLO-NAS-POSE-L | FP32 | 640x640 | 1280x720 | 105 |
| H100 | YOLO-NAS-POSE-L | FP16 | 640x640 | 1280x720 | 115 |
🚀 Installation
Navigate to the ComfyUI /custom_nodes directory
git clone https://github.com/yuvraj108c/ComfyUI-YoloNasPose-Tensorrt
cd ./ComfyUI-YoloNasPose-Tensorrt
pip install -r requirements.txt
🛠️ Building TensorRT Engine
There are two ways to build TensorRT engines:
Method 1: Using the EngineBuilder Node
- Insert node by
Right Click -> tensorrt -> Yolo Nas Pose Engine Builder - Select the model size (small, medium, or large)
- Optionally customize the engine name, FP16 settings, and onnx path
- Run the workflow to build the engine
The engine will be automatically downloaded and built in the specified location. Refresh the webpage or strike 'r' on your keyboard, and the new engine will appear in the Yolo Nas Pose Tensorrt node.
Method 2: Manual Building
- Download one of the available onnx models. The number at the end represents the confidence threshold for pose detection (e.g yolo_nas_pose_l_0.5.onnx)
- Edit model paths inside export_trt.py accordingly and run
python export_trt.py - Place the exported tensorrt engine inside ComfyUI
/models/tensorrt/yolo-nas-posedirectory
☀️ Usage
- Insert node by
Right Click -> tensorrt -> Yolo Nas Pose Tensorrt - Choose the appropriate engine from the dropdown
🤖 Environment tested
- Ubuntu 22.04 LTS, Cuda 12.4, Tensorrt 10.1.0, Python 3.10, H100 GPU
- Windows (Not tested, but should work)
👏 Credits
License
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
Nodes in this pack
2 nodes
Nodes in this pack
2 nodes- YoloNasPoseEngineBuilder
- YoloNasPoseTensorrt
Sources
3 sources
Sources
3 sourcesVerified Oct 13
Verified Oct 13
Source excerpts
1 excerpt
Source excerpts
1 excerptSource context: Repo yuvraj108c/ComfyUI-YoloNasPose-Tensorrt
