Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rahulremanan/030856d0028c90c6248556c31916dad1 to your computer and use it in GitHub Desktop.
Save rahulremanan/030856d0028c90c6248556c31916dad1 to your computer and use it in GitHub Desktop.
FairFace data download
img_dir = './'
if IN_COLAB:
from google.colab import drive
drive.mount('/content/drive')
img_dir = '/content/drive/MyDrive/'
fairface_dir = f'{img_dir}/FairFace/'
if not os.path.exists(f'{fairface_dir}/fairface-img-margin125-trainval.zip'):
raise ValueError(f'Please check whether the FairFace dataset zip file exists at: {fairface_dir}/fairface-img-margin125-trainval.zip')
if not os.path.exists(f'{fairface_dir}/fairface_label_train.csv'):
raise ValueError(f'Please check whether the FairFace data labels csv file exists at: {fairface_dir}/fairface_label_train.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment