Comments (7)
@cr08 I'll will take a look at this problem.
The multi-threading function has just been added not too long ago, and this might as well be a fatal bug.
As for the performance, here's what I got on my system.
- My 16 DDR4 is used up to 95% when upscaler threads are initializing, and soon it drops down to normal, so does the CPU usage drop down quite a bit.
- The GPU computing usage gets up to 90-100% for the entire duration of the upscaling, while the VRAM is only half-filled.
from video2x.
Also, make sure you're using the newest version of video2x. The latest changes has been made for fixing bugs within the multithreading function.
Also, the part where video2x places frames into folders it at line 150, video2x.py. Maybe you can find some issues there?
from video2x.
I'm running the latest commit. Downloaded fresh this morning.
I wonder if it might be a simple math issue. I rechecked and the exact number of frames in this video is 35,763. 3 threads means it is divided up to 11,891 frames per thread with one frame left over.
from video2x.
@cr08 I think that's exactly where the problem is.
I'm running Kali right now and doesn't have access to a windows workstation at the moment. I'll make the changes when I get back home.
Or you can submit a pull request (wink :P
from video2x.
@cr08 Actually, never mind. I was able to RDP into my server and test the patch.
I have just pushed a new commit into the repo which should fix the problem.
This might be a less stupid way of distributing images evenly.
# Evenly distribute images into each folder
# until there is none left in the folder
for image in frames:
# Move image
shutil.move(image, thread_folders[0])
# Rotate list
thread_folders = thread_folders[-1:] + thread_folders[:-1]
from video2x.
So far so good. Ran a few shorter clips through with varying frame counts and no issues.
from video2x.
If all's fine, then I'll close this issue.
We can reopen it any time if it's still malfunctioning.
from video2x.
Related Issues (20)
- How to use custom config with the docker container image.
- Video2x needs the ability to process a list of folders with each folder in different resolutions and you should set a pause between files for your overheating GPU.
- Command '['C:\\Users\\USER\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '0', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'gpu', '--model_dir', 'C:\\Users\\USER\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\upconv_7_anime_style_art_rgb', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '1280', '--scale_height', '960', '--input_path', 'C:\\Users\\USER\\AppData\\Local\\Temp\\video2x\\tmpw5w7yujg\\0', '--output_path', 'C:\\Users\\USER\\AppData\\Local\\Temp\\video2x\\tmp159x_ymr']' returned non-zero exit status 1.
- Error: 'video2x.upscale(input_file, output_file' & 'get basic video information'
- Command '['C:\\Users\\arzum\\OneDrive\\Рабочий стол\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '0', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'gpu', '--model_dir', 'C:\\Users\\arzum\\OneDrive\\Рабочий стол\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\cunet', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '1440', '--scale_height', '1080', '--input_path', 'C:\\Users\\arzum\\AppData\\Local\\Temp\\video2x\\tmpgja_t4mj\\0', '--output_path', 'C:\\Users\\arzum\\AppData\\Local\\Temp\\video2x\\tmp_gvqc1tv']' returned non-zero exit status 1.
- Automatically delete original file immediately after processing original file successfully - optional feature requirement HOT 1
- Command '['C:\\Users\\Md Rasel\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'C:\\Users\\Md Rasel\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\MDRASE~1\\AppData\\Local\\Temp\\video2x\\tmp_9rr4wmq', '-o', 'C:\\Users\\MDRASE~1\\AppData\\Local\\Temp\\video2x\\tmp_ha7k59f']' returned non-zero exit status 3221225781.
- When i try to upscale an image or video, it shows returned non zeroexit status 259
- C:\Windows\system32\dependencies\ffmpeg\bin
- Command '['D:\\DOWNLOAD\\video2x-4.8.1-win32-full\\dependencies\\realsr-ncnn-vulkan\\realsr-ncnn-vulkan', '-s', '4', '-t', '0', '-m', 'D:\\DOWNLOAD\\video2x-4.8.1-win32-full\\dependencies\\realsr-ncnn-vulkan\\models-DF2K_JPEG', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\chris\\AppData\\Local\\Temp\\video2x\\tmp4egb3jec', '-o', 'C:\\Users\\chris\\AppData\\Local\\Temp\\video2x\\tmp0mppbb7q']' returned non-zero exit status 3221226505.
- GUI might need some work
- 'NoneType' object has no attribute 'split'.
- 'NoneType' object has no attribute 'split'
- TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
- Command '['dependencies\\ffmpeg\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\azeem\\OneDrive\\Documents\\ytvideos (and oh, sources for recreations)\\GA_MOVIE.mp4', '-pix_fmt', 'rgb24', 'C:\\Users\\azeem\\AppData\\Local\\Temp\\video2x\\tmp9s2n0je4\\extracted_%0d.png']' returned non-zero exit status 1. HOT 1
- WSL2 Docker Exception: process died unexpectedly
- Slow Speed with RTX 4090
- C:\WINDOWS\System32\dependencies\ffmpeg\bin
- Request support for Real ESRGAN
- anime4k not working in Docker image HOT 2
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 video2x.