Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
%matplotlib inline
%reload_ext autoreload
%autoreload
import jovian
from fastai.vision import *
import pandas as pd
import numpy as np
Read Dataset Files
# get_category_names
with open('list_category_cloth.txt', 'r') as f:
categories = []
for i, line in enumerate(f.readlines()):
if i > 1:
categories.append(line.split(' ')[0])
# get image category map
with open('list_category_image.txt', 'r') as f:
images = []
for i, line in enumerate(f.readlines()):
if i > 1:
images.append([word.strip() for word in line.split(' ') if len(word) > 0])