Skip to content
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

Refine does not work #124

Open
Chris-Cooney opened this issue Dec 17, 2023 · 2 comments
Open

Refine does not work #124

Chris-Cooney opened this issue Dec 17, 2023 · 2 comments

Comments

@Chris-Cooney
Copy link

Chris-Cooney commented Dec 17, 2023

I have recently installed taglab on and have everything function in a python 3.9 environment in GPU (CUDA toolkit 11.6) on a Windows 11 system. All features in taglab appear to be running except the refine tool, i outline a feature, hit R or select refine in the right-click menu and nothing happens. This is the output message in the terminal window:

gaussian() got an unexpected keyword argument 'multichannel'
C:\TagLab-main\source\QtTablePanel.py:239: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos]
if row[0] == newblob.id:

Thanks,
Chris

@Chris-Cooney
Copy link
Author

Just to clarify, the output in the terminal is similar to most tools/functions that have assigned keys, but they work (e.g. dilate, assign, merge etc.) whereas refine does not

@Jordan-Pierce
Copy link
Contributor

Jordan-Pierce commented Jan 9, 2024

@Chris-Cooney There's a line (44) in Coraline.py that uses skimage's gaussian function; it's currently using a parameter called multichannel. Because you are receiving that error, it means that you're using a newer version of skimage than what TagLab was originally using when written, and that parameter is now depreciated.

To be able to use Refine without downgrading your scikit image version, just remove that parameter value:

# Should be this
img = gaussian(img, sigma = 1.5)

This is only a hot fix; alternatively, it's probably better to use the version of skimage that TagLab was written with, that way you can ensure full functionality. Otherwise, TagLab will need to (potentially) update any functions that have been changed since new versions of skimage has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants