cqylunlun / GLASS

[ECCV 2024] Official Implementation and Dataset Release for <A Unified Anomaly Synthesis Strategy with Gradient Ascent for Industrial Anomaly Detection and Localization>
MIT License
130 stars 17 forks source link

glass.py 是不是应该 r= r_f #7

Closed Xantastic closed 2 months ago

Xantastic commented 2 months ago

395 r_f = torch.tensor([torch.quantile(dist_f, q=self.radius)]).to(self.device) 396 proj_feats = c_f_points if self.svd == 1 else true_points 397 r = r_t if self.svd == 1 else 1