-
Notifications
You must be signed in to change notification settings - Fork 132
Description
I used model.save() but I got the error:
Traceback (most recent call last):
File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py", line 1477, in _exec
pydev_imports.execfile(file, globals, locals) # execute the script
File "/Users/liang/Downloads/mee/3_rgcn/rgcn/train.py", line 322, in
model.save('./models/1.h5')
File "/Users/liang/opt/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/topology.py", line 2630, in save
save_model(self, filepath, overwrite)
File "/Users/liang/opt/anaconda3/envs/py2/lib/python2.7/site-packages/keras/models.py", line 56, in save_model
model.save_weights_to_hdf5_group(model_weights_group)
File "/Users/liang/opt/anaconda3/envs/py2/lib/python2.7/site-packages/keras/engine/topology.py", line 2679, in save_weights_to_hdf5_group
dtype=val.dtype)
File "/Users/liang/opt/anaconda3/envs/py2/lib/python2.7/site-packages/h5py/_hl/group.py", line 139, in create_dataset
self[name] = dset
File "/Users/liang/opt/anaconda3/envs/py2/lib/python2.7/site-packages/h5py/_hl/group.py", line 373, in setitem
h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5o.pyx", line 202, in h5py.h5o.link
RuntimeError: Unable to create link (name already exists)