Giter Site home page Giter Site logo

在mmcv的2.1.0版本中,没有mmcv.runner.utils这个文件夹了,要怎么使用mmcv.runner.utils.obj_from_dict导入数据呢? about mmcv HOT 3 OPEN

snowofrainy avatar snowofrainy commented on July 28, 2024
在mmcv的2.1.0版本中,没有mmcv.runner.utils这个文件夹了,要怎么使用mmcv.runner.utils.obj_from_dict导入数据呢?

from mmcv.

Comments (3)

zhouzaida avatar zhouzaida commented on July 28, 2024

你好,在 mmcv2.0 之后的版本,这个函数被舍弃了,如果你仍然想用这个函数,可以参考 https://github.com/open-mmlab/mmcv/blob/265531fa9fe9e071c7d80df549d680ed257d9a16/mmcv/runner/utils.py#L37。
另外,根据你的描述,可能你还在用 OpenMMLab1.0 版本的下游算法库,你可以考虑降低 mmcv 的版本,使用 mmcv<2.0 的版本,可以使用下面的命令:

pip install openmim
mim install "mmcv<2.0"

from mmcv.

snowofrainy avatar snowofrainy commented on July 28, 2024

你好,在 mmcv2.0 之后的版本,这个函数被舍弃了,如果你仍然想用这个函数,可以参考 https://github.com/open-mmlab/mmcv/blob/265531fa9fe9e071c7d80df549d680ed257d9a16/mmcv/runner/utils.py#L37。 另外,根据你的描述,可能你还在用 OpenMMLab1.0 版本的下游算法库,你可以考虑降低 mmcv 的版本,使用 mmcv<2.0 的版本,可以使用下面的命令:

pip install openmim
mim install "mmcv<2.0"

你好,我想请问一下,如果我降低mmcv的版本,会对我使用mmdetection产生影响吗?
image
我想使用该算法来绘制voc数据集的pr曲线,和分析它的result.pkl文件。除此之外,我还有其他的方法来绘制该曲线吗?

from mmcv.

zhouzaida avatar zhouzaida commented on July 28, 2024

从你提供的版本信息可以知道,你使用的 mmdet>=3.0,这意味着你在使用 OpenMMLab2.0 版本,该版本要求 mmcv>=2.0,所以不能降低版本,会影响 mmdet 的使用

from mmcv.

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.