sdaxixihaha

Results 1 issues of sdaxixihaha

image = preprocess(Image.open(image_name)).unsqueeze(0).to(device) with torch.no_grad(): image_features = model.encode_image(image) write_image_tensor(item_id, image_features) type of image_features is below: torch.Size([1, 512]) How can I reduce dimension of image feature by encode_image? eg: torch.Size([1, 128])...