Guest User

Untitled

a guest
Jul 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. # This file contains all the main external libs we'll use
  2. from fastai.imports import *
  3. from fastai.transforms import *
  4. from fastai.conv_learner import *
  5. from fastai.model import *
  6. from fastai.dataset import *
  7. from fastai.sgdr import *
  8. from fastai.plots import *
  9.  
  10. PATH = "data/dataset/"
  11. size=224
  12. arch=resnet34
  13. #Creating classifier
  14. data = ImageClassifierData.from_paths(PATH, tfms=tfms_from_model(arch, sz), bs=8)
  15. learn = ConvLearner.pretrained(arch, data, precompute=True)
  16. lrf=learn.lr_find()
  17. learn.sched.plot()
Add Comment
Please, Sign In to add comment