Numpy issue in encode_dataset notebook

Author: AstrodreamerStudioCreated Mar 22, 2023Updated Mar 22, 2023

I am attempting to run the notebook to encode a custom dataset to train dalle-mini using the journal. Journal trips up at step 8 T.ToPILImage()(images[0].permute(2, 0, 1))

throwing this error


AttributeError Traceback (most recent call last) Cell In[25], line 1 ----> 1 T.ToPILImage()(images[0].permute(2, 0, 1))

AttributeError: 'numpy.ndarray' object has no attribute 'permute'

Any help will be appreciated!