mono: fix loading checkpoint

This commit is contained in:
Starbeamrainbowlabs 2022-11-29 15:25:11 +00:00
parent dba6cbffcd
commit 838ff56a3b
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -15,6 +15,7 @@ from .helpers import make_callbacks
from .helpers import summarywriter from .helpers import summarywriter
from .components.LayerConvNeXtGamma import LayerConvNeXtGamma from .components.LayerConvNeXtGamma import LayerConvNeXtGamma
from .components.LayerStack2Image import LayerStack2Image from .components.LayerStack2Image import LayerStack2Image
from .components.LossCrossentropy import LossCrossentropy
from .helpers.summarywriter import summarywriter from .helpers.summarywriter import summarywriter
class RainfallWaterMono(object): class RainfallWaterMono(object):
@ -71,7 +72,8 @@ class RainfallWaterMono(object):
self.model = tf.keras.models.load_model(filepath_checkpoint, custom_objects={ self.model = tf.keras.models.load_model(filepath_checkpoint, custom_objects={
"LayerConvNeXtGamma": LayerConvNeXtGamma, "LayerConvNeXtGamma": LayerConvNeXtGamma,
"LayerStack2Image": LayerStack2Image "LayerStack2Image": LayerStack2Image,
"LossCrossentropy": LossCrossentropy
}) })