Giter Club home page Giter Club logo

Comments (5)

YukeeWang avatar YukeeWang commented on August 22, 2024 1

您好,”代码唯一修改的地方就是在运行extract_convert.py文件的时候报错,TypeError: Object of type int64 is not JSON serializable“该问题我也遇到过,在写入文档前,即 f.write(json.dumps(d, ensure_ascii=False) + '\n')前,加入两行代码
d = repr(d)
d = eval(d)就可以正常运行了,不太明白什么原因,转换数据类型再转回来就可以存储了,确实很奇怪

from spaces.

bojone avatar bojone commented on August 22, 2024

很抱歉,但是很遗憾,我也不知道你们什么问题。

因为有人报告过同样的问题,也有人报告过能成功训练,我自己也能成功训练,所以我也无从下手。

建议尝试:1、严格对齐环境;2、去掉EMA。

from spaces.

Wenpeng-huang avatar Wenpeng-huang commented on August 22, 2024

感谢您百忙之后回答的我问题,除了你在介绍文档里提到的实验环境:tensorflow 1.14 + keras 2.3.1 + bert4keras 0.9.7之外,是否还有其他您认为可能对实验结果产生影响的实验环境呢?

from spaces.

zmz125 avatar zmz125 commented on August 22, 2024

我也是这个错误:
TypeError: Object of type 'int64' is not JSON serializable

加两行代码可以了,感谢解决!

from spaces.

zmz125 avatar zmz125 commented on August 22, 2024

感谢您百忙之后回答的我问题,除了你在介绍文档里提到的实验环境:tensorflow 1.14 + keras 2.3.1 + bert4keras 0.9.7之外,是否还有其他您认为可能对实验结果产生影响的实验环境呢?

确实其他的包也会影响,我的环境numpy原来是1.19,报很多错误,改成1.16就没错了

from spaces.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.