# load image and store it numpy array 
# empty list to store images 
X = []
# iterating over each image
for img_name in data1.image_names:
  # loading the image using its name
  img1 = plt.imread('/content/images/' + img_name)
  #img = plt.imread('/content/drive/MyDrive/images/' + '10205.jpg')
  # saving each image in the list
  X.append(img1)
  # converting the list of images into array
  X=np.array(X)
  # storing the target variable in separate variable 
  y = data1.class1_male_or_female.values
Error: 
AttributeError       ...READ MORE
Dec 23, 2021
in Others
by 
Yolanda
edited
Mar 4
•
243 views