Loading images with csv file

i have CSV file which contain information about the images. i want to load those images and also assign the true or false based on the CSV file.

The loading of the csv file can be done by using e.g. pandas.read_csv.
You could read the csv in your custom Dataset.__init__ method and once this is done, you could load load each row using self.df.iloc[index] in Dataset.__getitem__, and load the images as well as create the target.