Skip to content

Commit

Permalink
Fix model readmes, and fix validate function on default-model (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott authored Nov 18, 2023
1 parent 9ee3fa0 commit 81e1fd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion models/default-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"command": "pnpm lint && pnpm build && pnpm validate:build"
},
"validate:build": {
"command": "pnpm --filter @internals/scripts validate models/default-model"
"command": "ts-node ../../scripts/package-scripts/validate-build.ts models/default-model"
},
"scaffold": {
"command": "node -e 'const fs = require(\"fs\"); const {name, version} = require(\"./package.json\"); fs.writeFileSync(\"./src/constants.generated.ts\", `export const NAME = \"${name}\";\\nexport const VERSION=\"${version}\"`, \"utf-8\");'",
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-medium/DOC.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ If importing Tensorflow.js using script tags, import the specific model and Upsc
<script type="text/javascript">
const upscaler = new Upscaler({
model: ESRGANSlim2x,
model: ESRGANMedium2x,
})
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion models/esrgan-thick/DOC.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ If importing Tensorflow.js using script tags, import the specific model and Upsc
<script type="text/javascript">
const upscaler = new Upscaler({
model: ESRGANSlim2x,
model: ESRGANThick2x,
})
</script>
```
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/esrgan/DOC.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ If importing Tensorflow.js using script tags, import the specific model and Upsc
<script type="text/javascript">
const upscaler = new Upscaler({
model: ESRGANSlim2x,
model: <% snippets/umdName %>2x,
})
</script>
```
Expand Down

0 comments on commit 81e1fd0

Please sign in to comment.