Skip to content

Plenoptic model question #217

Closed
Closed

Description

@pixelsandpointers

Hi all,
I am wondering if the plenoptic model needs parameters, or if I can create a torch.nn.Module to just compute RMS contrast (response) of the input image, and later synthesize metamers based on the RMS contrast?

How would I do that when my model only computes something without having parameters?

Example:

class RMS(torch.nn.Module):
    def __init__(self):
        super().__init__()

    def forward(self, img):
        mean_intensity = torch.mean(img)
        rms = torch.sqrt(torch.mean((img - mean_intensity) ** 2))
        return rms

Thanks in advance!
Ben

Activity

  1. locked and limited conversation to collaborators on Aug 21, 2023
  2. converted this issue into a discussion #218 on Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions