Comments (5)
If out-of-memory, try to reduce --tile
at the expense of slightly decreased performance. For example, --tile 40 128 128
means dividing the video into 40x128x128 (40 frames, height 128, width 128) clips in testing.
from vrt.
Hi @JingyunLiang ! Thanks for the quick reply. Unfortunately, regardless of the tile size that I use, I'm still getting an OOM error. Here's some sample code to replicate, first to download a video from YT and extract frames, and then to run main_test_vrt.py
against that set of frames, with different tile sizes. I used the lowest value == args.window_size as an example. When I run this against anything 180p or below, it works no problem. Any advice would be appreciated, thanks!
from pathlib import Path
import shutil, os
if not os.path.exists("data"): os.makedirs("data")
YouTubeID = 'kgCbG0q4jmc' # random 360p video
OutputFile = 'data/video.mp4'
!youtube-dl -o $OutputFile $YouTubeID --restrict-filenames -f 'best[filesize<50M]'
!rm -r testsets/*
!rm -r results/*
inputFolder = 'testsets/uploaded/000'
Path(inputFolder).mkdir(parents=True, exist_ok=True)
print(f'extracting the video as frames to `{str(inputFolder)}`')
os.system(f'ffmpeg -i {OutputFile} -qscale:v 1 -qmin 1 -qmax 1 -vsync 0 {inputFolder}/frame%08d.png')
Then running your test code
!python main_test_vrt.py --task 001_VRT_videosr_bi_REDS_6frames --folder_lq testsets/uploaded --tile 6 8 8 --tile_overlap 2 20 20
from vrt.
Maybe loading the whole video into GPU consumes too much GPU memory?
from vrt.
You were right. Loading up more than 5 seconds clips was killing the GPU. Using --tile 32 64 64
, I can now process 125 frames (5 seconds) with size 480x360 in a little bit over 1hr on an NVIDIA T4. Is that expected?
from vrt.
Yes, it is slow is if you test it patch by patch. Testing different patches in parallel can help.
from vrt.
Related Issues (20)
- Exporting to onnx model problem
- Unable to convert model to torchscript or onnx. HOT 1
- problem about test
- Train on own dataset
- VRT testdata 下载速度比较慢
- Your Results in New Super-Resolution Benchmarks
- Torch.distributed.elastic.multiprocessing.api.SignalException: Process XXXX got signal :1 HOT 1
- What's the resolution of videos when eval on GoPro dataset in your paper? And any advice about the resolution when doing video debluring?
- RuntimeError: [enforce fail at alloc_cpu.cpp:73] . DefaultCPUAllocator: can't allocate memory: you tried to allocate 116813856768 bytes. Error code 12 (Cannot allocate memory) HOT 1
- Inference Taking Forever HOT 2
- Log Files from Training
- Hello
- memory lack problem
- FileNotFoundError
- How can we denoise a video sequence with only lr input and no GT? HOT 1
- How much memory about GPUs? HOT 3
- [REQ] SDR to HDR translation
- Getting nan tensor in output
- About the paper
- CUDA HOT 3
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 vrt.