./animals_hub
folder.'./animals'
to find the class names and the files that need to be uploaded to the Hub dataset.with
syntax below.htype
and dtype
is not required, but it is highly recommended in order to optimize performance, especially for large datasets. Usedtype
to specify the numeric type of tensor data, and usehtype
to specify the underlying data structure. More information on htype
can be found here.hub.read(path)
is equivalent to appending PIL.Image.fromarray(path)
. However, the hub.read()
method is significantly faster because it does not decompress and recompress the image if the compression matches thesample_compression
for that tensor. Further details are available in Understanding Compression.ds.append({...})
requires that you to append to all tensors in the dataset. If you wish to skip tensors during appending, please use ds.append({...}, skip_ok = True)
or append to a single tensor using ds.tensor_name.append(...)
.groups
: