Git Product home page Git Product logo

Comments (10)

linchunmian avatar linchunmian commented on August 23, 2024 2

I convert the type of feature_map_size to int32 by adding .to(torch.int32).
It seems this bug has passed, and the code run normally.
Many thanks for your helps.

from centerpoint-kitti.

tianweiy avatar tianweiy commented on August 23, 2024

Seems that some value need to be converted to cuda. You can just add a cuda() at that line ?

from centerpoint-kitti.

linchunmian avatar linchunmian commented on August 23, 2024

from centerpoint-kitti.

tianweiy avatar tianweiy commented on August 23, 2024

I mean adding a cuda() to this line you referenced #2 (comment)

Does this work? If not please paste the full log, this is easier than sentences for debugging

from centerpoint-kitti.

linchunmian avatar linchunmian commented on August 23, 2024

I mean adding a cuda() to this line you referenced #2 (comment)

Does this work? If not please paste the full log, this is easier than sentences for debugging

Thanks. The error information is as follows:
Screenshot from 2021-05-26 09-06-01
Where should cuda() be added?

from centerpoint-kitti.

tianweiy avatar tianweiy commented on August 23, 2024

either center_int or feature_map_size

from centerpoint-kitti.

tianweiy avatar tianweiy commented on August 23, 2024

like

center_int[0].cuda() < feature_map_size[0].cuda() ...

from centerpoint-kitti.

linchunmian avatar linchunmian commented on August 23, 2024

like

center_int[0].cuda() < feature_map_size[0].cuda() ...

Many thanks. As you said, I have added cuda() behind the variance of 'feature_map_size', and new type problem happens:
Screenshot from 2021-05-26 09-17-04
How to solve it? By the way, adding cuda() after center_int, e.g center_int().cuda() does not make effect.

from centerpoint-kitti.

tianweiy avatar tianweiy commented on August 23, 2024

try this

if not (0 <= center_int[0] < feature_map_size[0].cuda().int()
      and 0 <= center_int[1] < feature_map_size[1].cuda().int()):

from centerpoint-kitti.

bi-qiuqiu avatar bi-qiuqiu commented on August 23, 2024

I convert the type of feature_map_size to int32 by adding .to(torch.int32). It seems this bug has passed, and the code run normally. Many thanks for your helps.
Did you change all feature_map_size in this file to feature_map_size.to(torch.int32)?I changed line 269 to if not (0 <= center_int[0] < feature_map_size[0].cuda().int(),but this problem arises.
and 0 <= center_int[1] < feature_map_size[1].cuda().int()):
image

from centerpoint-kitti.

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.