keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 907 forks source link

Question about line 74 in inception_resnet_v2.py #160

Open mdtjan opened 4 years ago

mdtjan commented 4 years ago

First of all, thank you for your great work!

I found this line a trouble. What is layers in this line? Is it None as in line 33? I got the error AttributeError: 'NoneType' object has no attribute 'Conv2D' everytime I call _conv2dbn function.

https://github.com/keras-team/keras-applications/blob/976050c468ff949bcbd9b9cf64fe1d5c81db3f3a/keras_applications/inception_resnet_v2.py#L74

jaketae commented 4 years ago

From what I see, it comes from the line shown below when the model is initialized:

https://github.com/keras-team/keras-applications/blob/976050c468ff949bcbd9b9cf64fe1d5c81db3f3a/keras_applications/inception_resnet_v2.py#L225