I am running this code for differentiating two people. I have image set of these two person.
But, the accuracy of the model changes each time i run the code. though the learning rate is constant.
The code is exact same as taught in the first lesson.
import sys
sys.path.append(“C:\Users\Anurag\github_pro\fastai”)
from fastai.imports import *
from fastai.transforms import *
from fastai.conv_learner import *
from fastai.model import *
from fastai.dataset import *
from fastai.sgdr import *
from fastai.plots import *
PATH = “C:\Users\Anurag\github_pro\fastai\courses\dl1\data\BTS\”
sz=124
arch=resnet34
data = ImageClassifierData.from_paths(PATH, tfms=tfms_from_model(arch, sz))
learn = ConvLearner.pretrained(arch, data, precompute=True)
learn.fit(0.01, 2)
What i might be doing wrong?
Thanks.