question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to convert model with 2 input parameters?

See original GitHub issue

Hello,

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:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
aseemwcommented, Jan 19, 2018

Are you using this model or some other model?

0reactions
czatercommented, Jan 20, 2018

yep, this model that I am using

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found