backnotprop / fast-style-transfer-coreml Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
when I frozen pb file from 6.7M to 1.7M,then run tf_converter.conver, error info as :
Traceback (most recent call last):
File "/Users/icarus/Documents/icarusCode/Python/neural-style-transfer/fast-style-transfer-coreml-master/fast_style_transfer/convert_graph/convert.py", line 5, in
image_input_names = ['img_placeholder__0'])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_tf_coreml_converter.py", line 586, in convert
custom_conversion_functions=custom_conversion_functions)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_tf_coreml_converter.py", line 337, in _convert_pb_to_mlmodel
convert_ops_to_layers(context)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_ops_to_layers.py", line 178, in convert_ops_to_layers
translator(op, context)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_layers_common.py", line 77, in effectively_constant_op
add_const(context, out.name, x, out.name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_layers_common.py", line 26, in add_const
_add_const(context, name, x, output_name, shape)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tfcoreml/_shape_sensitive_layers.py", line 44, in _add_const
'Add constant: cannot add a constant in which all the dimensions '
AssertionError: Add constant: cannot add a constant in which all the dimensions (Seq, C, H, W) are of non-unit size
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.