Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Add Fast Neural Style to demo #33

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080/#/fast_neural_style",
"webRoot": "${workspaceFolder}"
}
]
}
17,714 changes: 12,601 additions & 5,113 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ndarray-resample": "^1.0.1",
"ndarray-squeeze": "^1.0.2",
"ndarray-unpack": "^1.0.0",
"onnxjs": "^0.1.6",
"onnxjs": "file:../Desktop/onnxjs",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What version did you use? Tried the 0.1.6 and 0.1.8 and both crash while initializing the model

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used 0.1.7 — perhaps give that a try?

"vue": "^2.6.10",
"vue-class-component": "^7.0.2",
"vue-property-decorator": "^8.1.0",
Expand All @@ -29,7 +29,7 @@
"@types/long": "^4.0.0",
"@types/ndarray": "^1.0.7",
"@types/request": "^2.48.1",
"@types/webgl2": "0.0.4",
"@types/webgl2": "0.0.5",
"@vue/cli-plugin-babel": "^3.6.0",
"@vue/cli-plugin-typescript": "^3.6.0",
"@vue/cli-service": "^3.6.0",
Expand All @@ -44,7 +44,7 @@
"postcss-loader": "^3.0.0",
"ts-loader": "^5.4.4",
"tslint-no-unused-expression-chai": "^0.1.4",
"typescript": "^3.4.5",
"typescript": "^3.9.5",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.5.17",
"vuetify": "^1.5.13",
Expand Down
Binary file added public/fns-models/candy-8.onnx
Binary file not shown.
Binary file added public/fns-models/candy-9.onnx
Binary file not shown.
Binary file added public/fns-models/mosaic-8.onnx
Binary file not shown.
Binary file added public/fns-models/mosaic.onnx
Binary file not shown.
Binary file added public/fns-models/pointilism-8.onnx
Binary file not shown.
Binary file added public/fns-models/pointilism-9.onnx
Binary file not shown.
Binary file added public/fns-models/rain-princess-8.onnx
Binary file not shown.
Binary file added public/fns-models/rain-princess-9.onnx
Binary file not shown.
Binary file added public/fns-models/udnie-8.onnx
Binary file not shown.
Binary file added public/fns-models/udnie-9.onnx
Binary file not shown.
Binary file added src/assets/mosaic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const DEMO_INFO = [
{ title: 'Emotion FerPlus', path: 'emotion_ferplus', imagePath: require('@/assets/emotion.png') },
{ title: 'Yolo', path: 'yolo', imagePath: require('@/assets/yolo.png') },
{ title: 'MNIST', path: 'mnist', imagePath: require('@/assets/mnist.png') },
{ title: 'Fast Neural Style', path: 'fast_neural_style', imagePath: require('@/assets/mosaic.png') },
];

@Component
Expand Down
1 change: 1 addition & 0 deletions src/components/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const DEMO_INFO = [
{ model: 'Emotion FerPlus', title: 'Emotion FerPlus', path: 'emotion_ferplus'},
{ model: 'Yolo', title: 'Yolo', path: 'yolo'},
{ model: 'MNIST', title: 'MNIST', path: 'mnist'},
{ model: 'Fast Neural Style', title: 'Fast Neural Style', path: 'fast_neural_style'},
];

@Component
Expand Down
Loading