Giter VIP home page Giter VIP logo

Comments (1)

yangapku avatar yangapku commented on May 22, 2024 1

您好,请您更新一下我们repo最新的代码(尤其是modeling_bert.py)再试试哈。 具体来说,bert.pooler是中文roberta模型实现中自带的一个模块(我们文本侧encoder使用中文roberta),但这个模块我们的CLIP并不需要用到。因此我们在近期更新的代码中,已经在模型实现modeling_bert.py中去掉了这个模块的定义,同时也将我们开放下载的参数ckpt文件移除了里面的bert.pooler参数值。您列出的这一行代码,主要是为了让最新的模型代码,还能够兼容大家之前已经下载的含有bert.pooler参数值的ckpt,在读取ckpt的时候能自动忽略掉里面bert.pooler的部分。但是如果使用更新前的代码,去load新的ckpt,可能就会报您这里的错误了,这个就需要您更新下最新代码来解决了。

from chinese-clip.

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.