AttributeError: 'list' object has no attribute 'copy'
mosheliv opened this issue · 6 comments
mosheliv commented
Hi,
I have just got around for trying to improve inference. unfortunatly, it still fails:
model = reduce_keras_model(model)
File "/home/m/.local/lib/python2.7/site-packages/kito/__init__.py", line 334, in reduce_keras_model
new_layer = reduce_keras_model(new_layer, verbose=verbose)
File "/home/m/.local/lib/python2.7/site-packages/kito/__init__.py", line 351, in reduce_keras_model
output_tensor, output_names = get_layers_without_output(tmp_model, verbose)
File "/home/m/.local/lib/python2.7/site-packages/kito/__init__.py", line 145, in get_layers_without_output
output_tensor = model.outputs.copy()
AttributeError: 'list' object has no attribute 'copy'
ZFTurbo commented
Do you have example of model which fails?
mosheliv commented
Same as before. Nothing have changed as far as i know.
…On Fri, Dec 28, 2018, 20:49 ZFTurbo ***@***.*** wrote:
Do you have example of model which fails?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL6LC4ciUKVJEJ2xQcZsiGkYCKXevK6gks5u9cz3gaJpZM4ZjbRM>
.
ZFTurbo commented
It's the problem with Python 2:
https://stackoverflow.com/questions/2612802/how-to-clone-or-copy-a-list
I will change this part of code to work in Python 2 as well and write here when it's done.
ZFTurbo commented
Updated to 1.0.2. Must work now)
mosheliv commented
all my gpus are training... will do inference tomorrow and let you know.
Thank you!!!!
…On Fri, Dec 28, 2018 at 9:52 PM ZFTurbo ***@***.***> wrote:
Updated to 1.0.2. Must work now)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AL6LC-VwgHrthjh1Vv4OhGOErpQGxXzUks5u9dvXgaJpZM4ZjbRM>
.
mosheliv commented
It worked on inceptionresnetv2 but there was no performance gain. Ill try again with resnet later.
Thank you for the support!