Giter Club home page Giter Club logo

Comments (4)

xinntao avatar xinntao commented on August 20, 2024 2

@nihirv

  1. The StyleGAN needs customized CUDA(with GPU) extensions. So the original model requires GPU. I have updated a new version which does not require such CUDA extensions. So the GFPGAN can be run with CPU/ or run on windows. See the updates in : https://github.com/TencentARC/GFPGAN
  2. I have merged the PR. Thanks. :-)

from facexlib.

nihirv avatar nihirv commented on August 20, 2024

Hmm, I made the change in utils/face_restoration_helper.py > FaceRestoreHelper > __init__, and was planning on opening a pr, but it seems that the basicsr library needs CUDA drivers too. Still, it's only a one line change and those who want to use facexlib without GPU might benefit from it, so I'll open a pr

from facexlib.

xinntao avatar xinntao commented on August 20, 2024
  1. The current GFPGAN requires GPU, so it may not available for CPU inference. We may add a CPU-support model later.
  2. I think BasicSR can support CPU only. (if we do not use those cuda extensions.)
  3. Thanks, it is better to add an option for supporting CPU

from facexlib.

nihirv avatar nihirv commented on August 20, 2024
  1. Yes please - that'd be great. Is it the StyleGAN part which needs the GPU?
  2. I'm getting a: "OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root." through basicsr\ops\dcn\deform_conv.py", line 14 inside the if BASICSR_JIT == 'True': flag
  3. PR opened (it's not a flag, just a device check): #6

from facexlib.

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.