Comments (6)
A small modification you could make to your approach: have the quadrants overlap and blend the overlapping regions. Still not the best solution but it should hide obvious seams between the quadrants.
My code did something very similar to your suggestion. The quadrants do overlap, but they aren't blended together at the end; the overlapping region is just cut off. This prevented the seams, but I didn't try it on any videos with fast motion.
Also, I shouldn't have said quadrants either, because the code can divide the source frames any integer number of times (into fourths, ninths, sixteenths, etc.).
from sepconv-slomo.
Yes, you would have to get a graphics card with more memory. Alternatively, you could choose to not use the graphics card at all by removing the .cuda()
calls. Keep in mind though, that not using a graphics card will increase the inference time.
from sepconv-slomo.
Ah, I see. What should I replace the .cuda() calls to, to get the CPU to work instead? Also, would 8GB of VRAM be enough for 1080p images or how much would you need roughly?
from sepconv-slomo.
You can just remove them. However, I just remembered that you will have to provide a CPU implementation for the adaptive convolution as well.
from sepconv-slomo.
You can just remove them. However, I just remembered that you will have to provide a CPU implementation for the adaptive convolution as well.
I don't understand the code well enough to write my own cpu implementation for this. The only way I could get this to work for higher resolution images was to slice the images into quadrants and upscale each slice separately and then stitch them back together. See this code.
https://pastebin.com/SBPxnQd0
I'm sure there's a better way, but that was the only way I could interpolate a 4k image sequence with 4GB of VRAM. This method probably won't work if there's too much motion but it works fine when there's not. Does anybody have a better recommendation?
from sepconv-slomo.
A small modification you could make to your approach: have the quadrants overlap and blend the overlapping regions. Still not the best solution but it should hide obvious seams between the quadrants.
from sepconv-slomo.
Related Issues (20)
- see_you_again_540.mp4 HOT 1
- vaule of interpolation HOT 1
- Make it work with pytorch installations from wheel packages HOT 1
- YUV HOT 1
- resolution HOT 1
- test HOT 1
- nn.Upsampling is deprecated. Use nn.functional.interpolate instead. HOT 1
- Flow calculation HOT 3
- Perceptual loss HOT 42
- some question about softmax-splatting HOT 1
- some question about code HOT 1
- Need your help to analyze the reason HOT 8
- Assertion Error in Video Frame interpolation HOT 1
- How to train a model HOT 1
- a question about the loss function LF HOT 1
- A question about the Instance normalization HOT 1
- load_state_dict_from_url() got an unexpected keyword argument 'file_name' HOT 1
- How to understand the meaning of the intIndex in sepconv.py? HOT 1
- AttributeError: 'Tensor' object has no attribute 'clip' HOT 2
- Checkpoint Downloading HOT 8
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 sepconv-slomo.