Using the latest version of tao 4.0.1, I run the tao training in the background, i.e. from terminal
tao detectnet_v2 train -e $SPECS_DIR/detectnet_v2_retrain_resnet18_kitti.txt \
-r $USER_EXPERIMENT_DIR/experiment_dir_retrain \
-k $KEY \
-n resnet18_detector \
--gpus 2 &
Normally when this runs in the foreground, the container is stopped after execution of the training script.
When running this in the background, the container does not stop after execution, and docker stop <ID>
just hangs.
How do I stop the container? Ideally, I would also like to be able to check for successful completion before I stop.
Note: I cannot use fg
to bring the process to the foreground as the process takes too long to be able to use the same shell (hence why I am running in the background in the first place).