I could not reproduce it with exactly what you used. One epoch took 19 seconds. You went to ‘Runtime’, ‘Change Runtime Type’ and you selected GPU? Without GPU it took ~3 minutes.
Here’s the code I used:
from fastai.vision import *
from fastai.metrics import error_rate
path = untar_data(URLs.MNIST_SAMPLE)
data = ImageDataBunch.from_folder(path, ds_tfms=get_transforms(do_flip=False),
size=26)
learn = cnn_learner(data, models.resnet34, metrics=error_rate)
learn.fit_one_cycle(1)
For more detail, please read the part1 videos or watch the doc.
You can see the labels csv file is in the minist_sample folder. The minist_sample file has train and valid folder. Both of them contain the folders of your classes. For example, 3 folder has images of 3.
In the end, you need to make sure inside the csv file has this format:![image|690x377]
for this case, 0 is for class 3 and 1 is for class 7.
(upload://sPTYMoKeBO08sokugFcXkp40vJM.png)
or this:
For this, I think you understand why there is a label 3 under folder 3, and it is the same with 7.