Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check_yaml() to benchmarks.py #7916

Merged
merged 1 commit into from
May 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utils/benchmarks.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
import export
import val
from utils import notebook_init
from utils.general import LOGGER, print_args
from utils.general import LOGGER, check_yaml, print_args
from utils.torch_utils import select_device


Expand Down Expand Up @@ -136,6 +136,7 @@ def parse_opt():
parser.add_argument('--test', action='store_true', help='test exports only')
parser.add_argument('--pt-only', action='store_true', help='test PyTorch only')
opt = parser.parse_args()
opt.data = check_yaml(opt.data) # check YAML
print_args(vars(opt))
return opt

Expand Down