What can we expect wit the "Optimize Neural Engines"?

Get answers to your questions about color grading, editing and finishing with DaVinci Resolve.
  • Author
  • Message
Offline

Videoneth

  • Posts: 1474
  • Joined: Fri Nov 13, 2020 11:03 pm
  • Real Name: Maxwell Allington

What can we expect wit the "Optimize Neural Engines"?

PostThu Sep 14, 2023 6:02 pm

I just installed the 18.6 now.
What can we expect to be better from the previous version with this?
Just asking by curiosity.

EDIT:
Nevermind
I just saw this in the changelog : Up to 2x faster Neural Engine performance with Nvidia TensorRT.
It looks like something is compiling bts
Attachments
engines.jpg
engines.jpg (11.64 KiB) Viewed 5133 times
Windows 10
18.6.3
nVidia 3090 - 537.42
Offline

Videoneth

  • Posts: 1474
  • Joined: Fri Nov 13, 2020 11:03 pm
  • Real Name: Maxwell Allington

Re: What can we expect wit the "Optimize Neural Engines"?

PostThu Sep 14, 2023 6:15 pm

I tested some heavy Fusions effects from known Davinci Resolve youtubers.
Some of them are playing in real time, on a 1080p 29.97fps timeline, and scrubbing the timeline with the effects is just flawless :o

This is a pretty cool improvement.
Windows 10
18.6.3
nVidia 3090 - 537.42
Offline

Videoneth

  • Posts: 1474
  • Joined: Fri Nov 13, 2020 11:03 pm
  • Real Name: Maxwell Allington

Re: What can we expect wit the "Optimize Neural Engines"?

PostThu Sep 14, 2023 6:18 pm

And the first stroke on the magicmask gives an instant result!!! :o :o
And the tracking starts right away now.
This is so good!

(adding strokes is still clunky but this is going in the right direction)
Windows 10
18.6.3
nVidia 3090 - 537.42
Offline

Videoneth

  • Posts: 1474
  • Joined: Fri Nov 13, 2020 11:03 pm
  • Real Name: Maxwell Allington

Re: What can we expect wit the "Optimize Neural Engines"?

PostThu Sep 14, 2023 6:32 pm

The new SuperScale got a nice little boost with this too.
On a 1440p timeline, using the 2x Enhanced superscale, I get 10.5 fps (3090). I have some color correction and an OFX
Windows 10
18.6.3
nVidia 3090 - 537.42
Offline

Mads Johansen

  • Posts: 816
  • Joined: Mon Dec 19, 2016 10:51 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostThu Sep 14, 2023 6:43 pm

Videoneth wrote:The new SuperScale got a nice little boost with this too.
On a 1440p timeline, using the 2x Enhanced superscale, I get 10.5 fps (3090). I have some color correction and an OFX

yea, the Super Scale Enhanced went from 2.5 fps to 22 fps with a 3060 TI 8gb.
Davinci Resolve Studio 18.6.3 Build 19, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

mARTIN-24

  • Posts: 52
  • Joined: Thu Jun 27, 2019 6:06 am
  • Real Name: Martin Gabel

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 11:32 am

What can we expect wit the "Optimize Neural Engines"?


A ton of crashes !
I didn't made it through the "optimization" process. DR would just crash and die after 30sec without any warning or error message.

The logfiles doesn't mention a VRAM or driver issue ... but I see this quite a lot:
Code: Select all
[0x00003008] | Undefined            | ERROR | 2023-09-15 01:33:24,023 | Mismatch in ProtoBuffer serialization version - expected version 2 but serialized version is 1
[...]
[0x0000030c] | SyManager            | ERROR | 2023-09-15 01:33:25,477 | BMDCloudProjectManager::GetMappedPathForProject(): 'bmdPLId' is empty (Line:481)

Any ideas ?

OS: Windows 10 Pro (Build 19045)
Model: ASUSTeK X99-A/USB 3.1
CPU: Intel Core i7-5820K, 12 threads, x86-64
RAM: 5.3 GiB used of 31.9 GiB
NVIDIA GPU Driver: 536.23, supports CUDA 12.2
Detected 1 GPUs: "NVIDIA GeForce GTX 1050 Ti" (gpu:1394a798.49bc9c35) <- Main Display GPU
Discrete, 1.4 GiB used of 3.8 GiB VRAM, PCI:3:0 (x8)
Matches: CUDA, DirectX, NVAPI, NVML, OpenCL, Win32
Detected 2 monitors:
"Generic PnP Monitor" <- Main Monitor
2560x1080, connected to "NVIDIA GeForce GTX 1050 Ti" (gpu:1394a798.49bc9c35)
"Generic PnP Monitor" <- Main Monitor 1680x1050, connected to "NVIDIA GeForce GTX 1050 Ti"
Offline

Andy Mees

  • Posts: 3060
  • Joined: Wed Aug 22, 2012 7:48 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 11:40 am

mARTIN-24 wrote:Any ideas ?
Yes... post your actual logs, per the FAQ, so the BMD folks can assess the cause for themselves.
Offline

mARTIN-24

  • Posts: 52
  • Joined: Thu Jun 27, 2019 6:06 am
  • Real Name: Martin Gabel

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 11:48 am

Andy Mees wrote:
mARTIN-24 wrote:Any ideas ?
Yes... post your actual logs, per the FAQ, so the BMD folks can assess the cause for themselves.


Hmm ... OK. Got DR Studio version, so I'll give it a go ...
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 2609
  • Joined: Wed Sep 20, 2017 10:19 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 12:12 pm

Hi Martin

Just to uncomplicate things, can you cancel the optimisation, create a new local project library, quit Resolve and restart? The aim is to get the main window to show up, and then thing about the moving parts.

The Preferences (likely Graphics tab - sorry I'm not in front of an Nvidia system), should allow you to redo the optimisation step later.

Thanks
Shrinivas
Offline

mARTIN-24

  • Posts: 52
  • Joined: Thu Jun 27, 2019 6:06 am
  • Real Name: Martin Gabel

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 12:32 pm

Yes. Just clicket the "disable" option and could work on my projects again.
I assume it'll use the engines from 18.5 and prior - right ?
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 2609
  • Joined: Wed Sep 20, 2017 10:19 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 12:37 pm

Yes, with bug fixes.
Offline

Videoneth

  • Posts: 1474
  • Joined: Fri Nov 13, 2020 11:03 pm
  • Real Name: Maxwell Allington

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 12:38 pm

I just tested the Optical Flow with "Speed Warp".
It plays in real time!

I never used it in the past because it was so slow, this is a game changer!

I'll spend less time in Topaz Video AI now because of it
Windows 10
18.6.3
nVidia 3090 - 537.42
Offline

Hunter Schultz

  • Posts: 29
  • Joined: Fri Jan 22, 2021 1:13 am
  • Real Name: Hunter Schultz

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 15, 2023 6:35 pm

Should I bother optimizing with an older GPU? GTX1070.
DR Studio 17.2
Ryzen 3600
ASUS X570 Tuf Gaming
MSI GTX 1070 8 GB / Studio Driver
32 GB 3200 Ram
Offline

gdelwo

  • Posts: 2
  • Joined: Wed Dec 25, 2019 9:37 pm
  • Real Name: Gordon Delwo

Re: What can we expect wit the "Optimize Neural Engines"?

PostSat Sep 16, 2023 12:40 am

Hunter Schultz wrote:Should I bother optimizing with an older GPU? GTX1070.


Got the same problem with the same GPU...waiting for a resolution.
Resolve Studio 18.6 build 9
Omen Laptop i7-8750H, 32GB RAM, 2 x Samsung SSDs
GTX1070/6GB (536.99 Studio driver), Win10 Home (22H2)
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13695
  • Joined: Wed Aug 22, 2012 7:08 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostSat Sep 16, 2023 4:59 am

You might just need a newer GPU. GTX1070 was released in 2016.
DaVinci Resolve Product Manager
Offline

jonathanljs

  • Posts: 6
  • Joined: Thu Oct 04, 2018 11:18 am
  • Real Name: Jonathan Schütz

Re: What can we expect wit the "Optimize Neural Engines"?

PostMon Sep 18, 2023 2:21 pm

I have a 1070, the optimize went through happily and 18.6 runs fine. The only test I have done so far was to try retiming a clip on a 1080 timeline with speed ramps using optical flow and speed warp. The render wasn't especially fast, but it wasn't excessive. Not sure if it was any faster than before, but that's OK. It's a 1070!
Maybe having 64Gb of RAM helps..?
Offline

gdelwo

  • Posts: 2
  • Joined: Wed Dec 25, 2019 9:37 pm
  • Real Name: Gordon Delwo

Re: What can we expect wit the "Optimize Neural Engines"?

PostMon Sep 18, 2023 4:16 pm

jonathanljs wrote:I have a 1070, the optimize went through happily and 18.6 runs fine. The only test I have done so far was to try retiming a clip on a 1080 timeline with speed ramps using optical flow and speed warp. The render wasn't especially fast, but it wasn't excessive. Not sure if it was any faster than before, but that's OK. It's a 1070!
Maybe having 64Gb of RAM helps..?


Interesting, thanks for sharing. Desktop or laptop card? Driver version?
Resolve Studio 18.6 build 9
Omen Laptop i7-8750H, 32GB RAM, 2 x Samsung SSDs
GTX1070/6GB (536.99 Studio driver), Win10 Home (22H2)
Offline

madchiller

  • Posts: 36
  • Joined: Fri Jul 01, 2022 10:58 pm
  • Real Name: CHAD E MILLER

Re: What can we expect wit the "Optimize Neural Engines"?

PostMon Sep 18, 2023 7:20 pm

Has anyone figured out how to run the optimization again? Say one makes changes
to their Nvidia setup? I’ve turned the optimization on/off, and tried switching to openCL vs Cuda… but the optimization does not run again…

Cheers!
Online

panos_mts

  • Posts: 1075
  • Joined: Mon Oct 21, 2019 3:18 pm
  • Real Name: Panagiotis Vellios

Re: What can we expect wit the "Optimize Neural Engines"?

PostMon Sep 18, 2023 7:46 pm

madchiller wrote:Has anyone figured out how to run the optimization again? Say one makes changes
to their Nvidia setup? I’ve turned the optimization on/off, and tried switching to openCL vs Cuda… but the optimization does not run again… Cheers!
It creates a file named TensorRT.cache, if you delete this file it will ask again for optimization.

On Windows the file is placed in the following folder:
C:\Users\Your Username\AppData\Roaming\Blackmagic Design\DaVinci Resolve\Support\DVIP\Cache
Offline

Shrinivas Ramani

Blackmagic Design

  • Posts: 2609
  • Joined: Wed Sep 20, 2017 10:19 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostTue Sep 19, 2023 4:23 am

Hi

Just a general overview on how the initial optimisation step works:

a. the optimisation for TensorRT is just needed once per system - either when Resolve 18.6 prompts it or later by enabling the Preference setting. Once done, you will not be prompted again, even if you choose to install 18.5.1 and re-install 18.6 at a later stage.

b. When you change the hardware or clean and reinstall DaVinci Resolve, the next startup should automatically prompt for a new round of optimisation, which again can be done right then or later from Preferences.

c. While we don't recommend it, if you wish to turn off optimisation for some reason, you can uncheck the Preferences setting.

Regards
Shrinivas
Offline

ColtSuperbolt

  • Posts: 21
  • Joined: Thu Jul 25, 2019 2:20 pm
  • Real Name: Joni Ikäläinen

Re: What can we expect wit the "Optimize Neural Engines"?

PostTue Sep 19, 2023 6:12 am

Is there some reason the optimization process runs for every system? I mean, if it's specifically optimizing for Tensor cores, why does it do it to GPU's that don't have them? Sounds like un-optimizing process for those systems.
Offline

Hendrik Proosa

  • Posts: 2950
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: What can we expect wit the "Optimize Neural Engines"?

PostTue Sep 19, 2023 7:03 am

ColtSuperbolt wrote:Is there some reason the optimization process runs for every system? I mean, if it's specifically optimizing for Tensor cores, why does it do it to GPU's that don't have them? Sounds like un-optimizing process for those systems.

Did it run on system with no nvidia gpu? TensorRT is based on cuda so any system which has cuda available probably will trigger it. Whether there are actual tensor cores on gpu is irrelevant as those are just specific accelerators, not a necessity.
I do stuff.
Offline
User avatar

Robert Niessner

  • Posts: 4820
  • Joined: Thu Feb 21, 2013 9:51 am
  • Location: Graz, Austria

Re: What can we expect wit the "Optimize Neural Engines"?

PostTue Sep 19, 2023 7:17 am

ColtSuperbolt wrote:Is there some reason the optimization process runs for every system? I mean, if it's specifically optimizing for Tensor cores, why does it do it to GPU's that don't have them? Sounds like un-optimizing process for those systems.


TensorRT, built on the NVIDIA CUDA® parallel programming model, enables you to optimize inference using techniques such as quantization, layer and tensor fusion, kernel tuning, and others on NVIDIA GPUs.
TensorRT supports all NVIDIA hardware with capability SM 6.0 or higher.

https://docs.nvidia.com/deeplearning/te ... index.html
Saying "Thx for help!" is not a crime.
--------------------------------
Robert Niessner
LAUFBILDkommission
Graz / Austria
--------------------------------
Blackmagic Camera Blog (German):
http://laufbildkommission.wordpress.com

Read the blog in English via Google Translate:
http://tinyurl.com/pjf6a3m
Offline

CougerJoe

  • Posts: 269
  • Joined: Wed Sep 18, 2019 5:15 am
  • Real Name: bob brady

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 22, 2023 1:50 am

The newly released studio drivers support Resolve TensorRT

The September NVIDIA Studio Driver provides optimal support for the latest new creative
applications and updates. This includes DaVinci Resolve version 18.6 which features
NVIDIA TensorRT acceleration


I removed the old cache file and ran it again, the newly created cache was 200MB smaller. so a different result not sure if anything changed performance wise
Offline

Hendrik Proosa

  • Posts: 2950
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 22, 2023 6:50 am

Resolve converts onnx models to tensorRT models and runs them on tensorRT instead of onnx runtime. I guess tensorRT optimization routines compact the model representation.
I do stuff.
Offline

smunaut

  • Posts: 492
  • Joined: Sat Jan 30, 2021 6:15 pm
  • Real Name: Sylvain Munaut

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 22, 2023 10:10 am

I wonder if the converted models are guaranteed to have the exact same output.

For that matter I'm wondering if the same model running on different GPU is guaranteed to have the same output (you know ... different floating point operation order in the shader that ends up running on the hardware could have minute differences in results).

If not, you could have different depth map / magic mask / ... results depending on which machine/hardware you run them on. Always the issue with those "AI stuff", they can have unstable outputs and are inherently chaotic systems ...
Resolve Studio - Ryzen 5800X3D - AMD RX6600 / NVidia RTX 4070 (switching between the 2) - Linux
Offline

Hendrik Proosa

  • Posts: 2950
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: What can we expect wit the "Optimize Neural Engines"?

PostFri Sep 22, 2023 10:53 am

smunaut wrote:I wonder if the converted models are guaranteed to have the exact same output.

Results are in theory deterministic but in practice it indeed depends on the hardware, drivers and also libraries which run the model. But this isn’t the cause of random flickery results, these are product of the model itself.
I do stuff.
Offline

Chad Riley

  • Posts: 3
  • Joined: Tue Aug 02, 2022 10:34 pm
  • Real Name: Chad Riley

Re: What can we expect wit the "Optimize Neural Engines"?

PostSat Sep 23, 2023 2:23 pm

I eventually just selected Disable after it crashed numerous times, it would start out optimizing 1-36 and crash. So apparently it has some issues, and doesn't work on every machine. I even found others posting the same issue on Reddit. :shock:
Offline

Peter Chamberlain

Blackmagic Design

  • Posts: 13695
  • Joined: Wed Aug 22, 2012 7:08 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 9:27 am

Chad Riley wrote:I eventually just selected Disable after it crashed numerous times, it would start out optimizing 1-36 and crash. So apparently it has some issues, and doesn't work on every machine. I even found others posting the same issue on Reddit. :shock:


Which GPU? OS?
DaVinci Resolve Product Manager
Offline

Rick van den Berg

  • Posts: 1295
  • Joined: Tue Jun 02, 2015 7:47 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 9:32 am

how do you get this optimize window? and what exactly is it?
Offline

Mads Johansen

  • Posts: 816
  • Joined: Mon Dec 19, 2016 10:51 am

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 10:30 am

Rick van den Berg wrote:how do you get this optimize window? and what exactly is it?


Shrinivas Ramani wrote:Hi Martin

Just to uncomplicate things, can you cancel the optimisation, create a new local project library, quit Resolve and restart? The aim is to get the main window to show up, and then thing about the moving parts.

The Preferences page -> Memory and GPU tab, should allow you to redo the optimisation step later.

Thanks
Shrinivas

(fixed the location)
Davinci Resolve Studio 18.6.3 Build 19, Windows 11, Nvidia 3060 TI, 546.01 Studio
Offline

ShaheedMalik

  • Posts: 578
  • Joined: Wed Aug 19, 2020 5:28 am
  • Real Name: Shaheed Malik

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 12:13 pm

Which feature run on these engines?
Offline

Chad Riley

  • Posts: 3
  • Joined: Tue Aug 02, 2022 10:34 pm
  • Real Name: Chad Riley

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 1:26 pm

Peter Chamberlain wrote:
Chad Riley wrote:I eventually just selected Disable after it crashed numerous times, it would start out optimizing 1-36 and crash. So apparently it has some issues, and doesn't work on every machine. I even found others posting the same issue on Reddit. :shock:


Which GPU? OS?


Device name LAPTOP-BMNFLHUI
Processor Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 1.99 GHz
Installed RAM 16.0 GB (15.9 GB usable)
Device ID F315B599-00C5-481A-801D-A3F7F5B72200
Product ID 00330-50160-42260-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

Edition Windows 10 Pro
Version 22H2
Installed on ‎6/‎26/‎2022
OS build 19045.3448
Experience Windows Feature Experience Pack 1000.19044.1000.0

Intel(R) UHD Graphics 620
NVIDIA GeForce MX150
Offline

Hendrik Proosa

  • Posts: 2950
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Sep 24, 2023 1:28 pm

ShaheedMalik wrote:Which feature run on these engines?

Magic mask, depth generation, relight, people detection and probably a few other things I can’t remember now.
I do stuff.
Online

panos_mts

  • Posts: 1075
  • Joined: Mon Oct 21, 2019 3:18 pm
  • Real Name: Panagiotis Vellios

Re: What can we expect wit the "Optimize Neural Engines"?

PostSun Oct 01, 2023 7:14 am

Puget System did some benchmarks to compare neural engine performance between DaVinci 18.5.1 and 18.6. There is also a comparison between RTX 4080 and Radeon 7900 XTX

https://www.pugetsystems.com/labs/artic ... mizations/

Return to DaVinci Resolve

Who is online

Users browsing this forum: AudDras, Google [Bot], panos_mts and 212 guests