Code Monkey home page Code Monkey logo

Comments (7)

billcai avatar billcai commented on May 27, 2024 2

Not sure if it's possible - might need to find equivalents for the in place abn functions that currently rely on CUDA...I'm interested in finding out the answer to this question too.

from ternausnetv2.

s-shikharcse avatar s-shikharcse commented on May 27, 2024

Hey did you get any solution to this problem?

from ternausnetv2.

antran89 avatar antran89 commented on May 27, 2024

I run it on GPU :-)

from ternausnetv2.

billcai avatar billcai commented on May 27, 2024

I have a working CPU version - you need to change all the ifs in module/src/inplace_abn.cpp that seem to only enable the cuda versions. The CPU versions are already implemented but not used - you just need to activate them.

from ternausnetv2.

NickMcCarthy101 avatar NickMcCarthy101 commented on May 27, 2024

@billcai what do you mean by the ifs and is it just in the module/src/inplace_abn.cpp file that this is the case?

from ternausnetv2.

billcai avatar billcai commented on May 27, 2024

Removed this if else statement and just leave the cpu version for all the functions in inplace_abn.cpp

For example, from:

if (x.is_cuda()) {
return mean_var_cuda(x);
} else {
return mean_var_cpu(x);
}

To:

return mean_var_cpu(x):

from ternausnetv2.

shukla-19 avatar shukla-19 commented on May 27, 2024

Thanks a lot @billcai . Your input helped me after days of struggle on the same. One more important thing I had to do was comment out or delete the "inplace_abn_cuda.cu" in the functions .py script in the modules. Ultimately, then the TernausNetV2 was imported.

from ternausnetv2.

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.