summaryrefslogtreecommitdiff
path: root/workflows/photo-enhance.json
blob: 6db3e1d34414715bc414da87d30904f21da777a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
  "1": {
    "class_type": "LoadImage",
    "_meta": {"title": "Load Input Photo"},
    "inputs": {
      "image": "NODE_INPUT_IMAGE",
      "upload": "image"
    }
  },
  "3": {
    "class_type": "UpscaleModelLoader",
    "_meta": {"title": "Load realesr-general-x4v3 (photo-tuned AI upscaler)"},
    "inputs": {
      "model_name": "realesr-general-x4v3.pth"
    }
  },
  "4": {
    "class_type": "ImageUpscaleWithModel",
    "_meta": {"title": "Real-ESRGAN 4x — AI denoising + detail recovery at full 4K input (GPU)"},
    "inputs": {
      "upscale_model": ["3", 0],
      "image":         ["1", 0]
    }
  },
  "5": {
    "class_type": "ImageScaleBy",
    "_meta": {"title": "Scale 16K back to original 4K resolution (0.25x lanczos)"},
    "inputs": {
      "image":          ["4", 0],
      "upscale_method": "lanczos",
      "scale_by":       0.25
    }
  },
  "6": {
    "class_type": "CodeFormerRestore",
    "_meta": {"title": "CodeFormer — AI face restoration (GPU, fidelity=0.7)"},
    "inputs": {
      "image":    ["5", 0],
      "fidelity": 0.7
    }
  },
  "11": {
    "class_type": "CLIPSceneDetect",
    "_meta": {"title": "CLIP Scene Detect — classifies scene type (portrait/landscape/night/etc)"},
    "inputs": {
      "image": ["6", 0]
    }
  },
  "12": {
    "class_type": "AdaptivePhotoGrade",
    "_meta": {"title": "Adaptive Photo Grade — scene-tuned exposure/contrast/saturation/detail"},
    "inputs": {
      "images":     ["11", 0],
      "scene_type": ["11", 1]
    }
  },
  "13": {
    "class_type": "SkyEnhance",
    "_meta": {"title": "Sky Enhance — HSV sky mask + graduated exposure/saturation boost"},
    "inputs": {
      "images":         ["12", 0],
      "sky_exposure":   0.30,
      "sky_saturation": 1.20
    }
  },
  "14": {
    "class_type": "DepthSelectiveSharpen",
    "_meta": {"title": "Depth Selective Sharpen — Depth-Anything depth map → foreground sharp, BG soft"},
    "inputs": {
      "images":             ["13", 0],
      "foreground_sharpen": 1.50,
      "background_blur":    0.50
    }
  },
  "15": {
    "class_type": "WritePhotoMetadata",
    "_meta": {"title": "Write Photo Metadata — saves per-photo JSON report to ComfyUI output dir"},
    "inputs": {
      "image":            ["14", 0],
      "scene_type":       ["11", 1],
      "filename_prefix":  "enhanced_",
      "source_filename":  "NODE_INPUT_IMAGE"
    }
  },
  "10": {
    "class_type": "SaveImage",
    "_meta": {"title": "Save Enhanced Photo"},
    "inputs": {
      "images":          ["15", 0],
      "filename_prefix": "enhanced_"
    }
  }
}