Last active
May 5, 2020 16:38
-
-
Save Blaizzy/3f362ca2f9b6abbf77c4fb147eb2affa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| m = SrResnet(scale) | |
| learner = Learner(data, m, opt_func= optim.Adam, wd=0.9) | |
| learner.loss_func = F.mse_loss | |
| #----------------------- | |
| lr = 1e-4 # learning rate | |
| cycles = 8 # cycle_len following the 1cycle policy | |
| #----------------------- | |
| learner.fit_one_cycle(cycles, lr, pct_start=0.9) | |
| learner.show_results(rows=1, imgsize = 5) # shows the model input/prediction/ground-truth |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment