Created
August 30, 2021 19:53
-
-
Save rahulremanan/030856d0028c90c6248556c31916dad1 to your computer and use it in GitHub Desktop.
FairFace data download
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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