#KÜTÜPHANELER
import os
from pathlib import Path
from tqdm import tqdm
from easydict import EasyDict as edict
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision.utils as vutils
from torchvision import transforms as trans
from data.ms1m import get_train_loader
from data.lfw import LFW
from backbone.arcfacenet import SEResNet_IR
from margin.ArcMarginProduct import  ArcMarginProduct
from util.utils import save_checkpoint, test
#KONFİGÜRASYON
conf = edict()
conf.train_root = “dataset/MS1M/MS1M”
conf.lwf_test_root = “dataset/lfw_aligned_112/lfw_aligned_112”
conf.lwf_file_list =“dataset/lfw_pair.txt”
conf.mode =“se_ir”   #model
conf.depth = 50            #derinlik
conf.margin_type = “ArcFace”
conf.feature_dim = 512
conf.scale_siz = 32.0
conf.batch_size =96 # bir seferde 96 resim yüklenecek
conf.lr = 0.01 #modele daha az resim verilirse lr’ düşürülmeli
conf.milestones = [8,10,12]
conf.total_epoch = 14 #  model 14 defa resimlerin üstünde geçecek 14 iterasyon sayısı
conf.save_folder="./saved"
conf.save_dir = os.path.join(conf.save_folder ,conf.mode +’_’ + str(conf.depth))
conf.device = torch.device (“cuda:0” if torch.cuda.is_available() else “cpu”) # modelin nerede çalışacağını söylüyoruz
conf.num_workers = 4
conf.pin_memory = True
os.makedirs(conf.save_dir,exist_ok=True)
#VERİ YÜKLEME
transform = trans.Compose([
trans.ToTensor(),
trans.Normalize(mean=(0.5,0.5,0.5),std=(0.5,0.5,0.5))
])
trainloader = class_num = get_train_loader(conf)
print("number of id ",class_num)
print(trainloader.dataset)
################################################################
Traceback (most recent call last):
File “C:/Users/hsyna/Desktop/ArcFace/train.py”, line 59, in 
print(trainloader.dataset[0])
AttributeError: ‘tuple’ object has no attribute ‘dataset’
I have an error too, how do I fix it?