Skip to content
Snippets Groups Projects
Unverified Commit 52f92acc authored by mattminder's avatar mattminder Committed by GitHub
Browse files

Merge pull request #10 from lpbsscientist/dev

Dev
parents 4e7266aa 1dee79e1
No related branches found
No related tags found
No related merge requests found
......@@ -321,6 +321,11 @@ class PlotCanvas(FigureCanvas):
self.nextmask.set_data((self.nextplotmask % 10 +1 )*(self.nextplotmask != 0))
self.ax3.draw_artist(self.nextmask)
else:
self.currmask.set_data(np.zeros(self.plotmask.shape))
self.previousmask.set_data(np.zeros(self.plotmask.shape))
self.nextmask.set_data(np.zeros(self.plotmask.shape))
# Plot cell numbers
self.ShowCellNumbers()
......@@ -399,7 +404,8 @@ class PlotCanvas(FigureCanvas):
if xtemp:
for i in range(0,len(xtemp)):
ann = self.ax.annotate(str(int(vals[i])), (xtemp[i], ytemp[i]))
ann = self.ax.annotate(str(int(vals[i])), (xtemp[i], ytemp[i]),
ha='center', va='center')
self.ann_list.append(ann)
self.draw()
......@@ -422,7 +428,8 @@ class PlotCanvas(FigureCanvas):
if xtemp:
for i in range(0,len(xtemp)):
ann = self.ax2.annotate(str(vals[i]), (xtemp[i], ytemp[i]))
ann = self.ax2.annotate(str(vals[i]), (xtemp[i], ytemp[i]),
ha='center', va='center')
self.ann_list_prev.append(ann)
self.draw()
......@@ -443,7 +450,8 @@ class PlotCanvas(FigureCanvas):
if xtemp:
for i in range(0,len(xtemp)):
ann = self.ax3.annotate(str(vals[i]), (xtemp[i], ytemp[i]))
ann = self.ax3.annotate(str(vals[i]), (xtemp[i], ytemp[i]),
ha='center', va='center')
self.ann_list_next.append(ann)
self.draw()
......
......@@ -2,17 +2,14 @@
This is the user manual for the graphical interface for yeast segmentation using a state of the art convolutional neural network with U-Net architecture. As for now, the convolutional neural network is trained for phase contrast images. Compatability with brightfield images will come soon. You can find the training set with the annotated images here: https://www.epfl.ch/labs/lpbs/data-and-software/.
Want to try out the neural network first? Check out our online segmentation tool at https://lpbs-nn.epfl.ch/.
## Installation
1. Clone this repository.
2. Download the weights of the neural network under the following link: https://drive.google.com/file/d/1UTivmx_aEMpeGdOkCZO1CS9mcdJ3zmw2/edit. Put it in the folder `/unet`.
3. Make sure that you have python 3, as well as all packages listed in the packages.txt folder, installed. Note that Tensorflow v2 is supported, but as the program was developed with Tensorflow v1.9.0, we cannot promise that it will run bug free. Also, it is imperative to install openpyxl 3.0.1, as a bug in openpyxl 3.0.2 prevents saving to an excel file.
4. Run the program from your command line with `python GUI_main.py`
## User Guide
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment