Git Product home page Git Product logo

Comments (5)

xrv0 avatar xrv0 commented on August 17, 2024 1

The limiting factor for speed is the time it takes to capture a screenshot. The neural net itself is very quick, but the screen capture FPS is slower. I'm looking into using Nvidia CUDA API's to extract the raw framebuffer from the GPU (rather than using the pywin32 API, which is much slower). ...

@petercunha I‘ve looked into this and I dont think its possible

Sent with GitHawk

from pine.

petercunha avatar petercunha commented on August 17, 2024

The limiting factor for speed is the time it takes to capture a screenshot. The neural net itself is very quick, but the screen capture FPS is slower. I'm looking into using Nvidia CUDA API's to extract the raw framebuffer from the GPU (rather than using the pywin32 API, which is much slower).

If you have any other ideas to improve speed, feel free to write the code and open a PR.

from pine.

FidgetySo avatar FidgetySo commented on August 17, 2024

@petercunha I believe why it is not possible because python runs in its own environment kinda like a virtual computer, at least based on my research and my use of python, which means that you can't really get a raw buffer from the GPU. But if anything you can with do it ctypes or something I have not heard of. You also might want to look into this https://github.com/SerpentAI/D3DShot Great Programmer used his SerpentAI Framework in the past,

from pine.

FidgetySo avatar FidgetySo commented on August 17, 2024

These are the fps rates:

2560x1440 on NVIDIA GTX 1080 Ti 1920x1080 on Intel UHD Graphics 630 1080x1920 (vertical) on Intel UHD Graphics 630
"pil" 29.717 FPS 47.75 FPS 35.95 FPS
"numpy" 57.667 FPS 58.1 FPS 58.033 FPS
"numpy_float" 18.783 FPS 29.05 FPS 27.517 FPS
"pytorch" 57.867 FPS 58.1 FPS 34.817 FPS
"pytorch_float" 18.767 FPS 28.367 FPS 27.017 FPS

Just imagine a 1060 6GB on 1080p

from pine.

petercunha avatar petercunha commented on August 17, 2024

@AutisticDragon thanks for sharing the benchmarks! I will also look into that library you recommended.

from pine.

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.