1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| import pandas as pd import torch from pathlib import Path from dataclasses import dataclass from torch.utils.data import Dataset from PIL import Image
data_path = Path("path")
data = pd.read_json(data_path)
data.head(10)
class MyDataset(Dataset): pass
|