I got this error in colab ( I didn't change anything in code )
47 model, preprocess = clip.load("ViT-B/32", device=device)
48
---> 49 images = torch.stack([preprocess(im) for im in l]).to(device)
50 with torch.no_grad():
51 image_features = model.encode_image(images)
RuntimeError: stack expects a non-empty TensorList
I got this error in colab ( I didn't change anything in code )
47 model, preprocess = clip.load("ViT-B/32", device=device)
48
---> 49 images = torch.stack([preprocess(im) for im in l]).to(device)
50 with torch.no_grad():
51 image_features = model.encode_image(images)
RuntimeError: stack expects a non-empty TensorList