From b25ca9b3840ccc9a2f944f1849dec0775b6f812c Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 27 Aug 2020 15:04:03 +0300 Subject: [PATCH] Fix double-escaped design when connecting OutputModel --- trains/model.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/trains/model.py b/trains/model.py index d17f72d4..902b2ee6 100644 --- a/trains/model.py +++ b/trains/model.py @@ -967,9 +967,12 @@ class OutputModel(BaseModel): elif self._floating_data is not None: # we copy configuration / labels if they exist, obviously someone wants them as the output base model - if _Model._unwrap_design(self._floating_data.design): + design = _Model._unwrap_design(self._floating_data.design) + if design: if not task._get_model_config_text(): - task._set_model_config(config_text=self._floating_data.design) + if not Session.check_min_api_version('2.9'): + design = self._floating_data.design + task._set_model_config(config_text=design) else: self._floating_data.design = _Model._wrap_design(self._task._get_model_config_text())