mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-22 09:13:01 +00:00
segmenter: add LayerStack2Image to custom_objects
This commit is contained in:
parent
48ae8a5c20
commit
1b489518d0
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ from .model_rainfallwater_segmentation import model_rainfallwater_segmentation
|
|||
from .helpers import make_callbacks
|
||||
from .helpers import summarywriter
|
||||
from .components.LayerConvNeXtGamma import LayerConvNeXtGamma
|
||||
from .components.LayerStack2Image import LayerStack2Image
|
||||
from .helpers.summarywriter import summarywriter
|
||||
|
||||
class RainfallWaterSegmenter(object):
|
||||
|
@ -70,6 +71,7 @@ class RainfallWaterSegmenter(object):
|
|||
|
||||
self.model = tf.keras.models.load_model(filepath_checkpoint, custom_objects={
|
||||
"LayerConvNeXtGamma": LayerConvNeXtGamma,
|
||||
"LayerStack2Image": LayerStack2Image
|
||||
})
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue