Skip to content

Commit

Permalink
add import to solve check custom model (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
fefossa authored Dec 3, 2024
1 parent ff071a4 commit 088d8ff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions active_plugins/runcellpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ def visible_settings(self):

def validate_module(self, pipeline):
"""If using custom model, validate the model file opens and works"""
from cellpose import models
if self.mode.value == "custom":
model_file = self.model_file_name.value
model_directory = self.model_directory.get_absolute_path()
Expand Down

0 comments on commit 088d8ff

Please sign in to comment.