Basic functions in Pytorch

I have been able to do so much so far, would really appreciate helps from others to do remaining tasks.
Thank you :slight_smile:

from import Dataset

import torch
import torchvision
import pandas as pd
from import imread
from skimage.color import gray2rgb

class ChallengeDataset(Dataset):
def init(self, dataset,csv_path,train_split=0.8 ):

def getitem (self,index):
pixel_sequence =[‘pixels’][index]
face = [int(pixel) for pixel in pixel_sequence.split(’ ')]
label = self.labels[index]

    return face, label

Is this some kind of assignment you should be working on? :slight_smile:
If that’s the case, I would recommend to use available resources (the docs, this forum etc.) to solve the remaining tasks.