Incubator-mxnet: Finetune error according tutorial: ValueError: Cannot find output that matches name "flatten0_output"

Created on 29 May 2017  路  7Comments  路  Source: apache/incubator-mxnet

I want to finetune pretrained inception-BN, squeezeNet, NIN, caffenet, vgg16, vgg19 models from model zoo, which happened this ValueError.

It's okay for finetuning resnet, resneXt models.

@kevinthesun @zackchase @sunilmallya @aileli :laughing:
THanks a lot!

Most helpful comment

@tornadomeet Yes, Thanks a lot!

After attaining the sym varible using load_checkpoint, I used sym.get_internals().list_outputs() to check the outputs of each layer. And replace flatten0 with flatten_0.

All 7 comments

I finetune a model have same question with you

@sunbinbin1991 Do you add flatten0_output layer, you can have a try.

@tornadomeet :sos:

I find my problem, because I used caffenet to finetune my model, actually, this model have no layer"flatten0",so instead, change it with "drop7", that works, in a demo ,it said:

layer_name: the layer name before the last fully-connected layer

It depends, after change it ,it works ,good luck

@sunbinbin1991 okay, my brother, Thanks.

@ysh329 have you solved it ?

@tornadomeet Yes, Thanks a lot!

After attaining the sym varible using load_checkpoint, I used sym.get_internals().list_outputs() to check the outputs of each layer. And replace flatten0 with flatten_0.

Was this page helpful?
0 / 5 - 0 ratings