This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The link below has the weights for the models:- | |
! wget 'http://files.fast.ai/models/weights.tgz' | |
# The output is as below ##################################################### | |
# --2018-08-27 09:24:02-- http://files.fast.ai/models/weights.tgz | |
# Resolving files.fast.ai (files.fast.ai)... 67.205.15.147 | |
# Connecting to files.fast.ai (files.fast.ai)|67.205.15.147|:80... connected. | |
# HTTP request sent, awaiting response... 200 OK | |
# Length: 1195411318 (1.1G) [text/plain] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
labels_df.pivot_table(index='breed',aggfunc=len).sort_values('id',ascending=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn=ConvLearner.pretrained(arch,data,precompute=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.lr_find() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.sched.plot_lr() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.sched.plot() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.fit(1e-2,5) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.precompute=False | |
learn.fit(1e-2,3,cycle_len=1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn = ConvLearner.pretrained(arch, data, precompute=True, ps=0.5) | |
learn.fit(1e-2, 2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
learn.set_data(get_data(299, bs)) | |
learn.freeze() | |
learn.fit(1e-2, 3, cycle_len=1) |