mirror of
https://github.com/zhigang1992/fastai.git
synced 2026-04-29 01:54:53 +08:00
change using self.data_path to self.data.path
using self.data_path in line 37 causes an error: AttributeError: ‘ConvLearner’ object has no attribute ‘data_path’
This commit is contained in:
@@ -34,7 +34,7 @@ class Learner():
|
||||
self.clip = None
|
||||
self.opt_fn = opt_fn or SGD_Momentum(0.9)
|
||||
self.tmp_path = tmp_name if os.path.isabs(tmp_name) else os.path.join(self.data.path, tmp_name)
|
||||
self.models_path = models_name if os.path.isabs(models_name) else os.path.join(self.data_path, models_name)
|
||||
self.models_path = models_name if os.path.isabs(models_name) else os.path.join(self.data.path, models_name)
|
||||
os.makedirs(self.tmp_path, exist_ok=True)
|
||||
os.makedirs(self.models_path, exist_ok=True)
|
||||
self.crit = crit if crit else self._get_crit(data)
|
||||
|
||||
Reference in New Issue
Block a user