Skip to content

Commit

Permalink
Explicit requirements.txt location (ultralytics#4225)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Jul 29, 2021
1 parent 54289ff commit 7a072f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def main(opt):
if RANK in [-1, 0]:
print(colorstr('train: ') + ', '.join(f'{k}={v}' for k, v in vars(opt).items()))
check_git_status()
check_requirements(exclude=['thop'])
check_requirements(requirements=FILE.parent / 'requirements.txt', exclude=['thop'])

# Resume
if opt.resume and not check_wandb_resume(opt): # resume an interrupted run
Expand Down
2 changes: 1 addition & 1 deletion val.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def parse_opt():
def main(opt):
set_logging()
print(colorstr('val: ') + ', '.join(f'{k}={v}' for k, v in vars(opt).items()))
check_requirements(exclude=('tensorboard', 'thop'))
check_requirements(requirements=FILE.parent / 'requirements.txt', exclude=('tensorboard', 'thop'))

if opt.task in ('train', 'val', 'test'): # run normally
run(**vars(opt))
Expand Down

0 comments on commit 7a072f6

Please sign in to comment.