clean up train_object.py