Can we compute hue from an RGB tensor in a differentiable way?
My model is n RGB color space and I want to write a loss function to minimise the difference in hue component in the input image and the image generated by the model.
Hue Loss = |Hue Input - Hue output|

Thank you