NWVUHV6ZKCRTT3UEXCBWPSGX4CGWXGLK2QTDCUN4L2JKL56N2SNQC
JZRK6Q4KJM2B5NHE257QXMMP4RY6GMNTSSPDPCW63P32SL4NBJWQC
EB3DTD435BDETZX5B3SJCEW666AILYCP5GQI2D2AKAH2CBYHCJ4QC
3QGP6RXLMNWYWMACHKKYEVECRXP7ESGOSWTEY72O46VLXQR5O6IAC
7ML3OFE732OG2ZBZWETBMMZTATOAJGOMNUEIV4GEJI56JX3P7NJQC
6W7MFV2FWQEN2VSZILKAYIH2PJQ2YQKDAR7NMAB5NALGI3LCJLMQC
ROQCAPZJPLENWBMHRK7DNH3CIMZRHPBMVBBKT7NQXRIFHEDZ5JHQC
ZLSXVDETPJLVTDHMYRPYPWTC3KDRMMUL23KNSSKIRHUSLAH2ODNQC
ZM2EMAZOPZDZ2VUIE6NGAXS2OM7MYNWTMHIKM7KPIKSYXXR4D4CQC
SJHJS463IU7LHBM4C6FO2PJSLZLT7LCN26W2D3V2NIQEQKA4HCLAC
QBDHX7BHK4TI5R4MC3S42UCXBTSJJRULHSMOVME3V643X7ABAC2QC
outputs = keras.layers.Dense(1, activation=keras.activations.sigmoid)(
keras.layers.concatenate([d1, d2]))
m = keras.layers.Dense(20, activation=tf.math.asinh)(
keras.layers.concatenate([d1,d2]))
outputs = keras.layers.Dense(chans, activation=keras.activations.sigmoid)(m)
self.heightmap = model()
self.heightmap.compile(optimizer=keras.optimizers.RMSprop(),
loss=shore_focused_loss)
self.members = {}
def heightmap(self):
if 'heightmap' not in self.members:
self.members['heightmap'] = model()
self.members['heightmap'].compile(
optimizer=keras.optimizers.RMSprop(),
loss=shore_focused_loss)
return self.members['heightmap']
def save(self, path):
path = os.fspath(path)
try:
os.makedirs(path)
except FileExistsError:
None
for name, model in self.members.items():
model.save(f'{path}{os.sep}{name}')