Why is there an additional "None" dimension in the tensor shape when uploading a dataset to Activeloop Hub?

320 views Asked by At

I am trying to upload an image datset to Hub (dataset format with an API for creating, storing, & collaborating on AI datasets). I only uploaded part of the dataset, however upon inspecting the uploaded data I noticed that there was an additional None dimension in the tensor shape. Can someone explain why this occurred?

I am using the following tensor relationship:

ds 
-> images (htype = image)
1

There are 1 answers

0
Kristina from Activeloop On BEST ANSWER

The none dimension is present because some of the images might have three channels and the others have four, so dynamic dimensions are shown as None.