Skip to content

Commit

Permalink
some args updated after debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
she3r committed Nov 20, 2022
1 parent ff8e65e commit 77308d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion methods/hypernets/fhypermaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def __init__(self, model_func, n_way, n_support, n_query, params=None, approx=Fa
# num_sample_shapes=10, num_sample_points=2048, use_sphere_dist=False,
# use_div_approx_train=False, use_div_approx_test=False)

self.flow_args = Namespace(model_type='PointNet', logprob_type='Normal', input_dim=1, dims='325',
self.flow_args = Namespace(model_type='PointNet', logprob_type='Normal', input_dim=325, dims='500',
# dims mozna zwiekszyc, to sa po prostu wymiary struktury flowa po myslnikach
# num_blocks dajemy 3
# rozklad bierzemy normalny
Expand Down
6 changes: 3 additions & 3 deletions regressionFlow/models/networks_regression_SDD_conditional.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ def forward(self, x: torch.tensor): # x.shape = 5,65 = 5,64 + bias
if self.logprob_type == "Laplace":
y = self.sample_laplace((*x.shape, self.input_dim), self.gpu)
if self.logprob_type == "Normal":
y = self.sample_gaussian((*x.shape, self.input_dim), None, self.gpu)

# y = self.sample_gaussian((*x.shape, self.input_dim), None, self.gpu)
y = self.sample_gaussian((5,65,1), None, self.gpu)
# 3) przerzuc przez flow -> w_i := F_{\theta}(z_i) tu z: embedding rozmiaru 100
target_networks_weights = self.point_cnf(y.reshape(1,-1), z, reverse=True).view(*y.size())
target_networks_weights = self.point_cnf(y.reshape(1,-1), z.reshape(1,-1), reverse=True).view(*y.size())

# Liczenie DKL. Pytanie- na spotkaniu co rozumielismy przez batche? W konktescie TN to batchem
# oznaczymy chyba zbior wag na kanaly wyjscia, ktorych jest piec, kazdy z nich bierze 64 wartosci + bias
Expand Down

0 comments on commit 77308d9

Please sign in to comment.