Cnn Weather Image Classification
Final project: - Weather Image Classification using CNN in PyTorch.
import os import torch import torchvision import tarfile from torchvision.datasets.utils import download_url from torch.utils.data import random_split
For this assignmente the folowing dataset was used:
Multi-class Weather Dataset for Image Classification
Multi-class weather dataset(MWD) for image classification is a valuable dataset used in the research paper entitled “Multi-class weather recognition from still image using heterogeneous ensemble method”. The dataset provides a platform for outdoor weather analysis by extracting various features for recognizing different weather conditions.
The original dataset was modified for having a set of 32x32 images, and the same number of samples for each of four classes considered (cloudy, rain, shune and sunrise). This modified dataset can be downloaded from:
from google.colab import drive drive.mount('/content/gdrive')
Drive already mounted at /content/gdrive; to attempt to forcibly remount, call drive.mount("/content/gdrive", force_remount=True).