StyleTransferTrilogy icon indicating copy to clipboard operation
StyleTransferTrilogy copied to clipboard

python 3_situation.py error

Open pageedward opened this issue 6 years ago • 0 comments

Traceback (most recent call last): File "keras_version/3_situation.py", line 328, in g_model,loss_model,train_model,meta_model,loss_model_debug = get_Net(style_weight = style_weight,content_weight = content_weight,tv_weight =tv_weight) File "keras_version/3_situation.py", line 213, in get_Net content_feature_model = Model(vgg.input,layer_features) File "D:\installFile\Anaconda3\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(*args, **kwargs) File "D:\installFile\Anaconda3\lib\site-packages\keras\engine\network.py", line 93, in init self._init_graph_network(*args, **kwargs) File "D:\installFile\Anaconda3\lib\site-packages\keras\engine\network.py", line 188, in _init_graph_network 'Found: ' + str(x)) ValueError: Output tensors to a Model must be the output of a Keras Layer (thus holding past layer metadata). Found: <map object at 0x000002872D2EC470> @ypwhs

pageedward avatar Mar 11 '19 03:03 pageedward