Since the notebook adds/delete configurations, the first half of the notebook (Step 3) almost always errors out.
The code in step 4 refers to a specific file generated on a specific date. This will also error out if anyone runs the notebook as is.
Solution
Reorder the cells, so that the changes result in the original configuration of foregrounds.json and backgrounds.json being restored OR use a temporary config in the example.
Have the generate_synthetic_dataset return the paths to the train_image and train_mask directories.
Problem
Solution
foregrounds.json
andbackgrounds.json
being restored OR use a temporary config in the example.generate_synthetic_dataset
return the paths to thetrain_image
andtrain_mask
directories.