Skip to content

Commit

Permalink
Merge pull request fastai#93 from allentfung/files
Browse files Browse the repository at this point in the history
update all occurrences of www.platform.ai to be files.fast.ai
  • Loading branch information
jph00 authored May 4, 2017
2 parents 70feb12 + 1594992 commit ed1fb08
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion deeplearning1/nbs/lesson1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@
},
"outputs": [],
"source": [
"FILES_PATH = 'http://www.platform.ai/models/'; CLASS_FILE='imagenet_class_index.json'\n",
"FILES_PATH = 'http://files.fast.ai/models/'; CLASS_FILE='imagenet_class_index.json'\n",
"# Keras' get_file() is a handy function that downloads files, and caches them for re-use later\n",
"fpath = get_file(CLASS_FILE, FILES_PATH+CLASS_FILE, cache_subdir='models')\n",
"with open(fpath) as f: class_dict = json.load(f)\n",
Expand Down
4 changes: 2 additions & 2 deletions deeplearning1/nbs/resnet50.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Resnet50():


def __init__(self, size=(224,224), include_top=True):
self.FILE_PATH = 'http://www.platform.ai/models/'
self.FILE_PATH = 'http://files.fast.ai/models/'
self.vgg_mean = np.array([123.68, 116.779, 103.939]).reshape((3,1,1))
self.create(size, include_top)
self.get_classes()
Expand Down Expand Up @@ -110,4 +110,4 @@ def fit(self, batches, val_batches, nb_epoch=1):

def test(self, path, batch_size=8):
test_batches = self.get_batches(path, shuffle=False, batch_size=batch_size, class_mode=None)
return test_batches, self.model.predict_generator(test_batches, test_batches.nb_sample)
return test_batches, self.model.predict_generator(test_batches, test_batches.nb_sample)
2 changes: 1 addition & 1 deletion deeplearning1/nbs/vgg16.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Vgg16():


def __init__(self):
self.FILE_PATH = 'http://www.platform.ai/models/'
self.FILE_PATH = 'http://files.fast.ai/models/'
self.create()
self.get_classes()

Expand Down
2 changes: 1 addition & 1 deletion deeplearning1/nbs/vgg16bn.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Vgg16BN():


def __init__(self, size=(224,224), include_top=True):
self.FILE_PATH = 'http://www.platform.ai/models/'
self.FILE_PATH = 'http://files.fast.ai/models/'
self.create(size, include_top)
self.get_classes()

Expand Down
4 changes: 2 additions & 2 deletions deeplearning1/nbs/wordvectors.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"hidden": true
},
"source": [
"This section shows how we processed the original glove text files. However, there's no need for you to do this, since we provide the [pre-processed glove data](www.platform.ai/models/glove)."
"This section shows how we processed the original glove text files. However, there's no need for you to do this, since we provide the [pre-processed glove data](files.fast.ai/models/glove)."
]
},
{
Expand Down Expand Up @@ -99,7 +99,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"After you've downloaded the [pre-processed glove data](www.platform.ai/models/glove), you should use `tar -zxf` to untar them, and put them in the path that {res_path} points to. (If you don't have a great internet connection, feel free to only download the 50d version, since that's what we'll be using in class). \n",
"After you've downloaded the [pre-processed glove data](files.fast.ai/models/glove), you should use `tar -zxf` to untar them, and put them in the path that {res_path} points to. (If you don't have a great internet connection, feel free to only download the 50d version, since that's what we'll be using in class). \n",
"\n",
"Then the following function will return the word vectors as a matrix, the word list, and the mapping from word to index."
]
Expand Down

0 comments on commit ed1fb08

Please sign in to comment.