Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save techwithshadab/30535cd006044b41c32f6aea7fbd5cca to your computer and use it in GitHub Desktop.

Select an option

Save techwithshadab/30535cd006044b41c32f6aea7fbd5cca to your computer and use it in GitHub Desktop.
# splitting path of all images into male and female
train_male_image = []
train_female_image = []
for each in train_image_name:
if each.split('/')[7] in train_male_data['Filename'].values:
train_male_image.append(each)
else:
train_female_image.append(each)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment