kaanaksit / odak

Scientific computing library for optics, computer graphics and visual perception.
https://kaanaksit.com/odak
Mozilla Public License 2.0
176 stars 52 forks source link

Add code to check inputs to all loss functions are valid #51

Closed drwalton closed 2 years ago

drwalton commented 2 years ago

Add checks to all perceptual losses that ensure dimensions of inputs are correct. This should provide more helpful error messages to users that provide inputs in the wrong format, or when the dimensions of input and target do not match.