mirror of
https://github.com/Deepshift/DeepCreamPy.git
synced 2024-11-28 11:09:42 +00:00
remove model name restriction
This commit is contained in:
parent
40d3a50d45
commit
a6f60f4784
@ -230,9 +230,9 @@ class PConvUnet(object):
|
||||
|
||||
# Load weights into model
|
||||
#epoch = 50
|
||||
epoch = int(os.path.basename(filepath).split("_")[0])
|
||||
assert epoch > 0, "Could not parse weight file. Should start with 'X_', with X being the epoch"
|
||||
self.current_epoch = epoch
|
||||
# epoch = int(os.path.basename(filepath).split("_")[0])
|
||||
# assert epoch > 0, "Could not parse weight file. Should start with 'X_', with X being the epoch"
|
||||
# self.current_epoch = epoch
|
||||
self.model.load_weights(filepath)
|
||||
|
||||
def current_weightfile(self):
|
||||
|
Loading…
Reference in New Issue
Block a user