Hi
I have a dataset in the form of 'torch.Tensor' and was wondering how to use the DatasetWriter? I am trying to use FFCV for SimCLR, where dataset is torch.utils.data.Dataset, including pairs of augmented images in tensor.
I tried different options like RGBImageFields but this does not work as the inputs are tensors, not images, getting this error
TypeError: Unsupported image type <class 'torch.Tensor'>
Hi I have a dataset in the form of 'torch.Tensor' and was wondering how to use the DatasetWriter? I am trying to use FFCV for SimCLR, where dataset is torch.utils.data.Dataset, including pairs of augmented images in tensor.
I tried different options like RGBImageFields but this does not work as the inputs are tensors, not images, getting this error TypeError: Unsupported image type <class 'torch.Tensor'>
`writer = DatasetWriter(write_path, { 'image': RGBImageField(),
'image': FloatField(),