Skip to content

Numpy issue in encode_dataset notebook #326

@AstrodreamerStudio

Description

@AstrodreamerStudio

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions