Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spatial option which returns a spatial map of the perceptual difference (shape height x width) #6

Closed
wants to merge 3 commits into from

Conversation

connellybarnes
Copy link

@connellybarnes connellybarnes commented Apr 10, 2018

This option is demonstrated in the test_network.py when spatial is set to True.

When the mean is taken of the spatial distance map, the resulting distance is the same as the scalar perceptual distance. However, the spatial distance map additionally allows one to visualize which spatial regions the network has determined are different.

The spatial distance map is created by using nearest neighbor upsampling on the individual layer responses. The upsampled size is the least common multiple of the associated layer sizes. This choice allows the mean of the spatial distance map to match the original scalar distance.

Connelly Barnes added 3 commits April 10, 2018 16:47
… spatial_factor (also mentioned in the example program test_network.py) to control spatial output shape and upsampling filter order. make the automatic spatial size be determined based on a multiplier (spatial_factor) of the max size of the CNN layer spatial extents.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant