Comments (4)
@christophstach Take a look at my PyTorch fast-neural-style (FNS) for Web. I've put up all the details to make the PyTorch FNS work with ONNX.js. Some network model tweaking methods for running in browsers are mentioned. Should give you a good reference to make it run with ONNX.js.
More technical details for op replacements are at Making the PyTorch fast-neural-style (FNS) to ONNX.js conversion work in browsers. It talks about how to make the network compatible with ONNX.js by modifying the PyTorch codes.
Hope this helps you and everyone here to know how PyTorch --> ONNX.js works better.
:)
from onnxjs.
@fs-eire I believe the equivalent op would be Resize. Still need PyTorch ONNX export to change accordingly, though.
from onnxjs.
@christophstach You will have to implement Upsample() by Concat() ops. Here is a working ONNX.js Fast Neural Style. Still buggy but should work ok on desktop browsers.
I am still working on putting up the modified PyTorch code to GitHub. Should be done soon.
from onnxjs.
Thanks to @gnsmrky for the explaination. According to latest ONNX spec, Unsample
is deprecated in opset v10. Is there an equivalent alternative operator does the same thing?
from onnxjs.
Related Issues (20)
- webgl seems not to work (or be used) HOT 3
- cannot resolve operator 'Pow' with opsets: ai.onnx v9 HOT 1
- add example: RangeError: index out of range: 128 + 1 > 128
- Scikit-Learn to Onnx to Onnx.js problems HOT 10
- Support for SELU HOT 1
- Chrome Extension Manifest V3 and onnx.js
- Adding TopK: docs/operators.md pre-commit hook failed HOT 2
- TopK-1 CPU unittests HOT 1
- Fully convolutional network - cannot reuse inference session with different input shape HOT 1
- attribute.ts:122 Uncaught (in promise) Error: graph attribute is not supported yet HOT 2
- Active Development HOT 1
- Is there any function to ouput weight matrix for layers? HOT 1
- Error: input 'attention_mask' is missing in 'feeds'. HOT 1
- TypeError: cannot resolve operator 'Shape' with opsets: ai.onnx v12 HOT 3
- Error: unrecognized input '' for node: Resize_61 HOT 1
- ResNet50 Example with 94mb resnet50.onnx times out on Chrome with "Page Unresponsive" HOT 1
- Formator for pre-commit (PR Help) HOT 1
- TypeError: cannot resolve operator 'ReduceL2' with opsets: ai.onnx v10 HOT 1
- TypeError: cannot resolve operator 'Shape' with opsets: ai.onnx v11 HOT 2
- Add operator on the fly with js script
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxjs.