mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-25 18:33:01 +00:00
ai: set self.model
This commit is contained in:
parent
f1be5fe2bd
commit
940f7aa1b5
2 changed files with 4 additions and 3 deletions
|
@ -57,8 +57,7 @@ class RainfallWaterContraster(object):
|
||||||
|
|
||||||
|
|
||||||
def make_model(self):
|
def make_model(self):
|
||||||
model = model_rainfallwater_contrastive(batch_size=self.batch_size, **self.kwargs)
|
return model_rainfallwater_contrastive(batch_size=self.batch_size, **self.kwargs)
|
||||||
return model
|
|
||||||
|
|
||||||
|
|
||||||
def load_model(self, filepath_checkpoint):
|
def load_model(self, filepath_checkpoint):
|
||||||
|
|
|
@ -50,3 +50,5 @@ def model_rainfallwater_contrastive(shape_rainfall, shape_water, batch_size=64,
|
||||||
optimizer="Adam",
|
optimizer="Adam",
|
||||||
loss=LossContrastive(batch_size=batch_size, weight_temperature=weight_temperature)
|
loss=LossContrastive(batch_size=batch_size, weight_temperature=weight_temperature)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
return model
|
Loading…
Reference in a new issue