Skip to main content

NP-SAM is an easy-to-use segmentation and analysis tool for nanoparticles and more.

Project description

NP-SAM

Introduction

In this project we propose an easily implementable workflow for a fast, accurate and seamless experience of segmentation of nanoparticles.

The project's experience can be significantly enhanced with the presence of a CUDA-compatible device; alternatively, Google Colab can be utilized if such a device is not accessible. For a quick access to the program and a CUDA-GPU try our Google Colab notebook.
Google Colab

Installation

Create a new conda environment called npsam and activate it.

conda create -n npsam python=3.10
conda activate npsam

Install PyTorch. NP-SAM has been tested with Pytorch 2.1.2 and CUDA 11.8.

Then install NP-SAM, and make a static link to the ipykernel

pip install npsam
python -m ipykernel install --user --name npsam --display-name npsam

Get started

In the npsam environment execute jupyter lab in the terminal. This will launch jupyterlab. Try out one of the example notebooks on our GitLab.

Citation

@article{NPSAM,
   author = {Larsen, Rasmus and Villadsen, Torben L. and Mathiesen, Jette K. and Jensen, Kirsten M. Ø and Bøjesen, Espen D.},
   title = {NP-SAM: Implementing the Segment Anything Model for Easy Nanoparticle Segmentation in Electron Microscopy Images},
   journal = {ChemRxiv},
   DOI = {10.26434/chemrxiv-2023-k73qz-v2},
   year = {2023},
   type = {Journal Article}
}

Acknowledgment

This repo benefits from Meta's Segment Anything and FastSAM. Thanks for their great work.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

npsam-1.6.tar.gz (134.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npsam-1.6-py3-none-any.whl (140.7 kB view details)

Uploaded Python 3

File details

Details for the file npsam-1.6.tar.gz.

File metadata

  • Download URL: npsam-1.6.tar.gz
  • Upload date:
  • Size: 134.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for npsam-1.6.tar.gz
Algorithm Hash digest
SHA256 5e7767a0be7b6edf4cf56a43a955a20e84a656a7351716221391f330cd12695e
MD5 ff053812a73a4fb6aab320ecccbc684a
BLAKE2b-256 7e09a7cc9c15907bf35fc450254366b7c06b66deb1f0361d5dd40c209a89525d

See more details on using hashes here.

File details

Details for the file npsam-1.6-py3-none-any.whl.

File metadata

  • Download URL: npsam-1.6-py3-none-any.whl
  • Upload date:
  • Size: 140.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for npsam-1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b6cb36b9b2f7658151c29071cc8c330538a55d8ec8a4a6a84f37da1d2cec5bb1
MD5 a171b44cbf4f00e9d9ddb3046266cbbc
BLAKE2b-256 62b137e60ce754107ff0516d5c7adaeacda7609e324b05310dc7baad3d7bd665

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page