diff --git a/pysegcnn/core/trainer.py b/pysegcnn/core/trainer.py index 0cf2da50d540749615e7147bae5fd5bf158ad8e3..be12dd3142bf7bc717d7246ffd3debc73fcece86 100644 --- a/pysegcnn/core/trainer.py +++ b/pysegcnn/core/trainer.py @@ -2526,8 +2526,8 @@ class NetworkInference(BaseConfig): output[batch] = {'x': inputs, 'y': labels, 'y_pred': prdctn} # filename for the plot of the current batch - batch_name = '_'.join(model.state_file.stem, - '{}_{}.pt'.format(self.trg_ds.name, batch)) + batch_name = '_'.join([model.state_file.stem, + '{}_{}.pt'.format(self.trg_ds.name, batch)]) # check if the current batch name exceeds the Windows limit of # 255 characters