试图将模型保存在H5(使用Keras和TensorFlow)中 - 无法创建链接
runtimeerror :追溯(最新通话 last)in() 128#运行实验,带有移动的贴剂令牌化和位置自我注意的vit 129 vit_net = create_vit_classifier(vanilla = false) - > 130 vit_model = run_experiment(vit_net)
3帧/us/local/lib/python3.7/dist-packages/h5py/_hl/group.py.py in setItem (self,name,obj) 371 372如果Isinstance(obj,hlobject): - > 373 H5O.link(obj.id,self.id,name,lcpl = lcpl,lapl = self._lapl) 374 375 Elif Isinstance(OBJ,软链接):
h5py._objects.with_phil.wrapper()
中的h5py/_objects.pyxs.pyxh5py._objects.with_phil.wrapper()
中的h5py/_objects.pyxs.pyxh5py.h5o.link()
中的h5py/h5o.pyxRuntimeError:无法创建链接(名称已经存在)
RuntimeError: Traceback (most recent call
last) in ()
128 # Run experiments with the Shifted Patch Tokenization and Locality Self Attention modified ViT
129 vit_net = create_vit_classifier(vanilla=False)
--> 130 vit_model = run_experiment(vit_net)3 frames /usr/local/lib/python3.7/dist-packages/h5py/_hl/group.py in
setitem(self, name, obj)
371
372 if isinstance(obj, HLObject):
--> 373 h5o.link(obj.id, self.id, name, lcpl=lcpl, lapl=self._lapl)
374
375 elif isinstance(obj, SoftLink):h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
h5py/_objects.pyx in h5py._objects.with_phil.wrapper()
h5py/h5o.pyx in h5py.h5o.link()
RuntimeError: Unable to create link (name already exists)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论