Skip to content

pich4 code X_video_cockatoo.ipynb gives error on MacOS #3

@ralphrmartin

Description

@ralphrmartin

On running this notebook on MacOS, after running the lines

n_channels = 3
n_frames = meta['nframes']
video = torch.empty(n_channels, n_frames, *meta['size'])

video.shape

I get the result

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[3], line 3
      1 n_channels = 3
      2 n_frames = meta['nframes']
----> 3 video = torch.empty(n_channels, n_frames, *meta['size'])
      5 video.shape

TypeError: empty(): argument 'size' failed to unpack the object at pos 2 with error "type must be tuple of ints,but got float"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions