简体   繁体   中英

Use GPU for PIL in python on mac (macOS Catalina)

I optimized my code to process images with pillow. It uses all the sources to get as fast as possible. Just the GPU would make it faster. I don't find any solution beside CUDA and that wont't work on Catalina. Is there any way to use my GPU(NVIDIA GeForce GT 750M 2 GB Intel Iris Pro 1536 MB) to make the process more efficient? Thanks for your help!

Actually there is no way to use pillow to do that, If you need a better speed. you can use ImageMagick (Wand as python wrapper) or GraphicsMagick (pgmagick as Python wrapper), If you need to use GPU. ImageMagick gives some option to use it if possible (I am not sure about GM) but it is not neither as efficient nor complete as you use CUDA or OpenCL, I recommend you to use Vulkan if you need better result and cross platform (Nvidia and AMD, MacOS. Linux Windows...).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM