From 45e6cb2aa16db72844538fcbe462969bd51d72b8 Mon Sep 17 00:00:00 2001 From: mattminder <myfiles@Mattus-MacBook-Pro.local> Date: Mon, 18 May 2020 18:02:16 +0200 Subject: [PATCH] center align cells --- misc/PlotCanvas.py | 9 ++++++--- readme.md | 9 +++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/misc/PlotCanvas.py b/misc/PlotCanvas.py index 0c4b1c6..52eec48 100644 --- a/misc/PlotCanvas.py +++ b/misc/PlotCanvas.py @@ -399,7 +399,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 +423,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 +445,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() diff --git a/readme.md b/readme.md index 23739c5..d9100c6 100644 --- a/readme.md +++ b/readme.md @@ -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 -- GitLab