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-2.0.10.tar.gz (137.5 kB view details)

Uploaded Source

Built Distribution

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

npsam-2.0.10-py3-none-any.whl (144.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for npsam-2.0.10.tar.gz
Algorithm Hash digest
SHA256 61ac24bc0dddfe1b85b68a4bc5ef80330a65c03e08ef1b4fec9a713b500271e2
MD5 15fbbf0593044ba4ca8eb2c51c12f3fb
BLAKE2b-256 5f2ef17366af5ff5fd4db63027d2353e1ab921112f014a5456f2cffe0dcff16b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for npsam-2.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 44e23bafa98550358d63ecc0d499bb3bc0a404bc43a3ae6e0b5e03bb16bd2340
MD5 390a14bc8dc4facbb8b1e0299382fcf6
BLAKE2b-256 5cd1757f748858c72ac3c64a66fc7e3ec77d4635102b64e706f517c0cccf1427

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