Skip to content

Commit

Permalink
Merge pull request #706 from mrariden/gpu_check_flow_masks
Browse files Browse the repository at this point in the history
make GPU check fix
  • Loading branch information
carsen-stringer committed May 14, 2023
2 parents b709064 + de61b8b commit ca88d6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cellpose/dynamics.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def remove_bad_flow_masks(masks, flows, threshold=0.4, use_gpu=False, device=Non
size [Ly x Lx] or [Lz x Ly x Lx]
"""
if masks.size > 10000*10000:
if masks.size > 10000*10000 and use_gpu:

major_version, minor_version, _ = torch.__version__.split(".")

Expand Down

0 comments on commit ca88d6a

Please sign in to comment.