Fixed up canon deduping. Made it possible to resume training after upload