Giter Site home page Giter Site logo

Comments (6)

Dcnigma avatar Dcnigma commented on August 23, 2024 3

look for this File "/stable-diffusion-webui/extensions/sd-cn-animation/scripts/core/txt2vid.py",
@ line 51,in **FloweR_load_model FloweR_model.load_state_dict(torch.load(model_path))**change that to > FloweR_model.load_state_dict(torch.load(model_path, map_location="cpu"))

That fixed it for me, but still waiting only at frame 4 of the 40 :-D

from sd-cn-animation.

kevinhower avatar kevinhower commented on August 23, 2024

I get the same thing. Also on M1

from sd-cn-animation.

minorbug avatar minorbug commented on August 23, 2024

same here. welsh runs with the cpu/skip coda flags mentioned, so can the plugin do the same?

from sd-cn-animation.

Bloxmine avatar Bloxmine commented on August 23, 2024

look for this File "/stable-diffusion-webui/extensions/sd-cn-animation/scripts/core/txt2vid.py", @ line 51,in **FloweR_load_model FloweR_model.load_state_dict(torch.load(model_path))**change that to > FloweR_model.load_state_dict(torch.load(model_path, map_location="cpu"))

That fixed it for me, but still waiting only at frame 4 of the 40 :-D

This does work, although using the CPU to render isn't really as much a fix as it is a workaround.

from sd-cn-animation.

mrcaipeng avatar mrcaipeng commented on August 23, 2024

In vid2vid mode, the same issue could happened. but I tried to fixe it by change the code in flow_utils.py.

At 55 line in flow_utils.py

change "RAFT_model.load_state_dict(torch.load(args.model))" to "RAFT_model.load_state_dict(torch.load(args.model, map_location=device))".

it works, but the performance is very bad.

from sd-cn-animation.

murtuk avatar murtuk commented on August 23, 2024

I get the same error on M2 too. I make changes mentioned above one by one and together - but I still get only one frame and this error when I make the changes: "An exception occurred while trying to process the frame: Input type (MPSFloatType) and weight type (torch.FloatTensor) should be the same"

from sd-cn-animation.

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.