Giter Site home page Giter Site logo

loss=NAN about storygen HOT 3 CLOSED

lq-blackcat avatar lq-blackcat commented on May 26, 2024
loss=NAN

from storygen.

Comments (3)

haoningwu3639 avatar haoningwu3639 commented on May 26, 2024

Well, in my mind, we have not encountered such a problem before.
In my opinion, I suggest you (1) use the pre-trained parameters in Stable Diffusion to initialize the new module; (2) try to use float32 training; (3) check whether inf or nan appears during the forward process.
The training process of the diffusion model is relatively stable, and nan situations usually do not occur. If it still cannot be solved, you can continue to communicate with us.

from storygen.

lq-blackcat avatar lq-blackcat commented on May 26, 2024

WARNING:main:Could not enable memory efficient attention. Make sure xformers is installed correctly and a GPU is available: No such operator xformers::efficient_attention_forward_generic - did you forget to build xformers with python setup.py develop?
The issue occurs when I use xformers==0.0.13, and when I use xformers==0.0.16, I encounter a problem with loss=nan.

from storygen.

Verg-Avesta avatar Verg-Avesta commented on May 26, 2024

I believe this issue(No such operator xformers::efficient_attention_forward_generic) is due to incompatibilities between xformers and versions of other libraries, such as CUDA or diffusers. Please carefully compare the versions of each library in your environment with those we recommend to see if there are any discrepancies.

from storygen.

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.