diff --git a/models/yolo.py b/models/yolo.py index 7961fab..b2d09cc 100644 --- a/models/yolo.py +++ b/models/yolo.py @@ -48,6 +48,7 @@ class Model(nn.Module): if type(model_cfg) is dict: self.md = model_cfg # model dict else: # is *.yaml + import yaml with open(model_cfg) as f: self.md = yaml.load(f, Loader=yaml.FullLoader) # model dict