ComfyUI Extension
ComfyUI-FisheyeTransform
Custom nodes for handling fisheye camera distortion in ComfyUI inpainting workflows.
QuackPhuc/ComfyUI-FisheyeTransform
Nodes3
On cloudLocal install
Categoryimage/transform
Stars0
Updated7 months ago
Nodes (3)
Readme
ComfyUI Fisheye Transform Nodes
Custom nodes for handling fisheye camera distortion in ComfyUI inpainting workflows.
Problem Solved
When inpainting fisheye images, generative models produce objects with incorrect perspective because they're trained on rectilinear (flat) images. This node pack provides:
- Undistort fisheye → flat image (before inpainting)
- Redistort flat → fisheye (after inpainting)
Installation
Copy this folder to your ComfyUI custom_nodes directory:
ComfyUI/custom_nodes/ComfyUI-FisheyeTransform/
Restart ComfyUI.
Nodes
🐟 Fisheye Undistort
Converts fisheye image to rectilinear. Use before inpainting.
Inputs:
image: Fisheye IMAGEmask: Optional MASK (will be transformed too)strength: Distortion strength (0.0-3.0, default 1.0)zoom: Output zoom level (0.5-2.0, default 1.0)
Outputs:
image: Undistorted IMAGEmask: Undistorted MASKparams: Parameters for redistortion
🐟 Fisheye Redistort
Restores fisheye distortion. Use after inpainting.
Inputs:
image: Flat IMAGE (inpainted result)params: FISHEYE_PARAMS from Undistort nodemask: Optional MASK
Outputs:
image: Fisheye IMAGEmask: Fisheye MASK
🐟 Fisheye Strength Estimate
Estimates distortion strength from image (heuristic).
Tips
- Start with
strength=1.0and adjust based on your camera - If edges look stretched after undistort, increase
zoom - Korean street cameras typically use
strengtharound 0.8-1.2