Skip to content

Instantly share code, notes, and snippets.

@mk-devc
mk-devc / customCelebA.py
Last active March 5, 2021 08:08
This is a custom dataset for loading celebA dataset to be trained on google colab. Due to google drive limitations this could serve as a manual alternative.
# Download the data on your google drive by making a copy of the annotations
# change the shareable link file/d/ into uc?id=/
# store those links in their respective url
# use the gdown command on the url to download straight to colab
import pandas as pd
import os
from skimage import io
from torch.utils.data import DataLoader