              except ValueError as err:
                  if str(err).lower().startswith("i/o operation on closed file"):
                      break
                  raise
              if output == "" and self.process.poll() is not None:
                  break
              if output:
                  if self.command != "train" and self.capture_tqdm(output):
                      continue
                  if self.command == "train" and output.startswith("Reading training images"):
 
</s> remove                 if self.command != "train" and self.capture_tqdm(output):
 </s> add                 if self._command != "train" and self._capture_tqdm(output): </s> remove             if output == "" and self.process.poll() is not None:
 </s> add             if output == "" and self._process.poll() is not None: </s> remove                 output = self.process.stderr.readline()
 </s> add                 buff = self._process.stderr
                assert buff is not None
                output: str = buff.readline() </s> remove                 if self.command == "train" and output.startswith("Reading training images"):
 </s> add                 if self._command == "train" and output.startswith("Reading training images"): </s> remove                 output = self.process.stdout.readline()
 </s> add                 buff = self._process.stdout
                assert buff is not None
                output: str = buff.readline()
            if output == "" and self._process.poll() is not None:
              except ValueError as err:
                  if str(err).lower().startswith("i/o operation on closed file"):
                      break
                  raise
            if output == "" and self._process.poll() is not None:
                  break
              if output:
                  if self.command != "train" and self.capture_tqdm(output):
                      continue
                  if self.command == "train" and output.startswith("Reading training images"):
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py