Skip to content

Commit

Permalink
Fix notebook for Pillow >= 10.0.0
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 547477479
  • Loading branch information
TensorFlow Hub Authors authored and copybara-github committed Jul 12, 2023
1 parent c8b88a1 commit ac8f5dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/colab/boundless.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
" width, height = pil_image.size\n",
" # crop to make the image square\n",
" pil_image = pil_image.crop((0, 0, height, height))\n",
" pil_image = pil_image.resize((257,257),PilImage.ANTIALIAS)\n",
" pil_image = pil_image.resize((257,257),PilImage.LANCZOS)\n",
" image_unscaled = np.array(pil_image)\n",
" image_np = np.expand_dims(\n",
" image_unscaled.astype(np.float32) / 255., axis=0)\n",
Expand Down

0 comments on commit ac8f5dd

Please sign in to comment.