HED Edge Detection

  • HED
  • Holistically-Nested Edge Detection

bySaining Xie / Zhuowen Tu (implemented by lllyasviel)

Extract organic grayscale contours and gestural line weight from any photo for flexible ControlNet styling

HED Edge Detection

How HED Edge Detection works

Convert any photograph into smooth, volumetric grayscale edge maps in three straightforward operations.

Supply source imagery

Supply source imagery

Provide a high-contrast image of organic forms, portraits, or dynamic subjects.

Select detection mode

Select detection mode

Toggle Safe Mode to suppress noise or Scribble Mode for loose hand-drawn weight.

Export soft edge map

Export soft edge map

Output an anti-aliased grayscale contour image ready for ControlNet conditioning.

What HED Edge Detection is good at

Discover how multi-scale convolutional edge detection preserves depth, curvature, and organic forms for generative conditioning.

Hierarchical boundary tracing

Hierarchical boundary tracing

Deep convolutional networks detect multi-scale structural boundaries with smooth anti-aliased gradients instead of rigid single-pixel thresholds.

Safe mode noise suppression

Safe mode noise suppression

Toggling safe mode suppresses high-frequency background noise and intricate micro-textures like fur or grass to isolate primary silhouettes.

Scribble mode gestural strokes

Scribble mode gestural strokes

Scribble mode converts boundaries into thick, coarse contours reminiscent of rough charcoal or marker sketches for loose generative freedom.

ControlNet conditioning compatibility

ControlNet conditioning compatibility

Grayscale edge maps retain volumetric curves and human poses, giving downstream diffusion models room to stylize without angular distortion.

Made with HED Edge Detection

Explore edge maps and conditioned outputs demonstrating volumetric contours, clean noise suppression, and bold gestural lines.

High-contrast structural contours for album sleeve design

High-contrast structural contours for album sleeve design

Dynamic fabric drapery and organic silhouette tracing

Dynamic fabric drapery and organic silhouette tracing

Volumetric architectural form extraction with smooth gradients

Volumetric architectural form extraction with smooth gradients

Footwear structural outline extraction for e-commerce

Footwear structural outline extraction for e-commerce

Automotive edge capture with clean boundary separation

Automotive edge capture with clean boundary separation

What people build with HED Edge Detection

See how concept artists, fashion designers, and visual creators leverage soft edge extraction to guide generative diffusion workflows.

Fashion lookbook styling

01

Extract soft, continuous outlines from runway photography to transfer garments into illustrated or painted concept art without losing fabric drape.

Industrial product re-skinning

02

Capture the primary silhouettes of hardware prototypes and consumer goods while suppressing surface micro-textures for rapid CMF ideation.

Poster and album art conversion

03

Turn high-energy action photos into bold, gestural scribble maps for graphic screen printing and risograph aesthetics.

Cinematic character posing

04

Isolate organic character poses from video plates to guide downstream diffusion models while allowing full costume and background restyling.

Interior and furniture re-imagining

05

Preserve the general volume and curvature of bespoke furniture pieces while giving generative models freedom to explore new materials and finishes.

Frequently Asked Questions

Holistically-Nested Edge Detection (HED) is a deep learning-based edge detector developed by Saining Xie and Zhuowen Tu that learns multi-scale hierarchical image boundaries. Unlike traditional threshold operators, HED generates soft, continuous grayscale lines that capture organic curves and volume.

HED outputs soft, anti-aliased grayscale gradients with varying stroke weights, whereas Canny produces binary, single-pixel lines based on strict intensity thresholds. HED is ideal for organic shapes like humans, animals, and flowing drapery because it gives generative models flexibility to restyle surfaces, while Canny is better suited for rigid geometric drafts.

Safe Mode suppresses chaotic micro-textures and high-frequency background noise to produce clean, continuous contours, making it the preferred choice for standard soft-edge conditioning. In contrast, Scribble Mode applies aggressive augmentation to create heavy, coarse outlines resembling hand-drawn marker or charcoal sketches for looser creative reinterpretations.

Avoid HED when you require mathematical precision, pixel-perfect alignment, or crisp straight lines, such as in architectural blueprints, CAD schematics, or typographic extraction. Because HED outputs soft gradients, downstream models may introduce subtle warping to straight edges.

High-contrast images with clearly defined subjects yield the cleanest edge maps. Low-resolution or heavily compressed images should be avoided, as compression artifacts can be mistakenly processed as soft edges.

Try HED Edge Detection on Fuser

Extract organic grayscale contours and gestural line weight from any photo for flexible ControlNet styling