Learn practical skills, build real-world projects, and advance your career
Updated 15 days ago
Version 73
Version 72
Version 71
Version 70
Version 69
Version 68
Version 67
Version 66
Version 65
Version 64
Version 63
Version 62
Version 61
Version 60
Version 59
Version 58
Version 57
Version 56
Version 55
Version 54
Version 53
Version 52
Version 51
Version 50
Version 49
Version 48
Version 47
Version 46
Version 45
Version 44
Version 43
Version 42
Version 41
Version 40
Version 39
Version 38
Version 37
Version 36
Version 35
Version 34
Version 33
Version 32
Version 31
Version 30
Version 29
Version 28
Version 27
Version 26
Version 25
Version 24
Version 23
Version 22
Version 21
Version 20
Version 19
Version 18
Version 17
Version 16
Version 15
Version 14
Version 13
Version 12
Version 11
Version 10
Version 9
Version: 8
Learn how to classify cats and dogs using Feed Forward and Convolutional Neural Networks in PyTorch. Compare models, use normalized and augmented datasets, and download the dataset using Kaggle API.
!pip install jovian --upgrade --quiet
#Cats and Dogs Classification using Feed Forward and Convolutional Neural Networks in PyTorch
This project will be running and comparing between the feed forward neural network and ResNet architectures.
- Train and validation datasets will both be taken from the training_set and test_set respectively
- Same batch size will be used for both models which is = 16
- output size is 2
- dataset used is normalized and augmented
# Project name used for jovian.commit
project_name = 'zerotogans-course-project'
#install dependencies
!pip install kaggle -q
!pip install torch
# !pip install torch===1.6.0 torchvision===0.7.0 -f https://download.pytorch.org/whl/torch_stable.html --quiet
Requirement already satisfied: torch in /usr/local/lib/python3.6/dist-packages (1.7.0+cu101)
Requirement already satisfied: dataclasses in /usr/local/lib/python3.6/dist-packages (from torch) (0.8)
Requirement already satisfied: future in /usr/local/lib/python3.6/dist-packages (from torch) (0.16.0)
Requirement already satisfied: typing-extensions in /usr/local/lib/python3.6/dist-packages (from torch) (3.7.4.3)
Requirement already satisfied: numpy in /usr/local/lib/python3.6/dist-packages (from torch) (1.19.5)
Choose and download the dataset
- through kaggle API
- While downloading the dataset, you will be asked to provide your Kaggle username and credentails, which you can obtain using the "Create New API Token" button on your account page on Kaggle. Upload the kaggle.json notebook using the files tab or enter the username and key manually when prompted.