I’m not familar with Config.data_path(), and a lot of the tutorial is using this to specify paths of filename and folders. It’s currently set to some default directory that I don’t want. Is there anyway to set this variable to the ‘pwd’ of where I am?
2 Likes
You can override that in your code like follows (replace with desired value and name of your config file):
Config.DEFAULT_CONFIG = {
'data_path': '/tmp/fastai/data',
'model_path': '/tmp/fastai/models'
}
Config.create('/tmp/myconfig.yml')
Config.DEFAULT_CONFIG_PATH = '/tmp/myconfig.yml'
In subsequent notebooks you just need to set the DEFAULT_CONFIG_PATH to your config file.
15 Likes