GithubHelp home page GithubHelp logo

feature extract error about easycv HOT 5 OPEN

alibaba avatar alibaba commented on May 8, 2024
feature extract error

from easycv.

Comments (5)

wenmengzhou avatar wenmengzhou commented on May 8, 2024

can you attach the exported checkpoint and give the model info

from easycv.

budaLi avatar budaLi commented on May 8, 2024

看起来是训练时候的配置参数是OrderDict类型的,不支持直接写入
image

from easycv.

budaLi avatar budaLi commented on May 8, 2024

can you attach the exported checkpoint and give the model info

请问有比较好的解决方法嘛

from easycv.

wenmengzhou avatar wenmengzhou commented on May 8, 2024

can you attach the exported checkpoint and give the model info

请问有比较好的解决方法嘛

看起来你是直接用的训练保存的checkpoint做预测,而没有进行export模型?

from easycv.

MuhammadHakami avatar MuhammadHakami commented on May 8, 2024

exported the model and still faced the same issue. it was due to the TorchFeatureExtractor writing the dictionary model configs into a disk while expecting it as a string. for a quick walkaround, just replace "ofile.write(config_str)" in line 48 with:

import json
json.dump(config_str, ofile)

silly issue. maybe some other models have the value config checkpoint['meta']['config'] as a string.

from easycv.

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.