MCPcopy Create free account
hub / github.com/Parskatt/DeDoDe / __init__

Method __init__

DeDoDe/decoder.py:7–12  ·  view source on GitHub ↗
(self, layers, *args, super_resolution = False, num_prototypes = 1, **kwargs)

Source from the content-addressed store, hash-verified

5
6class Decoder(nn.Module):
7 def __init__(self, layers, *args, super_resolution = False, num_prototypes = 1, **kwargs) -> None:
8 super().__init__(*args, **kwargs)
9 self.layers = layers
10 self.scales = self.layers.keys()
11 self.super_resolution = super_resolution
12 self.num_prototypes = num_prototypes
13 def forward(self, features, context = None, scale = None):
14 if context is not None:
15 features = torch.cat((features, context), dim = 1)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected