Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Zhang authored and Richard Zhang committed Sep 28, 2020
2 parents 43da2a5 + 5ec1e75 commit af38ce5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lpips/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
from scipy.ndimage import zoom
from tqdm import tqdm
import lpips
import os


class Trainer():
def name(self):
Expand Down Expand Up @@ -62,7 +64,7 @@ def initialize(self, model='lpips', net='alex', colorspace='Lab', pnet_rand=Fals

if self.is_train: # training mode
# extra network on top to go from distances (d0,d1) => predicted human judgment (h*)
self.rankLoss = networks.BCERankingLoss()
self.rankLoss = lpips.BCERankingLoss()
self.parameters += list(self.rankLoss.net.parameters())
self.lr = lr
self.old_lr = lr
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ scikit-image>=0.13.0
opencv>=2.4.11
matplotlib>=1.5.1
tqdm>=4.28.1
jupyter
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
long_description = fh.read()
setuptools.setup(
name='lpips',
version='0.1',
version='0.1.2',
author="Richard Zhang",
author_email="[email protected]",
description="LPIPS Similarity metric",
Expand Down

0 comments on commit af38ce5

Please sign in to comment.