Timur TuratbekovandClaude Opus 4.5 db545bbccb Initial release: ComfyUI nodes for StableMaterials
Nodes:
- Load StableMaterials (LCM/Standard modes)
- Generate PBR (Text) - text to 5 PBR maps
- Generate PBR (Image) - image to PBR maps
- PBR Preview Grid - combine for preview
- Split PBR Maps - routing utility

Features:
- 5 output maps: basecolor, normal, height, roughness, metallic
- Built-in tileability
- LCM fast inference (4 steps)
- Pipeline caching for performance

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 03:41:28 +06:00

ComfyUI-StableMaterials

Generate PBR material maps from text or image using StableMaterials.

preview

Features

  • 5 PBR maps: basecolor, normal, height, roughness, metallic
  • Text-to-PBR: Generate materials from text description
  • Image-to-PBR: Generate materials from input image
  • Tileable: Built-in seamless texture generation
  • Fast: LCM mode generates in ~2 seconds (4 steps)
  • Commercial use: OpenRAIL license

Installation

Search for "StableMaterials" in ComfyUI Manager and install.

Manual

cd ComfyUI/custom_nodes
git clone https://github.com/P5ina/comfyui-stable-materials.git
cd comfyui-stable-materials
pip install -r requirements.txt

Restart ComfyUI.

Nodes

Node Description
Load StableMaterials Load pipeline (LCM or Standard mode)
Generate PBR (Text) Text prompt → 5 PBR maps
Generate PBR (Image) Input image → 5 PBR maps
PBR Preview Grid Combine maps into 2x3 preview
Split PBR Maps Utility for routing outputs

Usage

Basic Text-to-PBR

[Load StableMaterials] → [Generate PBR (Text)] → [Save Image] x5
       (LCM mode)              ↓
                         5 outputs: basecolor, normal, height, roughness, metallic

Image-to-PBR

[Load Image] → [Generate PBR (Image)] → [Save Image] x5
                       ↑
              [Load StableMaterials]

Parameters

Generate PBR (Text)

Parameter Default Description
prompt - Material description
negative_prompt "blurry, low quality" What to avoid
seed 0 Random seed for reproducibility
steps 4 Inference steps (4 for LCM, 50 for standard)
guidance_scale 7.5 How closely to follow prompt
tileable True Generate seamless texture

Generate PBR (Image)

Parameter Default Description
image - Input reference image
prompt "" Optional text guidance
image_guidance_scale 1.5 How much to follow input image

Example Prompts

Weathered rusty metal with scratches and peeling paint
Polished marble with gold veins
Old wooden planks with moss
Rough concrete with cracks
Red brick wall with white mortar
Brushed aluminum surface

Output Maps

Map Description
Basecolor Albedo/diffuse color (RGB)
Normal Surface normals in tangent space (RGB)
Height Displacement/bump map (Grayscale)
Roughness Surface roughness 0-1 (Grayscale)
Metallic Metalness 0-1 (Grayscale)

Performance

Mode Steps RTX 4090 RTX 3080
LCM 4 ~2s ~4s
Standard 50 ~15s ~30s

Credits

License

MIT License (this repo) OpenRAIL License (StableMaterials model)

S
Description
No description provided
Readme
29 KiB
Languages
Python 100%