HiLab-git / MIDeepSeg

[MedIA2021]MIDeepSeg: Minimally Interactive Segmentation of Unseen Objects from Medical Images Using Deep Learning
MIT License
123 stars 27 forks source link

AttributeError: module 'maxflow' has no attribute 'maxflow2d' #3

Closed Z-TIANQI closed 3 years ago

Z-TIANQI commented 3 years ago

Hi, Thank you for your time. When I ran the code, the UI is appeared and there is no problem setting the seed point. but when I clicked the button of segment, an error occurred:

Traceback (most recent call last): File "G:\label_sys\MIDeepSeg-master\MIDeepSeg-master\mideepseg\gui.py", line 191, in on_segment self.graph_maker.extreme_segmentation() File "G:\label_sys\MIDeepSeg-master\MIDeepSeg-master\mideepseg\controler.py", line 182, in extreme_segmentation fix_predict = maxflow.maxflow2d(zoomed_img.astype( AttributeError: module 'maxflow' has no attribute 'maxflow2d'

Is there any module that can replace maxflow?Looking forward to your reply, Thank you very much!

Z-TIANQI commented 3 years ago

And the version of maxflow is 0.0.1. It is same as your required.

Luoxd1996 commented 3 years ago

Hi, I checked the code and requirements of this project. The maxflow was provided by SimpleCRF, you just need to install the SimpleCRF. Best, Xiangde.

Z-TIANQI commented 3 years ago

Thanks, it works!

Luoxd1996 commented 3 years ago

You are welcome, any questions, please feel free to contact me. Best, Xiangde.