Created
December 19, 2022 05:39
-
-
Save jogam5/11cc37b2d87b1af11428761ea4ccbfaf to your computer and use it in GitHub Desktop.
subprocesses python library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
THIS WORKS! | |
import subprocess | |
cmd = ['tao', 'yolo_v4_tiny', 'export', '-m', | |
'/workspace/tao-experiments/yolo_v4_tiny/experiment_dir_retrain/weights/yolov4_cspdarknet_tiny_epoch_005.tlt', | |
'-k', 'YOUR_KEY', | |
'-e', '/workspace/tao-experiments/yolo_v4_tiny/specs/yolo_v4_tiny_retrain_kitti.txt', | |
'-o', '/workspace/tao-experiments/yolo_v4_tiny/export/yolov4_cspdarknet_tiny_epoch_005.etlt', | |
'--data_type', 'fp32', | |
'--gen_ds_config'] | |
output = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)#.stdout | |
print(output) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment