I mean, if it's using DNN then you're going to be pretty much shit out of luck for perf unless your machine has an nvidia graphics card right?
Even inference is going to be slow when working on a 20 megapixel image. That's as much work as a 1220 sample batch at 128x128 resolution.