fastbook icon indicating copy to clipboard operation
fastbook copied to clipboard

Chapter 2: cnn_learner on bear images gives PIL transparency warning

Open juliangilbey opened this issue 4 years ago • 0 comments
trafficstars

In the cell which reads:

learn = cnn_learner(dls, resnet18, metrics=error_rate)
learn.fine_tune(4)

I'm getting the warning:

/home/jdg/fast.ai.course/fastai-venv/lib/python3.9/site-packages/PIL/Image.py:951: UserWarning: Palette images with Transparency expressed in bytes should be converted to RGBA images
  warnings.warn(

I'm not sure whether this is a fastbook or fastai issue.

juliangilbey avatar Jan 19 '21 13:01 juliangilbey