walkwithfastai.github.io icon indicating copy to clipboard operation
walkwithfastai.github.io copied to clipboard

Ch7 Super Resolution unet_config not defined

Open Rebolforces opened this issue 3 years ago • 0 comments

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)

Rebolforces avatar Aug 10 '21 23:08 Rebolforces