🚀 BangtrixToolkit
Advanced Custom Node Toolkit for ComfyUI
Translate your prompts & monitor your AMD GPU — all inside ComfyUI
🌐 Translate • 🖥️ AMD Monitor • 📦 Installation • 🚀 Roadmap
🌐 Bangtrix Translate Universal — Click to expand
Bangtrix Translate Universal is an advanced translation node for ComfyUI that automatically translates prompts into English and directly outputs them into CLIP conditioning.
Designed for: Stable Diffusion · Flux · SDXL · Pony · Anime Models · Realistic Models · Any CLIP-based workflow
✨ Features
| Category | Features |
|---|---|
| 🌍 Translation | Google Translate integration · Multi-language support · Offline-safe fallback |
| 🧠 Enhancement | Quality presets · Style presets · Prompt cleaning · Enhancement system |
| ❌ Auto Negative | Anatomy fixes · Blur reduction · Watermark filtering · Artifact reduction · Style-based negatives |
| ⚡ Performance | Translation cache · Fast repeated translation · Lightweight · Universal compatibility |
📝 Supported Languages
| Code | Language | Code | Language |
|---|---|---|---|
auto |
Auto Detect | en |
English |
id |
Indonesian | ja |
Japanese |
ko |
Korean | zh-CN |
Chinese (Simplified) |
zh-TW |
Chinese (Traditional) | fr |
French |
de |
German | es |
Spanish |
pt |
Portuguese | ru |
Russian |
it |
Italian | ar |
Arabic |
tr |
Turkish | hi |
Hindi |
th |
Thai | vi |
Vietnamese |
🎨 Presets
| Quality | Style | Auto Negative |
|---|---|---|
normal — Standard |
none — No style |
normal — Basic |
high — Better details |
anime · realistic · cinematic |
strong — Reduced artifacts |
ultra — Maximum |
photography · product · fantasy · portrait |
ultra — Maximum cleanup |
⚙️ Workflow Example
See node inputs & outputs
Inputs: positive_prompt · negative_prompt · source_language · target_language · quality_preset · style_preset · enable_translate · enable_enhance · enable_clean · enable_cache · enable_auto_negative · auto_negative_strength · show_original
Outputs: positive_conditioning · negative_conditioning · positive_prompt_final · negative_prompt_final
| Indonesian Input | Final English Prompt |
|---|---|
wanita cantik memakai kimono di malam hari |
beautiful woman wearing kimono at night, cinematic lighting, high quality, detailed |
💡 Tips
🔹 Use
show_originalto debug translations
🔹 Enableenable_cachefor faster workflows
🔹 Useultraquality for SDXL and Flux
🔹 Useanimepreset for anime models
🔹 Userealisticorphotographyfor realism models
🖥️ AMD Monitor — Real-Time GPU Overlay — Click to expand
Zero configuration. Plug & play. AMD Monitor auto-loads when ComfyUI starts — no node needed.
✨ Features
| Feature | Description | |
|---|---|---|
| 📊 | GPU Load | Real-time utilization % with animated bar |
| 💾 | VRAM Usage | Used / Total in GB + utilization bar |
| 🌡️ | Temperature | GPU temp in °C/°F (requires LibreHardwareMonitor) |
| 💨 | Fan Speed | Fan RPM/percentage (requires LibreHardwareMonitor) |
| 🏷️ | GPU Name | Auto-detects your GPU model (e.g. RX 7800 XT) |
| 📈 | Sparkline Chart | 30-second GPU Load history graph |
| ⚡ | Generation Stats | Duration, RAM Peak, Delta & CPU Peak |
| 🖥️ | Multi-GPU | Chip selector for multi-GPU systems |
| ⚠️ | VRAM Alert | Toast + inline banner on threshold breach |
| 🖱️ | Draggable | Click & drag to reposition |
| ➖ | Minimize | Toggle with − button |
| ⌨️ | Hide/Show | Ctrl + Shift + M shortcut |
| ⚙️ | Settings Panel | Interval, Alert %, Temp unit, Sparkline toggle |
| 💾 | Persist Config | Position & settings saved in localStorage |
📸 Preview
┌────────────────────────────┐
│ 🔴 AMD Monitor │
├────────────────────────────┤
│ AMD Radeon RX 7800 XT │
│ ┌───────┬──────────┐ │
│ │GPU │ VRAM │ │
│ │ 1.2% │1.1/4.0 GB│ │
│ │ █░░░░░│███░░░░░░│ │
│ ├───────┼──────────┤ │
│ │ Temp │ Fan │ │
│ │ 45°C │1200 RPM │ │
│ │ ███░░░│ █░░░░░░░│ │
│ └───────┴──────────┘ │
│ ╱ GPU Load History ╲ │
│ ────────────────────── │
│ 🟢 RX 7800 XT │ [ps] │
└────────────────────────────┘
⚙️ Architecture
┌──────────────────────────────────────────────┐
│ ComfyUI Server │
│ ┌──────────────────────────────────────┐ │
│ │ on_app_started() │ │
│ │ ├── WS Route → /ws/amd_monitor │ │
│ │ └── Stream loop → every 1s │ │
│ └──────────────┬───────────────────────┘ │
│ │ WebSocket │
│ ┌──────────────▼───────────────────────┐ │
│ │ Backend Auto-Detect │ │
│ │ │ │
│ │ 1. LibreHardwareMonitor ← WMI │ │
│ │ → Temp, Fan, Clock, Power │ │
│ │ │ │
│ │ 2. PowerShell Counters ★ ACTIVE │ │
│ │ → GPU Load, VRAM, GPU Name │ │
│ │ │ │
│ │ 3. ADL (atiadlxx.dll) │ │
│ │ → Temp, Fan (partial) │ │
│ │ │ │
│ │ 4. psutil (system RAM) │ │
│ └──────────────────────────────────────┘ │
│ ┌──────────────────────────────────────┐ │
│ │ Comfy Process Monitor │ │
│ │ Auto-detect generations │ │
│ └──────────────────────────────────────┘ │
└──────────────────┬───────────────────────────┘
│ JSON every 1s
┌──────────────────▼───────────────────────────┐
│ Browser (ComfyUI) │
│ ┌──────────────────────────────────────┐ │
│ │ Floating Overlay (amd_monitor.js) │ │
│ └──────────────────────────────────────┘ │
└──────────────────────────────────────────────┘
🏗️ Backend Priority
| Priority | Backend | Metrics | Platform |
|---|---|---|---|
| 🥇 | PDH Counters (win32pdh) | Load, VRAM (real-time) | Windows |
| 🥇 | LibreHardwareMonitor | Temp, Fan, Clock, Power | Windows |
| 🥈 | PowerShell Counters | Load, VRAM, Name | Windows |
| 🥉 | ADL (atiadlxx.dll) | Temp, Fan | Windows |
| 4 | psutil | System RAM only | All |
v4.1 Performance Boost: Temperature & Fan readings are now cached (10s) — no PowerShell subprocesses at 500ms poll. Zero blocking calls during real-time streaming.
🌡️ LibreHardwareMonitor Setup
To enable Temperature, Fan Speed, Clock speeds & Power Draw:
-
Auto-download — LHM portable (8.5MB) is downloaded automatically on first ComfyUI start
📁 BangtrixToolkit/monitor/libre_hardware_monitor/LibreHardwareMonitor.exe -
Run as Administrator (one-time):
.\monitor\libre_hardware_monitor\LibreHardwareMonitor.exe --wmi -
Restart ComfyUI — Backend auto-switches to LHM 🎯
⚠️ Without LHM, core metrics still work via PowerShell Counters: GPU Load, VRAM, GPU Name.
⌨️ Quick Reference
| Action | Keyboard / Button |
|---|---|
| Toggle overlay | Ctrl + Shift + M |
| Minimize | − button |
| Settings | ⚙ button |
📋 Requirements
| Package | Needed | Purpose |
|---|---|---|
aiohttp |
✅ Yes | WebSocket server |
psutil |
✅ Recommended | Process Monitor |
requests |
❌ Optional | Translate node fallback |
📦 Installation
See installation guide
🔧 Manual
cd "ComfyUI/custom_nodes"
git clone https://github.com/Anonymzx/BangtrixToolkit.git
pip install -r requirements.txt
Restart ComfyUI after installation.
📥 ComfyUI Manager
- Open ComfyUI Manager
- Go to Custom Nodes Manager
- Search for BangtrixToolkit
- Click Install
- Restart ComfyUI
🚀 Roadmap
| Version | Features |
|---|---|
| v1 ✅ | Bangtrix Translate Universal |
| v2 ✅ | AMD Monitor · ROCm Utilities |
| v3 🔜 | Smart Cache · Performance Optimizer · Benchmark Tools |