Skip to content

Commit

Permalink
- Further cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
egeozsoy committed Jul 31, 2019
1 parent 12c7eed commit 2173c3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.py
Expand Up @@ -4,7 +4,7 @@
from torchvision import transforms
import fastai
import fastprogress
from fastai.vision import ImageDataBunch, models, cnn_learner, accuracy, Learner
from fastai.vision import ImageDataBunch, models, cnn_learner, accuracy
from sklearn.model_selection import train_test_split
from matplotlib import pyplot as plt
from PIL import Image
Expand Down Expand Up @@ -50,10 +50,6 @@
# ---------------------Use FastAi for easier training with less boilerplate code---------------------
data = ImageDataBunch.create(train_dataset, test_dataset)

# Pytorch bug avoids us using mobilenet_v2
# model = torchvision.models.mobilenet_v2(num_classes=2)
# learner = Learner(data=data,model=model)

learner = cnn_learner(data, models.resnet50, metrics=accuracy)
# Either train the cnn layers or not
if unfreeze_cnn_layers:
Expand Down

0 comments on commit 2173c3a

Please sign in to comment.