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

XRay Classification Project

In this project, I've built a deep learning model from scratch and trained it to classify if a Xray of the person is normal or the person has pneumonia. I got the dataset from Kaggle.

!pip install jovian --upgrade --quiet
#Import the libraries

import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import torch
import torchvision
import tarfile
from torchvision.datasets.utils import download_url
from torch.utils.data import random_split

from torchvision.datasets import ImageFolder
from torchvision.transforms import ToTensor
project_name = 'xray-classification-project-pytorch'
!pip install opendatasets --upgrade
import opendatasets as od
dataset_url = 'https://www.kaggle.com/paultimothymooney/chest-xray-pneumonia'
od.download(dataset_url)