From 89b471c79e936c267ceb6304f353b8d0975e2e9a Mon Sep 17 00:00:00 2001 From: Kevin Scott <151596+thekevinscott@users.noreply.github.com> Date: Sat, 18 Nov 2023 05:14:18 -0500 Subject: [PATCH] Bump package versions for deploy --- dev/browser/basic/umd/index.html | 3 ++- dev/browser/basic/umd/index.ts | 8 +++++++- dev/browser/deployed/flower-small.png | Bin 0 -> 1855 bytes dev/browser/deployed/index.html | 14 ++++++++++++++ dev/browser/deployed/index.ts | 7 +++++++ dev/browser/index.html | 1 + dev/browser/package.json | 1 + models/default-model/package.json | 2 +- models/esrgan-legacy/package.json | 2 +- models/esrgan-medium/package.json | 2 +- models/esrgan-slim/package.json | 2 +- models/esrgan-thick/package.json | 2 +- packages/upscalerjs/package.json | 2 +- pnpm-lock.yaml | 3 +++ 14 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 dev/browser/deployed/flower-small.png create mode 100644 dev/browser/deployed/index.html create mode 100644 dev/browser/deployed/index.ts diff --git a/dev/browser/basic/umd/index.html b/dev/browser/basic/umd/index.html index 28a8bf4cf..a58400dd3 100644 --- a/dev/browser/basic/umd/index.html +++ b/dev/browser/basic/umd/index.html @@ -6,8 +6,9 @@ + - + diff --git a/dev/browser/basic/umd/index.ts b/dev/browser/basic/umd/index.ts index ff1d36f86..7512fbc33 100644 --- a/dev/browser/basic/umd/index.ts +++ b/dev/browser/basic/umd/index.ts @@ -1,3 +1,9 @@ const upscaler = new window['Upscaler']({ - model: window['DefaultUpscalerJSModel'], + model: { + ...window['DefaultUpscalerJSModel'], + path: '/node_modules/upscaler/node_modules/@upscalerjs/default-model/models/model.json', + }, }); + +import flower from '../flower-small.png'; +upscaler.upscale(flower).then(console.log); diff --git a/dev/browser/deployed/flower-small.png b/dev/browser/deployed/flower-small.png new file mode 100644 index 0000000000000000000000000000000000000000..3100bab5d34a332be0923185633a95d4dae92532 GIT binary patch literal 1855 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Ea{HEjtmSN`?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atTk>A0ILS}+n826x#lo%n*VEOXd^qlHIygO` zD0klK)mr?_N47LA`SR_wtkGV(DyOwt%08j$D{bbRi8S|^I|aU|5xsV^t2(D_(i1I1 z-OJ1Ct&jN3{_|i-!K&jndYf)!UD!A~QCt0o#T1EfH+J(`%ND&3FX*d(e1FNLr=M63 zU!9P%sQbXOAc=&tb}AJaJ?xi@YgXv|)mUMW=q}Oim;YGb`KZn9;}c0>8f zrb?;Cl;sm1?>?w@c;4Z=3y#O$cA6KyW5eyGR|B^P1X<^<_6z=|l7GL#b#BRAC*!kk zykFN```cvww3aPf&&hLz`Rt0^r#>$PDx|_}pVT*cRYo=awRr@p7Cc@3T-G@yGywnr C@2rpj literal 0 HcmV?d00001 diff --git a/dev/browser/deployed/index.html b/dev/browser/deployed/index.html new file mode 100644 index 000000000..a3614ad7a --- /dev/null +++ b/dev/browser/deployed/index.html @@ -0,0 +1,14 @@ + + + + UpscalerJS Development: Deployed model + + + + + + + + + + diff --git a/dev/browser/deployed/index.ts b/dev/browser/deployed/index.ts new file mode 100644 index 000000000..7fb947238 --- /dev/null +++ b/dev/browser/deployed/index.ts @@ -0,0 +1,7 @@ +const upscaler = new window['Upscaler']({ + model: window['DefaultUpscalerJSModel'], +}) + +import flower from './flower-small.png'; +upscaler.upscale(flower).then(console.log); + diff --git a/dev/browser/index.html b/dev/browser/index.html index bb84f1daa..f050b47d9 100644 --- a/dev/browser/index.html +++ b/dev/browser/index.html @@ -6,6 +6,7 @@
  • Basic
  • +
  • Deployed
  • Speed Tests
  • Specific Model
  • Generate Homepage GIF
  • diff --git a/dev/browser/package.json b/dev/browser/package.json index 78262e8e9..eccb034bc 100644 --- a/dev/browser/package.json +++ b/dev/browser/package.json @@ -6,6 +6,7 @@ }, "devDependencies": { "@types/stats.js": "^0.17.0", + "@upscalerjs/default-model": "workspace:*", "@upscalerjs/esrgan-legacy": "workspace:*", "@upscalerjs/esrgan-medium": "workspace:*", "@upscalerjs/esrgan-slim": "workspace:*", diff --git a/models/default-model/package.json b/models/default-model/package.json index 2ac52df0e..ddf46be51 100644 --- a/models/default-model/package.json +++ b/models/default-model/package.json @@ -1,6 +1,6 @@ { "name": "@upscalerjs/default-model", - "version": "1.0.0-beta.16", + "version": "1.0.0-beta.17", "description": "ESRGAN Default Model for UpscalerJS. Upscale images and increase image resolution with AI using Javascript", "keywords": [ "image enhancement", diff --git a/models/esrgan-legacy/package.json b/models/esrgan-legacy/package.json index 55d51d518..d13509ff7 100755 --- a/models/esrgan-legacy/package.json +++ b/models/esrgan-legacy/package.json @@ -1,6 +1,6 @@ { "name": "@upscalerjs/esrgan-legacy", - "version": "1.0.0-beta.13", + "version": "1.0.0-beta.14", "description": "ESRGAN Legacy Models for UpscalerJS. Upscale images and increase image resolution with AI using Javascript", "keywords": [ "image enhancement", diff --git a/models/esrgan-medium/package.json b/models/esrgan-medium/package.json index c2eb5f8c2..d0e55f4fb 100644 --- a/models/esrgan-medium/package.json +++ b/models/esrgan-medium/package.json @@ -1,6 +1,6 @@ { "name": "@upscalerjs/esrgan-medium", - "version": "1.0.0-beta.12", + "version": "1.0.0-beta.13", "description": "ESRGAN Medium Model for UpscalerJS. Upscale images and increase image resolution with AI using Javascript", "keywords": [ "image enhancement", diff --git a/models/esrgan-slim/package.json b/models/esrgan-slim/package.json index 516f2c951..a16a7a725 100644 --- a/models/esrgan-slim/package.json +++ b/models/esrgan-slim/package.json @@ -1,6 +1,6 @@ { "name": "@upscalerjs/esrgan-slim", - "version": "1.0.0-beta.11", + "version": "1.0.0-beta.12", "description": "ESRGAN Slim Model for UpscalerJS. Upscale images and increase image resolution with AI using Javascript", "keywords": [ "image enhancement", diff --git a/models/esrgan-thick/package.json b/models/esrgan-thick/package.json index 406bd09eb..648cf583b 100644 --- a/models/esrgan-thick/package.json +++ b/models/esrgan-thick/package.json @@ -1,6 +1,6 @@ { "name": "@upscalerjs/esrgan-thick", - "version": "1.0.0-beta.15", + "version": "1.0.0-beta.16", "description": "ESRGAN Thick Model for UpscalerJS. Upscale images and increase image resolution with AI using Javascript", "keywords": [ "image enhancement", diff --git a/packages/upscalerjs/package.json b/packages/upscalerjs/package.json index acbe7a190..20473a9c1 100644 --- a/packages/upscalerjs/package.json +++ b/packages/upscalerjs/package.json @@ -1,6 +1,6 @@ { "name": "upscaler", - "version": "1.0.0-beta.18", + "version": "1.0.0-beta.19", "description": "Enhance Images with Javascript and AI. Increase resolution, retouch, denoise, and more. Open Source, Browser and Node Compatible, MIT License.", "exports": { "./node": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 56036369a..9c8e3f053 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -211,6 +211,9 @@ importers: '@types/stats.js': specifier: ^0.17.0 version: 0.17.3 + '@upscalerjs/default-model': + specifier: workspace:* + version: link:../../models/default-model '@upscalerjs/esrgan-legacy': specifier: workspace:* version: link:../../models/esrgan-legacy