BLIP icon indicating copy to clipboard operation
BLIP copied to clipboard

RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

Open HWH-2000 opened this issue 2 years ago • 0 comments

tiny error in demo.ipynb Image-Text Matching error: image = load_demo_image(image_size=image_size,device=device) model = model.to(device='cpu')

right code: image = load_demo_image(image_size=image_size,device=device) model = model.to(device)

HWH-2000 avatar Jul 21 '23 02:07 HWH-2000