Dnau15 commited on
Commit
a6c2b6e
·
1 Parent(s): 7939ba0

fix imports

Browse files
saicinpainting/evaluation/losses/base_loss.py CHANGED
@@ -2,8 +2,6 @@ import logging
2
  from abc import abstractmethod, ABC
3
 
4
  import numpy as np
5
- import sklearn
6
- import sklearn.svm
7
  import torch
8
  import torch.nn as nn
9
  import torch.nn.functional as F
 
2
  from abc import abstractmethod, ABC
3
 
4
  import numpy as np
 
 
5
  import torch
6
  import torch.nn as nn
7
  import torch.nn.functional as F
saicinpainting/evaluation/losses/lpips.py CHANGED
@@ -56,7 +56,7 @@ def psnr(p0, p1, peak=255.):
56
 
57
 
58
  def dssim(p0, p1, range=255.):
59
- return (1 - compare_ssim(p0, p1, data_range=range, multichannel=True)) / 2.
60
 
61
 
62
  def rgb2lab(in_img, mean_cent=False):
 
56
 
57
 
58
  def dssim(p0, p1, range=255.):
59
+ return (1 - structural_similarity(p0, p1, data_range=range, multichannel=True)) / 2.
60
 
61
 
62
  def rgb2lab(in_img, mean_cent=False):