Plenoptic model question #218
Replies: 1 comment 2 replies
-
Thanks for your interest in Yup, any However, class RMS(torch.nn.Module):
def __init__(self):
super().__init__()
def forward(self, img):
mean_intensity = torch.mean(img, dim=[-2, -1]).unsqueeze(-1).unsqueeze(-1)
rms = torch.sqrt(torch.mean((img - mean_intensity) ** 2, dim=[-2, -1]))
return rms.unsqueeze(-1) The two I tried to address this point in the docs, did you see my description there? (Note: I changed this to a discussion, because we want to keep usage questions here, saving issues for bug reports and planning changes to the code base.) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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:
Thanks in advance!
Ben
Beta Was this translation helpful? Give feedback.
All reactions