Comments (6)
@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.
@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.
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.
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.
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.
I am assuming that your issue was addressed and closing this issue.
from super-slomo.
Related Issues (20)
- ffmpeg error while running evaluation code. HOT 1
- Output interpolated image frames are of different size then input frames?
- What is the function of transforms.Normalize(mean=negmean, std=std)? Why use a negative mean๏ผ
- Error converting file:D:\Coding\JAVASCRIPT\recless\out\4fpsRecording.mkv. Exiting.
- PackagesNotFoundError: torchvision-cpu==0.2.0 HOT 3
- Runtime Error (Traceback Attached) HOT 23
- Frames are not extracted for any input video
- Differences with butterflow
- Slowdown a point of the video HOT 1
- Why Are fps And sf Setting Separate And Update ReadMe HOT 2
- "index 1 is out of bounds for dimension 0 with size 1" HOT 2
- Reference frames are different from the original ones. HOT 1
- sh: /Users/*/Downloads/ffmpeg/ffmpeg: No such file or directory HOT 2
- Add local file to Google Colab?? Or change length??
- How can I find the dataset of 240-fps video from YouTube HOT 1
- Training
- Objective metrics
- Could be faster by not saving PNG frames
- Image edge flicker
- low rate of utilization in test video
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from super-slomo.