import os
import torch
from torch.utils.data import Dataset
from utils import *
from torchvision import transforms
transform=transforms.Compose([
transforms.ToTensor()
])
class MyDataset(Dataset):
def __init__(self,path)
误将初始化部分的def __init__(self,path)写成def __int__(self,path),导致MyDataset不能继承Dataset类,改回def __init__即可