Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caffe to coreml coremltool3.0b #410

Closed
ywang370 opened this issue Jul 24, 2019 · 2 comments
Closed

Caffe to coreml coremltool3.0b #410

ywang370 opened this issue Jul 24, 2019 · 2 comments
Labels
NN backend only Affects only the NN backend (not MIL backend)

Comments

@ywang370
Copy link

================= Starting Conversion from Caffe to CoreML ======================
Layer 0: Type: 'Python', Name: 'data'. Output(s): 'data', 'mask', 'label'.
WARNING: Skipping training related layer 'data' of type 'Python'.
Layer 1: Type: 'Concat', Name: 'concat'. Input(s): 'data', 'mask'. Output(s): 'data_all'.
Layer 2: Type: 'Convolution', Name: 'conv0'. Input(s): 'data_all'. Output(s): 'conv0'.
python(76428,0x112c4e5c0) malloc: *** error for object 0x7fb46b550228: pointer being freed was not allocated
python(76428,0x112c4e5c0) malloc: *** set a breakpoint in malloc_error_break to debug
Abort trap: 6

Not sure how to get the error:
deploy.prototxt at the first layer:
input: "data"
input_dim: 1
input_dim: 3
input_dim: 512
input_dim: 512

input: "mask"
input_dim: 1
input_dim: 1
input_dim: 512
input_dim: 512

layer {
name: "concat"
bottom: "data"
bottom: "mask"
top: "data_all"
type: "Concat"
concat_param {
axis: 1
}
}

layer {
name: "conv0"
type: "Convolution"
bottom: "data_all"
top: "conv0"
param {
lr_mult: 1
decay_mult: 1
}
param {
lr_mult: 2
decay_mult: 0
}
convolution_param {
num_output: 64
kernel_size: 4
stride: 2
pad: 1
weight_filler {
type: "gaussian"
std: 0.01
}
bias_filler {
type: "constant"
value: 0
}
}
}

@aseemw
Copy link
Collaborator

aseemw commented Jul 24, 2019

Is the error specific to coremltools 3.0b3? Does it also happen with coremltools 2.1?

@srikris srikris added the NN backend only Affects only the NN backend (not MIL backend) label Dec 8, 2019
@TobyRoseman
Copy link
Collaborator

With the release of coremltools 5.0 the caffe converter has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NN backend only Affects only the NN backend (not MIL backend)
Projects
None yet
Development

No branches or pull requests

5 participants