Git Product home page Git Product logo

Comments (6)

cdb342 avatar cdb342 commented on June 10, 2024 2

mmcls 0.25.0 mmcv-full 1.5.2 mmdet 2.24.0 mmdet3d 1.0.0rc4 mmsegmentation 0.24.0 this is my envs,actually it's created according to your install.md,I have tried the following operation: type(img_metas[0]) <class 'mmcv.parallel.data_container.DataContainer'> img_metas[0].data() Traceback (most recent call last): File "", line 1, in TypeError: 'list' object is not callable

As you can see,.data() seems not to be useful for the question @zhiqi-li

I change the code as this and it works:

# if num_augs==1 and not img_metas[0][0].get('tta_config', dict(dist_tta=False))['dist_tta']:
if num_augs==1 and not img_metas[0].data[0][0].get('tta_config', dict(dist_tta=False))['dist_tta']:
    # return self.simple_test(points[0], img_metas[0], img_inputs[0],
    #                     **kwargs)
    return self.simple_test(points[0], img_metas[0].data[0], img_inputs[0],
                        **kwargs)
else:

from fb-bev.

zhanghm1995 avatar zhanghm1995 commented on June 10, 2024

I also encountered this error, have you solved this problem?

from fb-bev.

Egozjuer avatar Egozjuer commented on June 10, 2024

I encounted the same question, @zhiqi-li please teel us the reasons

from fb-bev.

zhiqi-li avatar zhiqi-li commented on June 10, 2024

I think this is the problem of versions of openmmlab packages. The input img_metas still are wrapped with its DataContainer, and this can be solved by calling .data property of DataContainer to recover the raw data.

from fb-bev.

Egozjuer avatar Egozjuer commented on June 10, 2024

mmcls 0.25.0
mmcv-full 1.5.2
mmdet 2.24.0
mmdet3d 1.0.0rc4
mmsegmentation 0.24.0
this is my envs,actually it's created according to your install.md,I have tried the following operation:
type(img_metas[0])
<class 'mmcv.parallel.data_container.DataContainer'>
img_metas[0].data()
Traceback (most recent call last):
File "", line 1, in
TypeError: 'list' object is not callable

As you can see,.data() seems not to be useful for the question @zhiqi-li

from fb-bev.

Gaaaavin avatar Gaaaavin commented on June 10, 2024

@cdb342 Maybe you should consider submitting a pull request that addresses this problem.

from fb-bev.

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.