Coder Social home page Coder Social logo

Comments (4)

yuval-alaluf avatar yuval-alaluf commented on May 27, 2024 1

If I had to guess, you're probably getting an exception when trying to load the FusedLeakyReLU?
We are not sure when we will have time to add CPU inference support, but you may find the following issue from rosinality helpful:
rosinality/stylegan2-pytorch#89
The commit linked in the issue above should be a good starting point, but some more modifications will most likely be needed.

from pixel2style2pixel.

yuval-alaluf avatar yuval-alaluf commented on May 27, 2024

Hi @justmaulik
This may be possible, but it may be challenging to make the changes to the code as ninja requires CUDA.
However, if you plan on only running inference (and don't have access to a GPU), maybe running on Google colab will suit your needs.
In case you missed it, we have a Google colab linked in the README that can help you get started.

from pixel2style2pixel.

justmaulik avatar justmaulik commented on May 27, 2024

I already tried on colab and also modified some of the code(few lines) where it required CUDA but it's more complex than just a few lines. and I can train it on GPU but I am planning to host inference as API so CPU is the only way the fits my budget.

Replacing ninja to support CPU inference is anywhere on the to-do list? :) or you could just point me in a direction what I need to do to run just the inference on CPU.

from pixel2style2pixel.

justmaulik avatar justmaulik commented on May 27, 2024

Thanks @yuval-alaluf

from pixel2style2pixel.

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.