RobroKools's picture
Upload 44 files
e59f78e verified
raw
history blame contribute delete
249 Bytes
import yaml
from box import Box
def load_config(path):
with open(path, 'r') as f:
args = Box(yaml.safe_load(f))
args.learning_rate = float(args.learning_rate)
args.weight_decay = float(args.weight_decay)
return args