Zero-DCE trains the curve estimation network without reference images using a total loss function composed of four task-specific non-reference loss terms:
Ltotal=Lspa+Lexp+WcolLcol+WtvALtvA
where the loss weights are fixed to Wcol=0.5 and WtvA=20.
- Spatial Consistency Loss (Lspa) preserves spatial coherence and local contrast between the enhanced image Y and input image I across K local regions of size 4×4:
Lspa=K1∑i=1K∑j∈Ω(i)(∣Yi−Yj∣−∣Ii−Ij∣)2
where Ω(i) denotes the four direct neighboring regions (top, down, left, right) of region i, and Yi,Ii are average intensity values within local region i.
- Exposure Control Loss (Lexp) drives local region intensity toward a well-exposed gray level E=0.6 across M non-overlapping patches of size 16×16:
Lexp=M1∑k=1M∣Yk−E∣
- Color Constancy Loss (Lcol) enforces the Gray-World hypothesis to prevent color casts across the enhanced RGB channels:
Lcol=∑∀(p,q)∈{(R,G),(R,B),(G,B)}(Jp−Jq)2
where Jp is the global mean intensity of color channel p in the enhanced image.
- Illumination Smoothness Loss (LtvA) enforces spatial gradient smoothness across the curve parameter maps Anc to prevent neighboring artifact discontinuities over N=8 iterations and channels c∈{R,G,B}:
LtvA=N1∑n=1N∑c∈{R,G,B}(∣∇xAnc∣+∣∇yAnc∣)2
where ∇x and ∇y represent horizontal and vertical spatial gradient operators.