Giter Site home page Giter Site logo

Error in inference about diffbir HOT 3 OPEN

xpixelgroup avatar xpixelgroup commented on June 15, 2024
Error in inference

from diffbir.

Comments (3)

0x3f3f3f3fun avatar 0x3f3f3f3fun commented on June 15, 2024

The reason may be cuda out of memory. DiffBIR requires at least 10G gpu memory for inference at a resolution of 512 now.

from diffbir.

ZhouYFeng avatar ZhouYFeng commented on June 15, 2024

One V100 32G used for the inference. But still failed.

Seems like the data dimensions do not match the actual data dimensions when the nn.Linear is defined, and need to be checked and modified.

The cuda version of mine is 11.4. I am not sure if it is okay for the env requirement provieded in DiffBIR.

from diffbir.

0x3f3f3f3fun avatar 0x3f3f3f3fun commented on June 15, 2024

Since the program automatically handles data shape, I don't think it's a data shape issue. However, if you still have doubts, you can test it with some 512x512 images.
After searching on Google, I found that most people solved this problem by updating their environment:

So, you can try reinstalling your environment, especially PyTorch and CUDA Toolkit, strictly following the instructions in the README.md.

from diffbir.

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.