You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am training a CNN to perform single image super resolution, and I want to use SAM as a loss metric. I imported sewar and defined SAM function, and then added it to the loss metrics in the model arguments as so:
It seems to me that the problem could be because you pass batch (multiple images) not a single image. Sewar metrics are implemented to support only images with 3 dims. so (32, 32, 3) is supported however (None, 32, 32, 3) has one extra dimension (won't work)
I am training a CNN to perform single image super resolution, and I want to use SAM as a loss metric. I imported sewar and defined SAM function, and then added it to the loss metrics in the model arguments as so:
However, I get the following error:
AssertionError: Supplied images have different sizes (None, 32, 32, 3) and (None, 32, 32, 3)
I am confused as to how to solve this, because it seems to me that the sizes are the same. Can someone help me with this?
The text was updated successfully, but these errors were encountered: