Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
86d1f9c661
commit
63b09830a7
|
|
@ -512,8 +512,9 @@
|
||||||
"vgg = keras.applications.VGG16()\n",
|
"vgg = keras.applications.VGG16()\n",
|
||||||
"_weights_path = os.path.join(os.path.expanduser(\"~\"), \".keras\", \"models\",\n",
|
"_weights_path = os.path.join(os.path.expanduser(\"~\"), \".keras\", \"models\",\n",
|
||||||
" \"vgg16_weights_tf_dim_ordering_tf_kernels.h5\")\n",
|
" \"vgg16_weights_tf_dim_ordering_tf_kernels.h5\")\n",
|
||||||
"if _sha256(_weights_path) != VGG16_WEIGHTS_SHA256:\n",
|
if _sha256(_weights_path) != VGG16_WEIGHTS_SHA256:
|
||||||
" warnings.warn(\"VGG16 weights SHA-256 mismatch - verify file integrity before use\")\n",
|
warnings.warn("VGG16 weights SHA-256 mismatch - verify file integrity before use")
|
||||||
|
raise ValueError("Aborting because VGG16 weights failed integrity check")
|
||||||
"inp = keras.applications.vgg16.preprocess_input(x_sample[:1])\n",
|
"inp = keras.applications.vgg16.preprocess_input(x_sample[:1])\n",
|
||||||
"\n",
|
"\n",
|
||||||
"res = vgg(inp)\n",
|
"res = vgg(inp)\n",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue