Giter Site home page Giter Site logo

Comments (7)

k4yt3x avatar k4yt3x commented on August 15, 2024

@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.

k4yt3x avatar k4yt3x commented on August 15, 2024

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.

cr08 avatar cr08 commented on August 15, 2024

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.

k4yt3x avatar k4yt3x commented on August 15, 2024

@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.

k4yt3x avatar k4yt3x commented on August 15, 2024

@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.

cr08 avatar cr08 commented on August 15, 2024

So far so good. Ran a few shorter clips through with varying frame counts and no issues.

from video2x.

k4yt3x avatar k4yt3x commented on August 15, 2024

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)

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.