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 (an array with shape (height, width)) #7

Merged
merged 3 commits into from
Apr 15, 2018

Conversation

connellybarnes
Copy link

The main change here is the spatial optional parameter of DistModel.initialize(), which if True causes spatial maps of perceptual distance to be returned by forward(). This is demonstrated in test_network.py.

Also, add to DistModel.initialize() optional arguments spatial_shape, spatial_order, and spatial_factor. These are documented in DistModel.initialize() docstring, and referred to in the example program test_network.py. These variables control spatial output shape (spatial_shape), upsampling filter order (spatial_order), and spatial_factor determines a default shape if one is not specified by multiplier factor of the max size of the CNN layer spatial extents.

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.
@richzhang richzhang merged commit bd9b3a6 into richzhang:master Apr 15, 2018
Absolute-Value pushed a commit to Absolute-Value/PerceptualSimilarity that referenced this pull request Mar 15, 2023
Add spatial option which returns a spatial map of the perceptual difference (an array with shape (height, width))
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.

2 participants