Skip to content

Commit

Permalink
Revert "Use onnxruntime-gpu"
Browse files Browse the repository at this point in the history
This reverts commit 41d650f.
  • Loading branch information
maxsitt committed Nov 23, 2023
1 parent 5605068 commit 44ff3b9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classify/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def parse_opt():


def main(opt):
check_requirements(ROOT / 'requirements.txt', exclude=('tensorboard', 'thop', 'onnxruntime'))
check_requirements(ROOT / 'requirements.txt', exclude=('tensorboard', 'thop'))
run(**vars(opt))


Expand Down
2 changes: 1 addition & 1 deletion classify/val.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def parse_opt():


def main(opt):
check_requirements(ROOT / 'requirements.txt', exclude=('tensorboard', 'thop', 'onnxruntime'))
check_requirements(ROOT / 'requirements.txt', exclude=('tensorboard', 'thop'))
run(**vars(opt))


Expand Down
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def export_onnx(model, im, file, opset, dynamic, simplify, prefix=colorstr('ONNX
if simplify:
try:
cuda = torch.cuda.is_available()
check_requirements(('onnxruntime-gpu', 'onnx-simplifier>=0.4.1'))
check_requirements(('onnxruntime-gpu' if cuda else 'onnxruntime', 'onnx-simplifier>=0.4.1'))
import onnxsim

LOGGER.info(f'{prefix} simplifying with onnx-simplifier {onnxsim.__version__}...')
Expand Down

0 comments on commit 44ff3b9

Please sign in to comment.