MarsTechHAN / keras2ncnn

A keras h5df to ncnn model converter
MIT License
89 stars 19 forks source link

Operator KerasLayer not support #26

Closed onexuan closed 3 years ago

onexuan commented 3 years ago

[ERROR] Operator KerasLayer not support.

{'name': 'keras_layer', 'trainable': True, 'dtype': 'float32', 'handle': 'https://tfhub.dev/google/imagenet/mobilenet_v2_140_224/feature_vector/4', 'batch_input_shape': [None, 224, 224, 3]}

MarsTechHAN commented 3 years ago

Hi, can you provide your h5df file here? I only find the savedmodel format in the tfhub.

onexuan commented 3 years ago

https://github.com/GantMan/nsfw_model/releases/download/1.2.0/mobilenet_v2_140_224.1.zip @MarsTechHAN

MarsTechHAN commented 3 years ago

See it, let me have a try

MarsTechHAN commented 3 years ago

hmmm... I dont see a clear way of supporting the KerasLayer. It does not contain any structural information in the model, just the weight. image

onexuan commented 3 years ago

I got