Imported from https://github.com/Andysis/co-trained-CADx