【发布时间】:2020-12-03 14:40:32
【问题描述】:
Fast Ai 使用了from fastai import * 等非常规的风格。
我不喜欢它,所以煞费苦心地识别 chapter 2 of the fastai book 中的每个导入,但遇到了错误
AttributeError: 'Learner' object has no attribute 'fine_tune'
但是,当我然后去做的时候
from fastbook import *
它有效。这是一个非常奇怪的行为,因为如果完成上述导入,对 cnn_learner 类或包含它的模块进行了某些操作,使其具有fine_tune 方法。
我想避免这种编码风格,那么我应该怎么做才能加载正确版本的 Learner?
【问题讨论】:
标签: fast-ai