You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Several sources indicate that there should be three outputs from train_seg, i.e., model_path, train_losses and test_losses:
The definition for cellpose.train.train_seg describes the three outputs above. The output from this function indicates the same.
If calling cellpose for training from the cmd line, the associated code yields just the first element of the output. The GUI code is similar.
The test for train_seg obtains the path as the first element of the output.
That said, using Cellpose 3.1.0 to call cellpose.train.train_seg directly from the python cmd line with the three outputs specified yields the error:
Traceback (most recent call last):
File "", line 1, in
TypeError: cannot unpack non-iterable PosixPath object
Calling with just one output succeeds with path to the new model as the only output.
The API documentation for the function is ambiguous in that it says three outputs are returned but only describes the type for the path. The GitHub training documentation also indicates that three outputs are possible.
Please tell me if there's something I'm missing.
To Reproduce
I am calling cellpose.train.train_seg from the python cmd line to retrain the cyto3 Cellpose model:
Describe the bug
Several sources indicate that there should be three outputs from
train_seg
, i.e.,model_path
,train_losses
andtest_losses
:cellpose.train.train_seg
describes the three outputs above. The output from this function indicates the same.cellpose
for training from the cmd line, the associated code yields just the first element of the output. The GUI code is similar.train_seg
obtains the path as the first element of the output.That said, using Cellpose 3.1.0 to call
cellpose.train.train_seg
directly from the python cmd line with the three outputs specified yields the error:Calling with just one output succeeds with path to the new model as the only output.
The API documentation for the function is ambiguous in that it says three outputs are returned but only describes the type for the path. The GitHub training documentation also indicates that three outputs are possible.
Please tell me if there's something I'm missing.
To Reproduce
I am calling
cellpose.train.train_seg
from the python cmd line to retrain thecyto3
Cellpose model:Screenshots
The text was updated successfully, but these errors were encountered: