Utilizing NVJPEG to avoid CPU bottleneck during encoding and decoding #269
darkcristle
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I was wondering what was happening... I noticed this when I was trying to upscale png to png. It would just completely stop after each image for a couple seconds. Horrible when trying to upscale tens of thousands of images. png to jpg is extremely more consistent, never stopped once and stayed above 90% GPU. Topaz VEAI doesn't have this issue with png so it seems to be a bug with Real-ESRGAN. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I noticed that my GPU was at a low Utilization often and that CPU spikes occurred sometimes. I believe that this is because neither png nor jpeg can be decoded or encoded on the GPU in most cases. Nvidia however has released a library called "NVJPEG" which does support this. It also appears that recent versions PyTorch also support this.
Is there any possibility that something like this could be used to overcome the bottleneck?
Beta Was this translation helpful? Give feedback.
All reactions