I run the train.py and get 0.ckpt,but when I use it to run unsupervised.py,I get the error:
Traceback (most recent call last):
File "unsupervised.py", line 97, in
net = Model(input=previous_model.input, output=previous_model.get_layer('avg_pool').output)
File "/home/zhangkun/anaconda3/envs/tensorflow/lib/python3.6/site-packages/keras/engine/network.py", line 364, in get_layer
raise ValueError('No such layer: ' + name)
ValueError: No such layer: avg_pool
I run the train.py and get 0.ckpt,but when I use it to run unsupervised.py,I get the error: Traceback (most recent call last): File "unsupervised.py", line 97, in
net = Model(input=previous_model.input, output=previous_model.get_layer('avg_pool').output)
File "/home/zhangkun/anaconda3/envs/tensorflow/lib/python3.6/site-packages/keras/engine/network.py", line 364, in get_layer
raise ValueError('No such layer: ' + name)
ValueError: No such layer: avg_pool