finetune_class #1
|
@ -34,8 +34,8 @@ class aiuNNDataset(torch.utils.data.Dataset):
|
|||
|
||||
def __getitem__(self, idx):
|
||||
# Get the byte strings
|
||||
low_res_bytes = self.df.iloc[idx]['low_ress']
|
||||
high_res_bytes = self.df.iloc[idx]['high_ress']
|
||||
low_res_bytes = self.df.iloc[idx]['image_512']
|
||||
high_res_bytes = self.df.iloc[idx]['image_1024']
|
||||
|
||||
# Convert bytes to numpy arrays
|
||||
low_res = cv2.imdecode(np.frombuffer(low_res_bytes, np.uint8), -1)
|
||||
|
|
Loading…
Reference in New Issue