-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unexpected keyword argument 'net_avg' error when loading cellpose model #481
Comments
Hi @ptlzon, I see that you have Cell-ACDC version To fix this, I just released a new version To upgrade activate the Best, |
Hi @ElpadoCan The cellacdc v1.4.21 fixed the loading of SAM, but the error of Cellpose above still persisted. Log20-02-2024, 08:23:58 - cellacdc-logger-acdc_gui - INFO:
------------------------
Initializing GUI v1.4.21
------------------------
20-02-2024, 08:23:58 - cellacdc-logger-acdc_gui - INFO:
------------------------
Initiliazing profilers...
------------------------
20-02-2024, 08:23:58 - cellacdc-logger-acdc_gui - INFO:
------------------------
GUI ready.
------------------------
20-02-2024, 08:24:03 - cellacdc-logger-acdc_gui - INFO:
------------------------
Asking to select a folder path...
------------------------
20-02-2024, 08:24:05 - cellacdc-logger-acdc_gui - INFO:
------------------------
Loading from D:/tmp/grayscale/20240220_082140_acdc/Images
------------------------
20-02-2024, 08:24:05 - cellacdc-logger-acdc_gui - INFO:
------------------------
Using .tif file (D:/tmp/grayscale/20240220_082140_acdc/Images\9Z15003-1_crop.tif)...
------------------------
20-02-2024, 08:24:05 - cellacdc-logger-acdc_gui - INFO:
------------------------
Reading channel metadata...
------------------------
20-02-2024, 08:24:05 - cellacdc-logger-acdc_gui - INFO:
------------------------
Lazy loader paused.
------------------------
20-02-2024, 08:24:05 - cellacdc-logger-acdc_gui - INFO:
------------------------
Closing lazy loader...
------------------------
20-02-2024, 08:24:06 - cellacdc-logger-acdc_gui - INFO:
------------------------
Segmentation filename: D:/tmp/grayscale/20240220_082140_acdc/Images\9Z15003-1_crop_segm.npz
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Loading 20240220_082140_acdc\Images\9Z15003-1_crop.tif...
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Loaded paths:
Segmentation file name: 9Z15003-1_crop_segm.npz
ACDC output file name 9Z15003-1_crop__acdc_output.csv
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Full dataset shape = Not Loaded
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Loaded dataset shape = (1, 424, 567)
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Number of frames = 1
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Number of z-slices per frame = 1
------------------------
20-02-2024, 08:24:08 - cellacdc-logger-acdc_gui - INFO:
------------------------
Creating graphical items...
------------------------
20-02-2024, 08:24:09 - cellacdc-logger-acdc_gui - INFO:
------------------------
Initializing measurements...
------------------------
20-02-2024, 08:24:09 - cellacdc-logger-acdc_gui - INFO:
------------------------
Setting GUI mode to "Snapshots"...
------------------------
20-02-2024, 08:24:09 - cellacdc-logger-acdc_gui - INFO:
------------------------
20240220_082140_acdc || Basename: 9Z15003-1_crop || Segmented channel: || Segmentation file name: _segm.npz
------------------------
20-02-2024, 08:24:09 - cellacdc-logger-acdc_gui - INFO:
------------------------
Autosaving worker started.
------------------------
20-02-2024, 08:24:15 - cellacdc-logger-acdc_gui - INFO:
------------------------
Importing cellpose...
------------------------
20-02-2024, 08:24:32 - cellacdc-logger-acdc_gui - ERROR:
------------------------
Traceback (most recent call last):
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\myutils.py", line 2593, in init_segm_model
model = acdcSegment.Model(**init_kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\models\cellpose\acdcSegment.py", line 35, in __init__
self.model = models.CellposeModel(
TypeError: __init__() got an unexpected keyword argument 'net_avg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\__init__.py", line 372, in inner_function
result = func(self, *args, **kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\gui.py", line 13807, in repeatSegm
model = myutils.init_segm_model(acdcSegment, posData, win.init_kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\myutils.py", line 2595, in init_segm_model
model = acdcSegment.Model(segm_data, **init_kwargs)
TypeError: __init__() got multiple values for argument 'model_type'
------------------------
Traceback (most recent call last):
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\myutils.py", line 2593, in init_segm_model
model = acdcSegment.Model(**init_kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\models\cellpose\acdcSegment.py", line 35, in __init__
self.model = models.CellposeModel(
TypeError: __init__() got an unexpected keyword argument 'net_avg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\__init__.py", line 372, in inner_function
result = func(self, *args, **kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\gui.py", line 13807, in repeatSegm
model = myutils.init_segm_model(acdcSegment, posData, win.init_kwargs)
File "D:\miniconda3_windows\envs\acdc\lib\site-packages\cellacdc\myutils.py", line 2595, in init_segm_model
model = acdcSegment.Model(segm_data, **init_kwargs)
TypeError: __init__() got multiple values for argument 'model_type'
20-02-2024, 08:24:32 - cellacdc-logger-acdc_gui - INFO:
------------------------
====================================
WARNING: Cell-ACDC is in error state. Please, restart.
====================================
------------------------
20-02-2024, 08:25:01 - cellacdc-logger-acdc_gui - INFO:
------------------------
Closing autosaving worker...
------------------------
20-02-2024, 08:25:01 - cellacdc-logger-acdc_gui - INFO:
------------------------
Autosaving worker closed.
------------------------
20-02-2024, 08:25:01 - cellacdc-logger-acdc_gui - INFO:
------------------------
Clearing memory...
------------------------
20-02-2024, 08:25:01 - cellacdc-logger-acdc_gui - INFO:
------------------------
Closing GUI logger...
------------------------ Version info(acdc) C:\Users\Z036650>python -c "import sys; print(sys.version); import platform; print(platform.platform()); import cellacdc; print(f'Cell-ACDC version: {cellacdc.__version__}')"
3.9.18 | packaged by conda-forge | (main, Dec 23 2023, 16:29:04) [MSC v.1929 64 bit (AMD64)]
Windows-10-10.0.19045-SP0
Cell-ACDC version: 1.4.21 |
Hi @ElpadoCan Thanks for the amazingly quick fix. I will reply about SAM input points in that thread. |
Nice, good to hear! |
Description:
after settings parameters in cellpose parameters window, error appeared.
Way to reproduce:
No response
(Optional) Link to data to reproduce error:
No response
Terminal output:
Version information:
The text was updated successfully, but these errors were encountered: