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

In this project, I have made an attempt to classify book genres according to their book cover pages using the FastAI framework and popular transfer learning models such as resnet34, resnet50 and resnet101. All these model architectures have been explored and analysed in detail to arrive at the best model for our data.

Data for this has been scraped from Google Images using :

urls=Array.from(document.querySelectorAll('.rg_i')).map(el=> el.hasAttribute('data-src')?el.getAttribute('data-src'):el.getAttribute('data-iurl'));
window.open('data:text/csv;charset=utf-8,' + escape(urls.join('\n')));

Go to the Google Images page from you want to download images from, and type the above code on 'console' inside the 'Inspect' available in Google Chrome.
This will get you the urls for all the images downloaded in a .csv file.

Additionally, I have used My Drive to save my data for this project. You can choose any path to do so.

#make sure fastai is up to date 
!curl -s https://course.fast.ai/setup/colab | bash
Updating fastai... Done.
#read in standard data science libs
import pandas as pd 
import numpy as np 
import matplotlib.pyplot as plt
#import google drive package
from  google.colab import drive