Skip to content

Commit

Permalink
Bump package versions for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Nov 17, 2023
1 parent 6f63af1 commit 89b471c
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 8 deletions.
3 changes: 2 additions & 1 deletion dev/browser/basic/umd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
</head>
<body>
<script type="module" src="./index.ts"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest/dist/tf.min.js"></script>
<script src="/node_modules/upscaler/node_modules/@upscalerjs/default-model/dist/umd/index.min.js"></script>
<script src="/node_modules/upscaler/dist/browser/umd/upscaler.min.js"></script>
<script src="/node_modules/upscaler/dist/browser/umd/upscaler.js"></script>
</body>
</html>

8 changes: 7 additions & 1 deletion dev/browser/basic/umd/index.ts
Original file line number Diff line number Diff line change
@@ -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);
Binary file added dev/browser/deployed/flower-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions dev/browser/deployed/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>UpscalerJS Development: Deployed model</title>
<link rel="stylesheet" href="../global.css" />
</head>
<body>
<script type="module" src="./index.ts"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@latest/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@upscalerjs/default-model@latest/dist/umd/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/upscaler@latest/dist/browser/umd/upscaler.min.js"></script>
</body>
</html>

7 changes: 7 additions & 0 deletions dev/browser/deployed/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const upscaler = new window['Upscaler']({
model: window['DefaultUpscalerJSModel'],
})

import flower from './flower-small.png';
upscaler.upscale(flower).then(console.log);

1 change: 1 addition & 0 deletions dev/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<body>
<ul>
<li><a href="/basic/">Basic</a></li>
<li><a href="/deployed/">Deployed</a></li>
<li><a href="/speed-tests/">Speed Tests</a></li>
<li><a href="/specific-model/">Specific Model</a></li>
<li><a href="/generate-homepage-gif/">Generate Homepage GIF</a></li>
Expand Down
1 change: 1 addition & 0 deletions dev/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
2 changes: 1 addition & 1 deletion models/default-model/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-legacy/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-medium/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-slim/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-thick/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/upscalerjs/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89b471c

Please sign in to comment.