Skip to content

Commit

Permalink
corrected linters
Browse files Browse the repository at this point in the history
  • Loading branch information
mansishr committed Oct 23, 2021
1 parent b1a4f8c commit 74e824f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Data transform functions."""

import numpy as np
from sklearn.metrics import roc_auc_score
from sklearn.metrics import balanced_accuracy_score
from sklearn.metrics import roc_auc_score
from sklearn.metrics import precision_recall_curve


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
import shutil

import ngtpy
import numpy as np
import matplotlib.pyplot as plt
from PIL import Image
import numpy as np
from data_transf import bal_acc_score
from PIL import Image
from data_transf import detection_auroc
from data_transf import segmentation_auroc
from sklearn.neighbors import KDTree
from skimage.segmentation import mark_boundaries
from sklearn.neighbors import KDTree
from utils import distribute_scores
from utils import makedirpath

Expand Down Expand Up @@ -127,7 +127,6 @@ def measure_emb_nn(emb_te, emb_tr, method='kdt', nn=1):
def save_maps(obj, maps, images, masks):
"""Save generated anomaly maps."""
mshape = maps.shape[0]
# mean = images.astype(np.float32).mean(axis = 0)
images = np.transpose(images, [0, 3, 2, 1])
images = (images.astype(np.float32) * 255)
pwd = os.getcwd()
Expand Down

0 comments on commit 74e824f

Please sign in to comment.