sachit-menon commited on
Commit
5aa14ac
1 Parent(s): 1241caa

Update sd_model.py

Browse files
Files changed (1) hide show
  1. sd_model.py +1 -1
sd_model.py CHANGED
@@ -79,7 +79,7 @@ class SDModel(ModelMixin, ConfigMixin, PushToHubMixin):
79
  def __init__(self, cfg: SDModelConfig = None) -> None:
80
  super().__init__()
81
 
82
- if cfg is not None: # workaround for default
83
  self.cfg = SDModelConfig()
84
  else:
85
  self.cfg = cfg
 
79
  def __init__(self, cfg: SDModelConfig = None) -> None:
80
  super().__init__()
81
 
82
+ if cfg is None: # workaround for default
83
  self.cfg = SDModelConfig()
84
  else:
85
  self.cfg = cfg