File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
from keras import layers
13
13
14
14
from ml4h .defines import IMAGE_EXT
15
- from ml4h .metrics import KernelInceptionDistance
15
+ from ml4h .metrics import KernelInceptionDistance , InceptionScore
16
16
from ml4h .models .Block import Block
17
17
from ml4h .TensorMap import TensorMap
18
18
@@ -308,6 +308,7 @@ def compile(self, **kwargs):
308
308
self .mae_metric = tf .keras .metrics .MeanAbsoluteError (name = "mae" )
309
309
if self .tensor_map .axes () == 3 and self .inspect_model :
310
310
self .kid = KernelInceptionDistance (name = "kid" , input_shape = self .tensor_map .shape , kernel_image_size = 299 )
311
+ self .inception_score = InceptionScore (name = "is" , input_shape = self .tensor_map .shape , kernel_image_size = 299 )
311
312
312
313
@property
313
314
def metrics (self ):
@@ -666,6 +667,7 @@ def compile(self, **kwargs):
666
667
self .supervised_loss_tracker = keras .metrics .Mean (name = "supervised_loss" )
667
668
if self .input_map .axes () == 3 and self .inspect_model :
668
669
self .kid = KernelInceptionDistance (name = "kid" , input_shape = self .input_map .shape , kernel_image_size = 299 )
670
+ self .inception_score = InceptionScore (name = "is" , input_shape = self .input_map .shape , kernel_image_size = 299 )
669
671
670
672
@property
671
673
def metrics (self ):
You can’t perform that action at this time.
0 commit comments