def to_tensor(img_list):
    new_img = F.to_tensor(img_list.img)
    img_list.img = new_img
    return img_list
def to_tensor(img_list):
    new_img = F.to_tensor(img_list.img)
    img_list.img = new_img
    return img_list