Skip to content

Commit

Permalink
Revert "Expose OpenVINO batch_size similarly to TensorRT" (ultralyt…
Browse files Browse the repository at this point in the history
…ics#8510)

Revert "Expose OpenVINO `batch_size` similarly to TensorRT (ultralytics#8437)"

This reverts commit da2ee39.
  • Loading branch information
glenn-jocher authored and Shivvrat committed Jul 12, 2022
1 parent 0cbcab9 commit ad26981
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,6 @@ def __init__(self, weights='yolov5s.pt', device=torch.device('cpu'), dnn=False,
if not Path(w).is_file(): # if not *.xml
w = next(Path(w).glob('*.xml')) # get *.xml file from *_openvino_model dir
network = ie.read_model(model=w, weights=Path(w).with_suffix('.bin'))
batch_size = network.batch_size
executable_network = ie.compile_model(network, device_name="CPU") # device_name="MYRIAD" for Intel NCS2
output_layer = next(iter(executable_network.outputs))
meta = Path(w).with_suffix('.yaml')
Expand Down

0 comments on commit ad26981

Please sign in to comment.