Aller au contenu
Node packVérifiéExterne
Ouvrir la source

ComfyUI-YoloNasPose-Tensorrt

ComfyUI ultra fast (100+ FPS) pose estimation custom node

Mainteneur@yuvraj108cUnratedClasse

Profil du package

Statut
Vérifié
Éditeur
@yuvraj108c
Source
GitHub

LIREMOI

ComfyUI Yolo Nas Pose TensorRT

python cuda trt by-nc-sa/4.0

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

DeviceModelPrecisionModel Input (WxH)Image Resolution (WxH)FPS
H100YOLO-NAS-POSE-LFP32640x6401280x720105
H100YOLO-NAS-POSE-LFP16640x6401280x720115

🚀 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

  1. Insert node by Right Click -> tensorrt -> Yolo Nas Pose Engine Builder
  2. Select the model size (small, medium, or large)
  3. Optionally customize the engine name, FP16 settings, and onnx path
  4. 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

  1. 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)
  2. Edit model paths inside export_trt.py accordingly and run python export_trt.py
  3. Place the exported tensorrt engine inside ComfyUI /models/tensorrt/yolo-nas-pose directory

☀️ 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)

Nœuds dans ce pack

Nœuds 2
  • YoloNasPoseEngineBuilder
  • YoloNasPoseTensorrt

Sources

3 sources
GitHubSourceVersion 5a915595c9b83735aa7f9fa04c29bafc067677f6
github.com/yuvraj108c/ComfyUI-YoloNasPose-Tensorrt

Vérifié 13 oct.

Extraits de sources

1 extrait

Source context: Repo yuvraj108c/ComfyUI-YoloNasPose-Tensorrt