Skip to content

Commit

Permalink
Dev icenet-ai#252: looking at test set fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JimCircadian committed May 28, 2024
1 parent 36a1842 commit 0ebcdcb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions icenet/model/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import pandas as pd
import tensorflow as tf

import icenet.model.models as models

from icenet.data.loader import save_sample
from icenet.data.dataset import IceNetDataSet
from icenet.model.cli import predict_args
from icenet.model.networks.tensorflow import unet_batchnorm

"""
Expand All @@ -22,7 +22,7 @@ def predict_forecast(
network_name: object,
dataset_name: object = None,
legacy_rounding: bool = False,
model_func: callable = models.unet_batchnorm,
model_func: callable = unet_batchnorm,
n_filters_factor: float = 1 / 8,
network_folder: object = None,
output_folder: object = None,
Expand Down Expand Up @@ -56,7 +56,8 @@ def predict_forecast(

dataset_name = dataset_name if dataset_name else ds.identifier
network_path = os.path.join(
network_folder, "{}.network_{}.{}.h5".format(network_name, dataset_name,
network_folder, "{}.network_{}.{}.h5".format(network_name,
dataset_name,
seed))

logging.info("Loading model from {}...".format(network_path))
Expand Down

0 comments on commit 0ebcdcb

Please sign in to comment.