New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model.save 的问题 #246
Comments
什么情况??什么操作下出现的错误??你认为谁有那么厉害猜到你写了什么代码? |
from bert4keras.models import build_transformer_model model = Model(model.input, output) model.compile( |
我重现了你的实验环境,并且同时还验证了其他组合,都没有出现save失败这个错误啊。。。 |
谢谢,我是在colab和天池的gpu测试的,你的bert4keras是什么版本呢?我之前也没有这个问题,这几天出来的。 |
我刚才测的bert4keras也是0.9.1版本的。如果你确认是这几天才出来的问题,那么你可以尝试逐步回退一下版本,确认一下哪个版本开始有问题,方便我定位错误。 |
你好,我之前是0.8.8 |
我0.8.8报错以后,来issue看就升级到0.9.1,结果还是,有没有可能跟解码方式有关系?python3 |
你好,我是用tf2.1之后,没有错误 |
我也测了python3了,但也没发现错误。你可以逐渐回退一下版本,看看哪个版本开始报错? 现在我这里主要的问题就是我无法复现你说的错误。 |
你好,我把tensorflow升级到2.1.0 就没有错误了 |
我知道你解决了。我的意思只是你方便的话就多提供一点信息给我debug~ |
我主要就看了以上几个包的版本 |
您好,我使用0.9.5的bert4keras, 1.14.0-gpu的tensorflow和2.3.1的Keras在预训练的def on_epoch_end(self, epoch, logs=None)函数中使用self.model.save(save_path)也会报相同的错误。 |
能不能把详细错误贴出来。。。 |
经确认,这是h5py的一个bug:h5py/h5py#1732 可以尝试升级或者回退一下h5py的版本。 |
好的,谢谢大哥
…------------------ 原始邮件 ------------------
发件人: "bojone/bert4keras" <notifications@github.com>;
发送时间: 2020年12月15日(星期二) 下午3:05
收件人: "bojone/bert4keras"<bert4keras@noreply.github.com>;
抄送: " "<836963662@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [bojone/bert4keras] model.save 的问题 (#246)
经确认,这是h5py的一个bug:h5py/h5py#1732
可以尝试升级或者回退一下h5py的版本。
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
提问时请尽可能提供如下信息:
基本信息
核心代码
输出信息
TypeError: a bytes-like object is required, not 'str'# 请在此处贴上你的调试输出
The text was updated successfully, but these errors were encountered: