-
Notifications
You must be signed in to change notification settings - Fork 227
Open
Description
Bug Description
Ran the notebook on Google Colab and noticed a few bugs. I managed to fix them, so if this issue is approved, I'd like to work on it. It would is also my first contribution to open-source :)
- Loading the
pcuenq/oxford-petsdataset
NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.is thrown- fixed by adding
!pip install -U datasetsbeforehand
- Functions processing images for display
show_samplesandshow_predictions, try to convertsamples[i]['image']['bytes']into a PIL Image File. However,samples[i]['image']is already aPIL.JpegImagePlugin.JpegImageFile.TypeError: 'JpegImageFile' object is not subscriptableis thrown.- Fixed by removing code that converts bytes to PIL image
TrainingArgumentshas a deprecatedevaluation_strategyargument
- Should be
eval_strategy. Fixed by renaming.
Existing Issues
Found a similar existing issue #375, but I believe it is saying the opposite of what I am observing. The internal image attribute is not a bytes object and is already a PIL image.
Reproduction
Run the existing notebook on Colab.
Logs/Screenshots
Loading the pcuenq/oxford-pets dataset
Functions processing images for display
TrainingArguments has a deprecated evaluation_strategy argument

Metadata
Metadata
Assignees
Labels
No labels