Li-Chongyi / Zero-DCE

Zero-DCE code and model
794 stars 188 forks source link

the formula in the paper seems different whit it in the code #11

Open JuZiSYJ opened 4 years ago

JuZiSYJ commented 4 years ago

The formula in the paper is

LEn(x) = LEn−1(x) + αnLEn−1(x)(1 − LEn−1(x))

However, the formula in the code is

x = x + r1*(torch.pow(x,2)-x)

it seems like

LEn(x) = LEn−1(x) + αnLEn−1(x)( LEn−1(x) - 1)

TueAnh commented 3 years ago

https://github.com/bsun0802/Zero-DCE/blob/master/code/model.py line 46: "sign doesn't really matter because of symmetry."