Weakly Supervised Defect Detection