Giter Club home page Giter Club logo

Comments (6)

avinashpaliwal avatar avinashpaliwal commented on May 16, 2024

@Shivanshmundra This error normally occurs when the device here and here is "cpu" while at other places it is "cuda:0" / gpu. Basically the flow back warper is on cpu while the tensor is on gpu. How are you changing the code to run on CPU/GPU. Did you make any modification to the code?

from super-slomo.

Shivanshmundra avatar Shivanshmundra commented on May 16, 2024

@avinashpaliwal I just changed device = "cpu" so that PyTorch uses cpu forcefully in code here.
I tried exporting model and data to cuda device after they were loaded but still, same error occurred.

from super-slomo.

avinashpaliwal avatar avinashpaliwal commented on May 16, 2024

When you are manually exporting the model try to set this and the device on the next line to cuda as well.

from super-slomo.

Shivanshmundra avatar Shivanshmundra commented on May 16, 2024

I used the pre-trained model given by you and changed the variable device value to cpu/cuda:0. So Every line now should have used the value of device variable and hence should not be a problem due to that.
If you can once try to convert any video to slowmo by pretrained model from latest commit in this branch, it would imply that I am making mistake somewhere.

from super-slomo.

avinashpaliwal avatar avinashpaliwal commented on May 16, 2024

I have tested it and it's working fine. My configuration is: PyTorch 0.4.1, python 3.6.7, Cuda 9.2, Windows. I have not tested it with other configurations and therefore can't say for sure about the issues that will crop up.

  • Was the script working for you at some commit version?
  • Did you also try running from a fresh clone/fork?
  • If some version of the code was working, then take a diff between the two versions of scripts (maybe also other dependent files) and make incremental changes to the working code to find out where the problem is.

from super-slomo.

avinashpaliwal avatar avinashpaliwal commented on May 16, 2024

I am assuming that your issue was addressed and closing this issue.

from super-slomo.

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.