ValueError                                Traceback (most recent call last)
/tmp/ipykernel_689838/1233800762.py in 
12 tl=test_loader
13 model_path= ‘best_model.pt’
—> 14 test_model(tl,model_path, save_mod=False)
/tmp/ipykernel_689838/2148491603.py in test_model(test_loader, model_path, save_mod)
270
271
 → 272                 ids=get_ids(test_loader)
273                 img_id=ids
274                 im=transforms.ToPILImage()(t).convert(“RGB”)
/tmp/ipykernel_689838/2148491603.py in get_ids(test_loader)
164         torch.device(“cuda” if torch.cuda.is_available() else “cpu”)
165         ids=[]
 → 166         data,_,ids= batch
167         data=data.to(device)
168         ids=ids.to(device)
ValueError: not enough values to unpack (expected 3, got 2)
I got this Error when I tried . Can you help
This was my code
def getitem_(self, i):
data, label = self.data[i], self.label[i] #here data is actual file name of image
#image=self.transforms.ToPILImage()(data).convert(“RGB”)
image = self.transform(Image.open(data).convert(“RGB”)) # here its converted into tensor
return image, label, data
def get_ids(test_loader):
all_ids = torch.tensor([]).to(device)
for i, batch in enumerate(test_loader):
torch.device(“cuda” if torch.cuda.is_available() else “cpu”)
    ids=[]
    data,_,ids= batch
    data=data.to(device)
    ids=ids.to(device)
    ids = ids.float()
    all_ids = torch.cat((all_ids, ids)) 
return all_ids