Skip to content

Commit

Permalink
fixing bug with diameter return
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed May 2, 2021
1 parent 8b52f24 commit a7a1606
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cellpose/models.py
Expand Up @@ -243,6 +243,8 @@ def eval(self, x, batch_size=8, channels=None, channel_axis=None, z_axis=None,
reason = 'does not work on non-2D images'
models_logger.warning(f'could not estimate diameter, {reason}')
diams = self.diam_mean
else:
diams = diameter

tic = time.time()
masks, flows, styles = self.cp.eval(x,
Expand Down

0 comments on commit a7a1606

Please sign in to comment.