Keras-inference-time-optimizer icon indicating copy to clipboard operation
Keras-inference-time-optimizer copied to clipboard

non-standard layer

Open yyjabidintg opened this issue 7 years ago • 5 comments

what to do if my code has non-standard layer. Any suggestion on how to modify the code? Thanks a lot.

yyjabidintg avatar Sep 28 '18 05:09 yyjabidintg

You can add it in function "get_copy_of_layer" https://github.com/ZFTurbo/Keras-inference-time-optimizer/blob/master/kito.py#L72

There are 2 examples already added for "relu6" and "BilinearUpsampling" layers.

ZFTurbo avatar Sep 28 '18 07:09 ZFTurbo

Thanks. I find that you have ever used keras_retinanet. But when I am trying to combine the Kito code into Keras_retinanet. The layer regression_submodel output errors: x = new_layer(prev_layer) ValueError: Invalid input_shape argument [(None, None, None, 256), (None, None, None, 256), (None, None, None, 256), (None, None, None, 256), (None, None, None, 256)]: model has 1 tensor inputs. But I having Can you give any suggestions on which part of the code to moidfy? Thank in advance.

yyjabidintg avatar Sep 28 '18 10:09 yyjabidintg

Yes I used RetinaNet but wasn't able to create KITO code that supports it, because it has too complex structure. I still have plans to do it. When it'll be ready I'll post note in this thread.

ZFTurbo avatar Sep 28 '18 11:09 ZFTurbo

I was able to optimze RetinaNet, but for some reason it works absolutely at the same speed as unoptimized version.

ZFTurbo avatar Oct 12 '18 11:10 ZFTurbo

Can you share how you were able to do it, I'm getting the same error mentioned above?

bfialkoff avatar Aug 20 '19 13:08 bfialkoff