The Car Connection Picture Dataset is a dataset for car classificatioin.
.py
files into a folder.bs4
, requests
,
etc).main.py
set path
to where the files are, and directory
where you want
the images to landmain.py
. I suggest you try it with a portion of the data first,
in case an error emerges later.scrape.py
line 27, replace for make in listed:
to for make in listed[1:3]:
EXAMPLE. Example — Audi vs BMW ConvNet.ipynb
: example of a deep learning classification task with Pytorch
WARNING: You may have issues if you use Python 3.6
scrape.py
, row 68, change this line:for ix, photo in enumerate(re.findall('sml.+?_s.jpg', fetch_pics_url)[:150], 1):
for ix, photo in enumerate(re.findall('lrg.+?_l.jpg', fetch_pics_url)[:150], 1):
FILES | DESCRIPTION | EXPORT |
---|---|---|
scrape.py | Creates a df of all cars with their specs/pics URLs | specs-and-pics.csv |
tag.py | Turns the previous df into one tag per URL | id_and_pic_url.csv |
save.py | Turns all rows in the previous df to a picture named with the tag | pictures/*.jpg |
select.py | Uses numpy to delete interior pictures, based on pixel color | exterior/*.jpg |
main.py | Runs all other files | None |