Giter Site home page Giter Site logo

supervoxel_merging's Introduction

Supervoxel merging pipeline

Semi-automatic segmentation workflow for Volume SEM datasets

Installation

From environment files

Paintera:

conda env create -f paintera-env.yml

Main environment:

conda env create -f paintera-mc-workflow-env.yml

Manually

Paintera

TODO

Main environment:

conda create -n paintera-mc-workflow-env -c cpape -c conda-forge elf python=3.7
conda activate paintera-mc-workflow-env
conda install -c conda-forge napari
conda install -c cpape z5py

Usage

from paintera_multicut_workflow import pm_workflow

pm_workflow(
    results_folder='path/to/results/folder/',
    raw_filepath='path/to/raw_data.h5,
    mem_pred_filepath='path/to/mem_pred.h5',
    supervoxel_filepath='path/to/supervoxels.h5',
    mem_pred_channel=2,  # Required if mem_pred.ndim == 4 to select channel
    auto_crop_center=True,  # Crops to the center if raw, mem or sv shapes are > annotation_shape
    annotation_shape=(256, 256, 256),
    paintera_env_name='paintera_env_new',  # Name of the paintera environment
    activation_command='source /home/hennies/miniconda3/bin/activate', 
    export_binary=True,
    conncomp_on_paintera_export=True,  
    verbose=True
)

Installation and usage from archive (under development)

Linux

Download pm_workflow.tar.gz

Unpack with

mkdir pm_workflow
tar -xzf pm_workflow.tar.gz -C pm_workflow

Run the pipeline

cd pm_workflow
./run_workflow.sh input_folder result_folder [arguments]

Use help for description of arguments

./run_workflow.sh -h

Windows

Download pm_workflow_win.zip

Unpack to the the disired location (workflow directory)

Run the pipeline using the command prompt:

Open command prompt and navigate to the workflow directory, e.g.

cd path\to\pm_workflow_win

Run the pipeline with

run_workflow.bat input_folder result_folder [arguments]

Use help for description of arguments

run_workflow.bat -h

supervoxel_merging's People

Contributors

jhennies avatar constantinpape avatar

Watchers

 avatar  avatar

supervoxel_merging's Issues

Don't provide fully frozen conda envs

Specifying fully frozen conda envs as default way of installation is not a good idea.
This has two major drawbacks:

  • It will not be very portable to other operating systems or python versions, because pacakges are often not available in the exact same pinning.
  • The env file will become invalid as soon as one of the packages is removed from a conda-forge channel you depend on.

For example, I cannot install paintera-mc-workflow-env, because it fails with this error:

Collecting package metadata (repodata.json): done
Solving environment: failed

ResolvePackageNotFound: 
  - nifty==v1.0.7=py37_3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.