                  self.inputs = state.get("inputs", dict())
                  self.config = state.get("config", dict())
                  logger.debug("Loaded state: %s", state)
                  self.replace_config(config_changeable_items)
          except IOError as err:
              logger.warning("No existing state file found. Generating.")
              logger.debug("IOError: %s", str(err))
          except JSONDecodeError as err:
 
</s> remove         coverage = self.get_coverage(image)
 </s> add         coverage = self.get_coverage(image) // 2 </s> remove                 face_func = PenalizedLoss(mask[0], loss_func)
                logger.debug("final face loss: %s", face_func)
                loss_funcs.append(face_func)
                if not predict and side.lower() == "a":
                    logger.verbose("Penalizing mask for Loss")
 </s> add                 loss_funcs.append(PenalizedLoss(mask[0], loss_dict[img_loss_config]))
                logger.debug("final face loss: %s", img_loss_config) </s> remove             ksize = int(ksize * self.multipass_factor)
 </s> add             ksize = round(ksize * self.multipass_factor) </s> remove                 mask_func = losses.mean_squared_error
                loss_funcs.append(mask_func)
                logger.debug("mask loss: %s", mask_func)
 </s> add                 loss_funcs.append(loss_dict[mask_loss_config])
                logger.debug("mask loss: %s", mask_loss_config) </s> remove         dummy = np.zeros((20, 20, 3)).astype("uint8")
 </s> add         dummy = np.zeros((20, 20, 3), dtype="uint8")
                self.update_legacy_config()
                  self.inputs = state.get("inputs", dict())
                  self.config = state.get("config", dict())
                  logger.debug("Loaded state: %s", state)
                self.update_legacy_config()
                  self.replace_config(config_changeable_items)
          except IOError as err:
              logger.warning("No existing state file found. Generating.")
              logger.debug("IOError: %s", str(err))
          except JSONDecodeError as err:
keep keep add keep keep keep keep keep
 documentation, pep8, style, clarity updates  - Prep for Segmentation (#812)

* documentation, pep8, style, clarity updates

* Update cli.py

* Update _config.py

remove extra mask and coverage

mask type as dropdown

* Update training_data.py

move coverage / LR to global
cut down on loss description

style change
losses working in PR

* simpler logging

* legacy update 
plugins/train/model/_base.py