import yaml in yolo.py

This commit is contained in:
Glenn Jocher committed 2020-07-05 12:50:04 -07:00
1 parent 8c43a6906d
commit 997ba7b346
1 file changed
+1
+1
View File
@@ -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