shameempk / fast_seg Goto Github PK
View Code? Open in Web Editor NEWFast Interactive Image Segmentation using Graph-cut.
License: Other
Fast Interactive Image Segmentation using Graph-cut.
License: Other
Everytime I run the program with python fast_seg.py -i lenna.png
there is a prompt and I mark the bg and fg and then press esc
. After that it throws the following error everytime irrespecctive of how i mark. I have also tried it with other images.
File "fast_seg.py", line 389, in <module>
main()
File "fast_seg.py", line 337, in main
G = gen_graph(I_lab, SP_list, hist_ob, hist_bg)
File "fast_seg.py", line 230, in gen_graph
pr_bg = int(hist_bg[l_i, a_i, b_i]) / hist_bg_sum
ZeroDivisionError: division by zero
Cold you plese help me out as I am also conducting research in this topic and woud love to use this code and cite this. Let me know if I'm doing something wrong or maybe there's some mistake in the algorithm.
Hello, thanks of your contribution about such good work.
I am using graph neural network to parcel brain region, however the result is not good, I want to use graph cut as post process.
The inputs of my current model are: adjacency matrix (10242, 10242), feature matrix (10242, 6), label matrix (10242). The output is the probability y that each node belongs to a label, and its dimension is (10242, 36)
I want to use graph cut to update y for better performance.
I have a few questions about your code:
First, most of graph cut is only for two categories. Can you do multi label tasks?
Second, if I want to do post-processing, what should my input be?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.