I have a list called wordImages. It contains images in np.array format with different width & height.
How Do I convert this into a tensor and use this instead of my_dataset in the below code?
Currently i am using this. But I need to save/read images
demo_data = RawDataset(root="output_craft/", opt=opt)
demo_loader = torch.utils.data.DataLoader(
demo_data , batch_size=opt.batch_size,
shuffle=False,
num_workers=int(opt.workers),
collate_fn=AlignCollate_demo, pin_memory=True)