Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway authored May 25, 2018
1 parent c0a4810 commit 387f659
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ For more details, please checkout the [ANNA-PALM project website](https://annapa
Sample images can be downloaded from here: [STORM image 1000 frames (used as figure 4 in the paper), cropped to 512x512](./img/figure4c-PALM-1000frames-512crop.tif), [full size version (2560x2560)](./img/figure4c-PALM-1000frames.tif), more sample images can be exported from [https://annapalm.pasteur.fr](https://annapalm.pasteur.fr/#/repository).

## Use your own model
A set of pre-trained models is provided, a shortcut to download these models is to use the `download` button in the plugin. You can check directly in a folder named `anet-models` in your ImageJ folder (next to the `plugin` folder). You can also download it manually from [here](https://github.com/imodpasteur/Anet-ImageJ/releases/download/0.2.2/models_v0.1.zip).
A set of pre-trained models are provided, a shortcut to download these models is to use the `download` button in the plugin. You can check directly in a folder named `anet-models` in your ImageJ folder (next to the `plugin` folder). You can also download a zip containing the models manually from [here](https://github.com/imodpasteur/Anet-ImageJ/releases/download/0.2.2/models_v0.1.zip).

![model folder structure](./img/model-folder-structure.png)

Model files for the plugin consist of two files: a `tensorflow_model.pb` file for the frozen model, and a `config.json` file for the configuration which describe the GUI, input and output of the model.

You can create a new folder (e.g. named "mito_model_v2.3") inside the `anet-models` folder in ImageJ. Then place your own model file(`tensorflow_model.pb`) generated by the `freeze.py` file in [ANNA-PALM](https://github.com/imodpasteur/ANNA-PALM). To generate the GUI, you need to manually add a `config.json` file next to your model file `tensorflow_model.pb`. To simplify the process, you can just copy an existing `config.json` file provided by us. In case you have a different input image size, you will need to replace all the `512` into your own size in `config.json`.
You can create a new folder (e.g. named "mito_model_v2.3") inside the `anet-models` folder in ImageJ. Then place your own model file(`tensorflow_model.pb`) generated with the `freeze.py` script in [ANNA-PALM](https://github.com/imodpasteur/ANNA-PALM). To define the GUI and describe the model, you need to manually add a `config.json` file next to your model file `tensorflow_model.pb`. To simplify the process, you can just copy an existing `config.json` file provided by us. In case you have a different input image size, you will need to replace all the `512` into your own size in `config.json`.

Once you done that, run `Setup A-net`, and you should be able to see your model shown in the model list. Then select it and process images with your own model.
Once you're done, run `Setup A-net` from the menu and you should be able to see your model shown in the model list. Then select it and process images with your own model.

# Citation
Please cite our paper: `Ouyang et al., Nat. Biotechnol. 2018, doi:10.1038/nbt.4106`

0 comments on commit 387f659

Please sign in to comment.