You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Everybody,
I'm trying to vizualize some representations.
`import numpy as np
import random
from tensorflow.keras.preprocessing.image import img_to_array, load_img
from tensorflow.keras import layers,models
from keras.preprocessing.image import ImageDataGenerator
import tensorflow as tf
successive_outputs = [layer.output for layer in squeeze.model.layers[1:]]
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)`
When visualization_model is called the following error comes:
`
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)
Traceback (most recent call last):
File "", line 1, in
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\training.py", line 121, in init
super(Model, self).init(*args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 81, in init
self._init_graph_network(*args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\training\checkpointable\base.py", line 442, in _method_wrapper
method(self, *args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 227, in _init_graph_network
self._track_layers(layers)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 327, in _track_layers
layer, name='layer-%d' % layer_index, overwrite=True)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\training\checkpointable\base.py", line 688, in _track_checkpointable
"Checkpointable.") % (type(checkpointable),))
TypeError: Checkpointable._track_checkpointable() passed type <class 'keras.engine.input_layer.InputLayer'>, not a Checkpointable.`
Thanks a lot for help.
The text was updated successfully, but these errors were encountered:
Hello Everybody,
I'm trying to vizualize some representations.
`import numpy as np
import random
from tensorflow.keras.preprocessing.image import img_to_array, load_img
from tensorflow.keras import layers,models
from keras.preprocessing.image import ImageDataGenerator
import tensorflow as tf
successive_outputs = [layer.output for layer in squeeze.model.layers[1:]]
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)`
When visualization_model is called the following error comes:
`
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)
Traceback (most recent call last):
File "", line 1, in
visualization_model = tf.keras.Model(inputs = squeeze.model.input, outputs = successive_outputs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\training.py", line 121, in init
super(Model, self).init(*args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 81, in init
self._init_graph_network(*args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\training\checkpointable\base.py", line 442, in _method_wrapper
method(self, *args, **kwargs)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 227, in _init_graph_network
self._track_layers(layers)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\keras\engine\network.py", line 327, in _track_layers
layer, name='layer-%d' % layer_index, overwrite=True)
File "C:\ICMS\anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\training\checkpointable\base.py", line 688, in _track_checkpointable
"Checkpointable.") % (type(checkpointable),))
TypeError: Checkpointable._track_checkpointable() passed type <class 'keras.engine.input_layer.InputLayer'>, not a Checkpointable.`
Thanks a lot for help.
The text was updated successfully, but these errors were encountered: