mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 01:12:59 +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):
|
||||
model = model_rainfallwater_contrastive(batch_size=self.batch_size, **self.kwargs)
|
||||
return model
|
||||
return model_rainfallwater_contrastive(batch_size=self.batch_size, **self.kwargs)
|
||||
|
||||
|
||||
def load_model(self, filepath_checkpoint):
|
||||
|
|
|
@ -49,4 +49,6 @@ def model_rainfallwater_contrastive(shape_rainfall, shape_water, batch_size=64,
|
|||
model.compile(
|
||||
optimizer="Adam",
|
||||
loss=LossContrastive(batch_size=batch_size, weight_temperature=weight_temperature)
|
||||
)
|
||||
)
|
||||
|
||||
return model
|
Loading…
Reference in a new issue