Sign In
Learn practical skills, build real-world projects, and advance your career

Learn how to build a gender classifier using PyTorch and data augmentation techniques. Install jovian, download the dataset, and create PyTorch data loaders using DataLoader.

!pip install jovian --upgrade --quiet
import os
import torch
import torchvision
import tarfile
import torch.nn as nn
import numpy as np
import torch.nn.functional as F
from torchvision.datasets.utils import download_url
from torchvision.datasets import ImageFolder
from import DataLoader
import torchvision.transforms as tt
from import random_split
from torchvision.utils import make_grid
import matplotlib
import matplotlib.pyplot as plt
import torchvision.transforms as transforms
from keras.preprocessing.image import ImageDataGenerator
%matplotlib inline

matplotlib.rcParams['figure.facecolor'] = '#ffffff'
from google.colab import drive
Mounted at /content/gdrive
import os
os.environ['KAGGLE_CONFIG_DIR'] = "/content/gdrive/My Drive/kaggle"
%cd /content/gdrive/My Drive/kaggle
/content/gdrive/My Drive/kaggle