mlexchange / mlex_dlsia_segmentation_prototype

Other
3 stars 3 forks source link

mlex_dlsia_segmentation_prototype

This pipeline is developed using DLSIA Package to run segmentation tasks for the High_Res Segmentation Application.

The primary goal is to make this compatible with the updated segmentation application as a paperation for the incoming Diamond Beamtime in March 2024.

Feature Highlights

To Test

1. Set Up Local Tiled Server

2. Request Public Tiled URI for Data and Masks

3. Installation

pip install -r requirements.txt

First, remove or comment out .dvc* and dvc* from .gitignore file.

Then run in the following order:

git init

dvc init

git config --global [user.name](http://user.name/) "John Doe"

git config --global user.email "johndoe@email.com"

Then add back dvc related files in .gitignore file.

Note: this step is only for dvc related repo and directory initialization, it will not enable auto-commits back to the GitHub repo or dvc repo. This feature will be discussed and potentially introduced in the future.

4. Parameter Initialization

5. Model Training

make train_<your model name>

For example, if you pre-filled values for a tunet yaml file:

make train_tunet

For exact commands to run the source code, please refer to the content of the Makefile.

6. Running Inference

make segment_tunet
make segment_tunet

Note: depending on the data size, this may take for a while.

Copyright

MLExchange Copyright (c) 2024, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

If you have questions about your rights to use or distribute this software, please contact Berkeley Lab's Intellectual Property Office at IPO@lbl.gov.

NOTICE. This Software was developed under funding from the U.S. Department of Energy and the U.S. Government consequently retains certain rights. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, distribute copies to the public, prepare derivative works, and perform publicly and display publicly, and to permit others to do so.