GANs for defect detection