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

ValueError: Only 2D images supported. Got 3-dim image #7

Open
danimeo opened this issue Apr 11, 2023 · 3 comments
Open

ValueError: Only 2D images supported. Got 3-dim image #7

danimeo opened this issue Apr 11, 2023 · 3 comments

Comments

@danimeo
Copy link

danimeo commented Apr 11, 2023

Traceback (most recent call last):
File "C:\conda\envs\yolov5\lib\runpy.py", line 194, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\conda\envs\yolov5\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\conda\envs\yolov5\Scripts\napari.exe_main
.py", line 7, in
File "C:\conda\envs\yolov5\lib\site-packages\napari_main
.py", line 561, in main
run()
File "C:\conda\envs\yolov5\lib\site-packages\napari_main
.py", line 370, in _run
first_dock_widget = viewer.window.add_plugin_dock_widget(
File "C:\conda\envs\yolov5\lib\site-packages\napari_qt\qt_main_window.py", line 717, in add_plugin_dock_widget
wdg = _instantiate_dock_widget(
File "C:\conda\envs\yolov5\lib\site-packages\napari_qt\qt_main_window.py", line 1365, in _instantiate_dock_widget
return wdg_cls(**kwargs)
File "C:\conda\envs\yolov5\lib\site-packages\napari_segment_anything_widget.py", line 91, in init
self._model_type_widget.changed.emit(model_type)
File "src\psygnal_signal.py", line 927, in emit
File "src\psygnal_signal.py", line 974, in _run_emit_loop
psygnal._exceptions.EmitLoopError: calling <psygnal._weak_callback._WeakMethod object at 0x000001FA4574BB40> with args=('default',) caused ValueError: Only 2D images supported. Got 3-dim image..

Exited as it showed. Why is 3-dim image not supported?

@JoOkuma
Copy link
Member

JoOkuma commented Apr 19, 2023

Hi @beenoe , we haven't extended the project to 3D, so it only works with grayscale or RGB 2D images for now.

@cudmore
Copy link

cudmore commented Sep 7, 2023

This is a got topic! Any chance we will have segment anything for 3D microscopy images? Like image stacks?

@JoOkuma
Copy link
Member

JoOkuma commented Sep 7, 2023

@cudmore, micro-sam supports 3D images, you should give it a try.

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

3 participants