vgg = VGG16(weights='imagenet', include_top=True, input_shape=(224,224,3))
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\applications__init__.py", line 28, in wrapper
return base_fun(*args, *kwargs)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\applications\vgg16.py", line 11, in VGG16
return vgg16.VGG16(args, *kwargs)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras_applications\vgg16.py", line 210, in VGG16
model.load_weights(weights_path)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\engine\network.py", line 1166, in load_weights
f, self.layers, reshape=reshape)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\engine\saving.py", line 1058, in load_weights_from_hdf5_group
K.batch_set_value(weight_value_tuples)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\backend\tensorflow_backend.py", line 2470, in batch_set_value
get_session().run(assign_ops, feed_dict=feed_dict)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 929, in run
run_metadata_ptr)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run
run_metadata)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call
return fn(args)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun
run_metadata)
TypeError: TF_SessionRun_wrapper: expected all values in input dict to be ndarray
vgg = VGG16(weights='imagenet', include_top=True, input_shape=(224,224,3)) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\applications__init__.py", line 28, in wrapper return base_fun(*args, *kwargs) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\applications\vgg16.py", line 11, in VGG16 return vgg16.VGG16(args, *kwargs) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras_applications\vgg16.py", line 210, in VGG16 model.load_weights(weights_path) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\engine\network.py", line 1166, in load_weights f, self.layers, reshape=reshape) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\engine\saving.py", line 1058, in load_weights_from_hdf5_group K.batch_set_value(weight_value_tuples) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\keras\backend\tensorflow_backend.py", line 2470, in batch_set_value get_session().run(assign_ops, feed_dict=feed_dict) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 929, in run run_metadata_ptr) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1152, in _run feed_dict_tensor, options, run_metadata) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1328, in _do_run run_metadata) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1334, in _do_call return fn(args) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1319, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "C:\Users\admin\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\client\session.py", line 1407, in _call_tf_sessionrun run_metadata) TypeError: TF_SessionRun_wrapper: expected all values in input dict to be ndarray