Skip to content

Commit

Permalink
fixing bug #871
Browse files Browse the repository at this point in the history
  • Loading branch information
carsen-stringer committed Feb 22, 2024
1 parent f744fe0 commit b138040
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion cellpose/gui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ def model_choose(self, custom=False):
if custom:
model_name = self.ModelChooseC.currentText()
else:
model_name = self.ModelChooseB.currentText()
model_name = self.net_names[index - 1]
print(f"GUI_INFO: selected model {model_name}, loading now")
self.initialize_model(model_name=model_name, custom=custom)
self.diameter = self.model.diam_labels
Expand Down
1 change: 0 additions & 1 deletion cellpose/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
"invert": False
}


def model_path(model_type, model_index=0):
torch_str = "torch"
if model_type == "cyto" or model_type == "cyto2" or model_type == "nuclei":
Expand Down

0 comments on commit b138040

Please sign in to comment.