Skip to content

Commit

Permalink
Core bug fix: Fix "unsupported operand type(s)" error when loading so…
Browse files Browse the repository at this point in the history
…me GANs in Studio
  • Loading branch information
jamesdolezal committed Feb 29, 2024
1 parent 9d349bf commit 8c54ee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slideflow/studio/widgets/stylegan.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def load(self, pkl, ignore_errors=False) -> bool:
self.opt = json.load(f)
if 'slideflow_kwargs' in self.opt:
self.sf_opt = self.opt['slideflow_kwargs']
if 'resize' in self.sf_opt:
if 'resize' in self.sf_opt and self.sf_opt['resize']:
gan_px = self.sf_opt['resize']
else:
gan_px = self.sf_opt['tile_px']
Expand Down

0 comments on commit 8c54ee5

Please sign in to comment.