在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):imodpasteur/ANNA-PALM开源软件地址(OpenSource Url):https://github.com/imodpasteur/ANNA-PALM开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):ANNA-PALMAccelerating Single Molecule Localization Microscopy with Deep Learning. For more details, please checkout https://annapalm.pasteur.fr/ TRY ANNA-PALM WITH IMJOY.IO
MANUAL INSTALLATIONANNA-PALM has the following dependencies:
The recommended way to get python3.6 is to use ANACONDA, go the website: https://www.continuum.io/downloads , and download Anaconda(Python 3.6), then install it. The next step is to install the dependencies, mainly for tensorflow. Open a terminal, switch to the ANNA-PALM source code folder. git clone https://github.com/imodpasteur/ANNA-PALM
cd ANNA-PALM Create a virtual environment: conda create -n anna-palm python=3.6.8 -y
conda activate anna-palm For a quick test running on CPU or you don't have a cuda compatible GPU, run the following command: pip install -r requirements.txt Or if you have an tensorflow compatible GPU, and you want to use GPU for training, run the following command: conda install cudatoolkit=9.0 cudnn -y
pip install -r requirements-gpu.txt To test your installation, you can run the following code:
Once it starts to print You can also run the following command to see all the arguments.
ImageJ pluginBesides the python code, an ImageJ plugin for applying trained model can be downloaded from the Anet-ImageJ repository. USAGETrain with simulated imagesTwo types of simulated images are available, simulated microtubules and nuclear pores. You can train a new ANNA-PALM model with the following command:
Train with localization tables
python run_csv.py --workdir=./training_workdir_exp1 --phase=train With the above code, it will first render histogram images with a subset of the full frame of each csv file. The rendered images will be saved into When it's done, the training will start. It will produce some interim images in the Train with other type of imagesYou can also use ANNA-PALM to work with other type of images which are not localization table. In such case, follow these steps:
python run_img.py --workdir=./training_workdir_exp2 --phase=train Monitor your trainingIf you want to monitor the training progress, you should use the tensorboard interface which provides plots in the browser. In order to launch that, type the following command: cd training_workdir_exp1/__model__
tensorboard --logdir=./ Then you can open your browser, and go to http://localhost:6006 to see the loss and outputs etc. At the begining, you will only see the A-net graph. As the training goes, you will see a tab with loss curve etc. Pretrained modelsHere you can find 3 pretrained models: https://www.dropbox.com/sh/dc5l64n7apsgjdo/AABWH9PpfPHAzpbG8zwalIHZa?dl=0 Do prediction with trained modelSpecify the trained model directory with mkdir test_workdir_exp1
python run.py --workdir=./test_workdir_exp1 --load_dir=./training_simulated_exp1 --phase=test Start a training from a previously trained modeluse mkdir test_workdir_exp1
python run.py --workdir=./test_workdir_exp1 --load_dir=./training_simulated_exp1 --continue_train --phase=train Freeze trained modelsIn order to use your trained model in the Anet-ImageJ plugin, you need to first train a model, and then run the following script to get a frozen model:
Then you can copy the LicenseThere are two licenses for different part of the ANNA-PALM code: a CitationPlease cite our paper: FAQ
The other option is to reduce the size of the current neural network, you can add
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论