oidn-web 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/oidn.js +3 -3
- package/dist/oidn.umd.cjs +2 -2
- package/package.json +3 -3
package/dist/oidn.js
CHANGED
|
@@ -2329,7 +2329,7 @@ class Mn {
|
|
|
2329
2329
|
/**
|
|
2330
2330
|
* Initializes a backend by looking up the backend name in the factory
|
|
2331
2331
|
* registry and calling the factory method. Returns a boolean representing
|
|
2332
|
-
* whether the initialization of the backend
|
|
2332
|
+
* whether the initialization of the backend suceeded. Throws an error if
|
|
2333
2333
|
* there is no backend in the factory registry.
|
|
2334
2334
|
*/
|
|
2335
2335
|
initializeBackend(t) {
|
|
@@ -12846,7 +12846,7 @@ function Ko(n, t) {
|
|
|
12846
12846
|
}
|
|
12847
12847
|
}
|
|
12848
12848
|
/** @license See the LICENSE file. */
|
|
12849
|
-
const wh = "4.
|
|
12849
|
+
const wh = "4.20.0";
|
|
12850
12850
|
/**
|
|
12851
12851
|
* @license
|
|
12852
12852
|
* Copyright 2022 Google LLC
|
|
@@ -18350,7 +18350,7 @@ rf() && Xp(
|
|
|
18350
18350
|
maxComputeWorkgroupSizeX: r.maxComputeWorkgroupSizeX,
|
|
18351
18351
|
maxComputeInvocationsPerWorkgroup: r.maxComputeInvocationsPerWorkgroup
|
|
18352
18352
|
};
|
|
18353
|
-
const o = await t.requestDevice(e), i =
|
|
18353
|
+
const o = await t.requestDevice(e), i = await t.requestAdapterInfo();
|
|
18354
18354
|
return new Fs(o, i);
|
|
18355
18355
|
},
|
|
18356
18356
|
3
|
package/dist/oidn.umd.cjs
CHANGED
|
@@ -2965,7 +2965,7 @@
|
|
|
2965
2965
|
* license that can be found in the LICENSE file or at
|
|
2966
2966
|
* https://opensource.org/licenses/MIT.
|
|
2967
2967
|
* =============================================================================
|
|
2968
|
-
*/function Oc(n,t,e){return(n==="inboundNodes"||n==="outputLayers"||n==="inputLayers")&&t===0&&typeof e=="string"}function Di(n,t){if(n===null)return null;if(typeof n=="string")return pn(n);if(typeof n=="number"||typeof n=="boolean")return n;if(n instanceof Array){const e=[],s=n.length;for(let r=0;r<s;++r){const o=n[r];Oc(t,r,o)?e.push(o):e.push(Di(o,t))}return e}else{const e={};for(const s of Object.keys(n)){const r=n[s];if(s==="name"&&typeof r=="string")e[s]=r;else{const o=pn(s);e[o]=Di(r,o)}}return e}}function Pi(n,t){if(n==null)return null;if(typeof n=="string")return Oe(n);if(typeof n=="number"||typeof n=="boolean")return n;if(n instanceof Array){const e=[],s=n.length;for(let r=0;r<s;++r){const o=n[r];Oc(t,r,o)?e.push(o):e.push(Pi(o,t))}return e}else{const e={};for(const s of Object.keys(n)){const r=n[s],o=Oe(s);(s==="name"||s==="className")&&typeof r=="string"?e[o]=r:e[o]=Pi(r,s)}return e}}/** @license See the LICENSE file. */const Mc="4.
|
|
2968
|
+
*/function Oc(n,t,e){return(n==="inboundNodes"||n==="outputLayers"||n==="inputLayers")&&t===0&&typeof e=="string"}function Di(n,t){if(n===null)return null;if(typeof n=="string")return pn(n);if(typeof n=="number"||typeof n=="boolean")return n;if(n instanceof Array){const e=[],s=n.length;for(let r=0;r<s;++r){const o=n[r];Oc(t,r,o)?e.push(o):e.push(Di(o,t))}return e}else{const e={};for(const s of Object.keys(n)){const r=n[s];if(s==="name"&&typeof r=="string")e[s]=r;else{const o=pn(s);e[o]=Di(r,o)}}return e}}function Pi(n,t){if(n==null)return null;if(typeof n=="string")return Oe(n);if(typeof n=="number"||typeof n=="boolean")return n;if(n instanceof Array){const e=[],s=n.length;for(let r=0;r<s;++r){const o=n[r];Oc(t,r,o)?e.push(o):e.push(Pi(o,t))}return e}else{const e={};for(const s of Object.keys(n)){const r=n[s],o=Oe(s);(s==="name"||s==="className")&&typeof r=="string"?e[o]=r:e[o]=Pi(r,s)}return e}}/** @license See the LICENSE file. */const Mc="4.20.0";/**
|
|
2969
2969
|
* @license
|
|
2970
2970
|
* Copyright 2022 Google LLC
|
|
2971
2971
|
*
|
|
@@ -3493,7 +3493,7 @@ else {
|
|
|
3493
3493
|
* See the License for the specific language governing permissions and
|
|
3494
3494
|
* limitations under the License.
|
|
3495
3495
|
* =============================================================================
|
|
3496
|
-
*/sf()&&Yp("webgpu",async()=>{const n={powerPreference:G().get("WEBGPU_USE_LOW_POWER_GPU")?"low-power":"high-performance"},t=await navigator.gpu.requestAdapter(n),e={},s=[];t.features.has("timestamp-query")&&s.push("timestamp-query"),t.features.has("bgra8unorm-storage")&&s.push(["bgra8unorm-storage"]),e.requiredFeatures=s;const r=t.limits;e.requiredLimits={maxComputeWorkgroupStorageSize:r.maxComputeWorkgroupStorageSize,maxComputeWorkgroupsPerDimension:r.maxComputeWorkgroupsPerDimension,maxStorageBufferBindingSize:r.maxStorageBufferBindingSize,maxBufferSize:r.maxBufferSize,maxComputeWorkgroupSizeX:r.maxComputeWorkgroupSizeX,maxComputeInvocationsPerWorkgroup:r.maxComputeInvocationsPerWorkgroup};const o=await t.requestDevice(e),i=
|
|
3496
|
+
*/sf()&&Yp("webgpu",async()=>{const n={powerPreference:G().get("WEBGPU_USE_LOW_POWER_GPU")?"low-power":"high-performance"},t=await navigator.gpu.requestAdapter(n),e={},s=[];t.features.has("timestamp-query")&&s.push("timestamp-query"),t.features.has("bgra8unorm-storage")&&s.push(["bgra8unorm-storage"]),e.requiredFeatures=s;const r=t.limits;e.requiredLimits={maxComputeWorkgroupStorageSize:r.maxComputeWorkgroupStorageSize,maxComputeWorkgroupsPerDimension:r.maxComputeWorkgroupsPerDimension,maxStorageBufferBindingSize:r.maxStorageBufferBindingSize,maxBufferSize:r.maxBufferSize,maxComputeWorkgroupSizeX:r.maxComputeWorkgroupSizeX,maxComputeInvocationsPerWorkgroup:r.maxComputeInvocationsPerWorkgroup};const o=await t.requestDevice(e),i=await t.requestAdapterInfo();return new Fs(o,i)},3);/**
|
|
3497
3497
|
* @license
|
|
3498
3498
|
* Copyright 2020 Google LLC. All Rights Reserved.
|
|
3499
3499
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oidn-web",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Run Open Image Denoiser on the Web",
|
|
5
5
|
"main": "lib/main.js",
|
|
6
6
|
"types": "lib/main.d.ts",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@petamoriken/float16": "^3.8.7",
|
|
20
|
-
"@tensorflow/tfjs": "
|
|
21
|
-
"@tensorflow/tfjs-backend-webgpu": "
|
|
20
|
+
"@tensorflow/tfjs": "4.20.0",
|
|
21
|
+
"@tensorflow/tfjs-backend-webgpu": "4.20.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"typescript": "^5.7.3",
|