if self.ser_path.is_dir():
opt_path = "{}/{}_opt.json".format(self.ser_path, self._ser_file)
weights_path = "{}/{}.h5".format(self.ser_path, self._ser_file)
else:
opt_path = "{}_opt.json".format(self.ser_path)
weights_path = "{}.h5".format(self.ser_path)
if Path(opt_path).exists() and Path(weights_path).exists():
print("___Initializing model from saved___"
"\nModel weights file is %s.h5"