walkwithfastai.github.io
walkwithfastai.github.io copied to clipboard
Ch7 Super Resolution unet_config not defined
currently using unet_config . An obsolete method for learner params
#Problem: cfg = unet_config(blur=True, norm_type=NormType.Weight, self_attention=True, y_range=y_range)
def create_gen_learner(): return unet_learner(dls_gen, bbone, loss_func=loss_gen, config=cfg)
#Fix: remove cfg lne & Feed the params in directly to the learner def create_gen_learner(): return unet_learner(dls_gen, bbone, loss_func=loss_gen, blur=True, norm_type=NormType.Weight, self_attention=True, y_range=y_range)