GLM-4V Image Descriptor

By linjian-ufoView on GitHub →

Professional AI Image Description Generator Based on Zhipu AI GLM-4V multimodal model, batch generate accurate and detailed descriptions for images in Chinese and English

VRAM Requirements

Direct Answer: The ComfyUI node GLM-4V Image Descriptor requires a minimum base VRAM of 128MB and is optimized for GPUs with at least 4GB of VRAM. Low VRAM mode is fully supported for resource-constrained setups.

High (2-4GB)
Base VRAM:
128MB (0.1GB)
Recommended GPU:
4GB+ VRAM
Low VRAM Mode:
✓ Supported
Estimation Confidence:
MEDIUM

🧮 Interactive VRAM Compatibility Estimator

Estimated Total VRAM: 3.00 GBTarget: 8 GB
✅ Comfortable Fit

Your GPU has plenty of headroom. You can run this node safely with your active configurations!

Deploy on High-Performance GPUs

Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance GPUs on Vast.ai instantly.

🚀 Deploy on Vast.ai

Deploy on Cloud GPUs

Need more VRAM to run ComfyUI with this node? Rent low-cost, high-performance cloud GPUs on RunPod instantly.

🚀 Deploy on RunPod

Python Dependencies

Direct Answer: Running GLM-4V Image Descriptor requires installing the following Python package dependencies: accelerate>=0.21.0 # 模型加速库 / Model acceleration library, bitsandbytes>=0.41.0 # 量化支持库 / Quantization support library, csv# CSV处理库(Python内置) / CSV processing library (built-in Python), glob# 文件名模式匹配(Python内置) / Filename pattern matching (built-in Python), json# JSON处理库(Python内置) / JSON processing library (built-in Python), numpy>=1.21.0 # 数值计算库 / Numerical computing library, os# 操作系统接口(Python内置) / OS interface (built-in Python), pathlib# 路径处理库(Python 3.4+内置) / Path handling library (built-in Python 3.4+), pillow>=9.0.0 # Python图像处理库 / Python Image Library, protobuf>=3.20.0 # Protocol Buffers支持 / Protocol Buffers support, re# 正则表达式库(Python内置) / Regular expression library (built-in Python), sentencepiece>=0.1.97 # 文本分词器 / Text tokenizer, threading# 线程库(Python内置) / Threading library (built-in Python), time# 时间库(Python内置) / Time library (built-in Python), torch>=2.0.0 # PyTorch深度学习框架 / PyTorch deep learning framework, transformers==4.54.0 # Hugging Face Transformers库 / Hugging Face Transformers library. This node specifically requires PyTorch version 2.0.0 or newer.

requirements.txt
accelerate>=0.21.0               # 模型加速库 / Model acceleration library
bitsandbytes>=0.41.0            # 量化支持库 / Quantization support library
csv# CSV处理库(Python内置) / CSV processing library (built-in Python)
glob# 文件名模式匹配(Python内置) / Filename pattern matching (built-in Python)
json# JSON处理库(Python内置) / JSON processing library (built-in Python)
numpy>=1.21.0                   # 数值计算库 / Numerical computing library
os# 操作系统接口(Python内置) / OS interface (built-in Python)
pathlib# 路径处理库(Python 3.4+内置) / Path handling library (built-in Python 3.4+)
pillow>=9.0.0                   # Python图像处理库 / Python Image Library
protobuf>=3.20.0               # Protocol Buffers支持 / Protocol Buffers support
re# 正则表达式库(Python内置) / Regular expression library (built-in Python)
sentencepiece>=0.1.97          # 文本分词器 / Text tokenizer
threading# 线程库(Python内置) / Threading library (built-in Python)
time# 时间库(Python内置) / Time library (built-in Python)
torch>=2.0.0                    # PyTorch深度学习框架 / PyTorch deep learning framework
transformers==4.54.0            # Hugging Face Transformers库 / Hugging Face Transformers library

🛠️ Interactive Setup & Dependency Resolver

Operating System:
Environment Type:
Run this terminal command in your ComfyUI root folder:
# Loading command...

⚠️ Special Environment Requirements:

Requires PyTorch version 2.0.0+.

To update PyTorch for your selected setup, run:
# Loading PyTorch command...