Giter VIP home page Giter VIP logo

Comments (3)

yangapku avatar yangapku commented on May 22, 2024

收到,我们先排查一下哈

from chinese-clip.

yangapku avatar yangapku commented on May 22, 2024

@zhou-wenn 您好,您可以先按照我们以下给出的建议试一试:

  1. 请您再拉一下最新的代码,我们稍微更新了一下这个shell脚本,修复了之前一个脚本中的路径bug。
  2. 请您尝试pip uninstall cn_clip,卸载掉环境中已经安装的cn_clip包。因为您已经拉下了我们的完整代码,并且这一部分zero-shot的代码可以不需要pip装cn_clip包。直接命令行进入您项目代码的目录Chinese-CLIP-master,即可运行这个bash命令。
  3. 您在脚本run_scripts/zeroshot_eval.sh中,不需要对原始的脚本写法进行改动。需要您指定的配置项,均是执行bash run_scripts/zeroshot_eval.sh这个命令时传入的(就是这行bash命令后面的几个参数),它们会传入脚本中替换掉{1}, {2}, ..., {7}这些变量,具体您可以再简单熟悉下shell脚本的传参机制。
  4. 建议您从readme,重新下载一下我们示例的FGVC数据集,我们刚刚修正了一下目录名以及加入了label_cn.txt文件。请将解压后的fgvc-aircraft-2013b-variants102目录,按照推荐方式放在${DATAPATH}/datasets/下。执行bash命令时,第三个配置项${dataset_name}即设为fgvc-aircraft-2013b-variants102
  5. 执行bash命令时,最后一个配置项${ckpt_path}需要填写完整的预训练模型pt文件路径,仅仅写data/ckpt是不行的哈。

请您先按照这几项建议修改下,由于FGVC数据集难度比较大,在正常情况下base模型的准确率为12.8%左右,您也可以参阅ELEVATER数据文档继续试试其他几个分类数据集,如果还有问题请继续留言!

from chinese-clip.

zhou-wenn avatar zhou-wenn commented on May 22, 2024

非常感谢作者的回复,给予了我很大的帮助,我会依照上述建议再尝试,谢谢!

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.