Skip to content

Commit

Permalink
fix torch name (PaddlePaddle#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
LielinJiang authored Aug 6, 2021
1 parent 099c595 commit b03e5b8
Show file tree
Hide file tree
Showing 2 changed files with 270 additions and 105 deletions.
4 changes: 2 additions & 2 deletions ppgan/metrics/lpips.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

lpips = True

VGG16_TORCHVISION_URL = 'https://paddlegan.bj.bcebos.com/models/vgg16_from_torch.pdparams'
VGG16_TORCHVISION_URL = 'https://paddlegan.bj.bcebos.com/models/vgg16_official.pdparams'
LINS_01_VGG_URL = 'https://paddlegan.bj.bcebos.com/models/lins_0.1_vgg.pdparams'


Expand Down Expand Up @@ -94,7 +94,7 @@ def accumulate(self):
results_list = []
paddle.distributed.all_gather(results_list, results)
self.results = paddle.concat(results_list).numpy()

if len(self.results) <= 0:
return 0.
return np.mean(self.results)
Expand Down
Loading

0 comments on commit b03e5b8

Please sign in to comment.