Skip to content
Snippets Groups Projects
Commit 9707d42d authored by gong1's avatar gong1
Browse files

update the modular of models

parent 4e1522be
No related branches found
No related tags found
No related merge requests found
Pipeline #125736 failed
......@@ -7,7 +7,7 @@ from .vanilla_convLSTM_model import VanillaConvLstmVideoPredictionModel
from .test_model import TestModelVideoPredictionModel
from model_modules.model_architectures import known_models
from .convLSTM_GAN_model import ConvLstmGANVideoPredictionModel
from .weatherBench3Dcnn import WeatherBenchModel
def get_model_class(model):
model_mappings = known_models()
......
......@@ -13,9 +13,6 @@ from .our_base_model import BaseModels
class WeatherBenchModel(BaseModels):
filters = [64, 64, 64, 64, 2]
kernels = [5, 5, 5, 5, 5]
def __init__(self, hparams_dict_config: dict=None, mode:str="train", **kwargs):
"""
This is class for building weatherBench architecture by using updated hparameters
......@@ -58,8 +55,10 @@ class WeatherBenchModel(BaseModels):
def build_model(self, x):
"""Fully convolutional network"""
x = x[:, 0, :, :, :]
_idx = 0
filters = [64, 64, 64, 64, 2]
kernels = [5, 5, 5, 5, 5]
for f, k in zip(filters[:-1], kernels[:-1]):
with tf.variable_scope("conv_layer_"+str(_idx), reuse=tf.AUTO_REUSE):
x = ld.conv_layer(x, kernel_size=k, stride=1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment