How to convert model with 2 input parameters?
See original GitHub issueHello,
I am trying to convert model with 2 input parameter - int and image. For now I am getting something like this:
Core ML input(s): [name: "style_num__0" shortDescription: "This input is a sequence of length 26" type { imageType { width: 1 height: 1 colorSpace: GRAYSCALE } } , name: "input__0" type { imageType { width: 1000 height: 1000 colorSpace: RGB } } ] Core ML output(s): [name: "Squeeze__0" type { multiArrayType { dataType: DOUBLE } } ]
after doing that: `import tfcoreml
tfcoreml.convert(‘styl.pb’, mlmodel_path=“stylize3.mlmodel”, input_name_shape_dict={“input:0”:[1,1000,1000,3]}, output_feature_names=[“Squeeze:0”], image_input_names= [“input:0”, “style_num:0”])`
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Converting a Model Using General Conversion Parameters
Open the model in a visualization tool and check for layers performing subtraction or multiplication (like Sub , Mul , ScaleShift , Eltwise...
Read more >Keras Sequential model with multiple inputs - Stack Overflow
I am making a MLP model which takes two inputs and produces a single output. I have two input arrays (one for each...
Read more >Keras: Multiple Inputs and Mixed Data - PyImageSearch
You will learn how to define a Keras architecture capable of accepting multiple inputs, including numerical, categorical, and image data.
Read more >Write Functions with Multiple Parameters in Python
Begin by defining the function with a descriptive name and the two necessary parameters: the input array with values in millimeters; the axis ......
Read more >How to input multiple values from user in one line in Python?
We can convert them to int using another line ... Reads two numbers from input and typecasts them to int using. # list...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Are you using this model or some other model?
yep, this model that I am using