Skip to content

Commit 108d58c

Browse files
authored
return opt from train.run() (ultralytics#6581)
1 parent 8b830ed commit 108d58c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

train.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ def run(**kwargs):
634634
for k, v in kwargs.items():
635635
setattr(opt, k, v)
636636
main(opt)
637+
return opt
637638

638639

639640
if __name__ == "__main__":

0 commit comments

Comments
 (0)