Upgrade OpenImageDenoise to v1.1.0
Upgrade OIDN to 1.1.0, the latest stable version that doesn't need the ISPC compiler. Documented the changes made during the removal of TBB and added a patch file for them.
This commit is contained in:
parent
dc67d0737b
commit
dd79d1ce78
11 changed files with 634 additions and 29 deletions
26
thirdparty/oidn/core/autoencoder.cpp
vendored
26
thirdparty/oidn/core/autoencoder.cpp
vendored
|
|
@ -90,12 +90,19 @@ namespace oidn {
|
|||
if (!dirty)
|
||||
return;
|
||||
|
||||
{
|
||||
// -- GODOT start --
|
||||
//device->executeTask([&]()
|
||||
//{
|
||||
// GODOT end --
|
||||
|
||||
if (mayiuse(avx512_common))
|
||||
net = buildNet<16>();
|
||||
else
|
||||
net = buildNet<8>();
|
||||
}
|
||||
|
||||
// GODOT start --
|
||||
//});
|
||||
// GODOT end --
|
||||
|
||||
dirty = false;
|
||||
}
|
||||
|
|
@ -107,8 +114,10 @@ namespace oidn {
|
|||
|
||||
if (!net)
|
||||
return;
|
||||
|
||||
{
|
||||
// -- GODOT start --
|
||||
//device->executeTask([&]()
|
||||
//{
|
||||
// -- GODOT end --
|
||||
Progress progress;
|
||||
progress.func = progressFunc;
|
||||
progress.userPtr = progressUserPtr;
|
||||
|
|
@ -154,7 +163,9 @@ namespace oidn {
|
|||
tileIndex++;
|
||||
}
|
||||
}
|
||||
}
|
||||
// -- GODOT start --
|
||||
//});
|
||||
// -- GODOT end --
|
||||
}
|
||||
|
||||
void AutoencoderFilter::computeTileSize()
|
||||
|
|
@ -462,8 +473,11 @@ namespace oidn {
|
|||
return std::make_shared<GammaTransferFunction>();
|
||||
}
|
||||
|
||||
// -- GODOT start --
|
||||
// Godot doesn't need Raytracing filters. Removing them saves space in the weights files.
|
||||
#if 0
|
||||
// -- GODOT end --
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// RTFilter
|
||||
// --------------------------------------------------------------------------
|
||||
|
|
@ -491,7 +505,9 @@ namespace oidn {
|
|||
weightData.hdr_alb = weights::rt_hdr_alb;
|
||||
weightData.hdr_alb_nrm = weights::rt_hdr_alb_nrm;
|
||||
}
|
||||
// -- GODOT start --
|
||||
#endif
|
||||
// -- GODOT end --
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
// RTLightmapFilter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue