MCPcopy Create free account
hub / github.com/DSL-Lab/StreamSplat / __init__

Method __init__

model/mixture_model_utils.py:10–18  ·  view source on GitHub ↗
(self, n_sample=1, nr_mix=1)

Source from the content-addressed store, hash-verified

8
9class Truncated_Gaussian_Model(nn.Module):
10 def __init__(self, n_sample=1, nr_mix=1):
11 super(Truncated_Gaussian_Model, self).__init__()
12 self.n_sample = n_sample
13 self.nr_mix = nr_mix
14 self.log_scales_min = -5.0
15 self.log_scales_max = 2.0
16 self.log_scales_a = (self.log_scales_min + self.log_scales_max) / 2
17 self.log_scales_b = (self.log_scales_max - self.log_scales_min) / 2
18 self.perform_sampling = True
19
20 def activate_mean(self, means, mean_activation='tanh'):
21 if mean_activation == 'tanh':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected