I am building a workspace to do data prep for an AI model training process. This will involve, in this order:
- Copying a number of image files of type A
- When copying completed, creating image label .txt files for these
- when all image copying and label creation complete, copying an exactly equal number of images of type B (from a larger pool than that of the A’s)
- creating the image label files for these
- Terminate process when counts match
1 and 2 are working fine. I’ve added a counter after stage 2, and I want stage 3 to keep running until the count of type B images copied = count of type A images copied.
How might I a) kick off 3. only when 2. is finished and b) stop 3. when count of B = count of A?