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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file npsam-2.0.8.tar.gz.
File metadata
- Download URL: npsam-2.0.8.tar.gz
- Upload date:
- Size: 137.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91440f9efd86e3e57938be29e3cd4b7e2913c34f2a10f9e7a4e5ff9404bc1df3
|
|
| MD5 |
3f11f51f77258a1104174598ff016c43
|
|
| BLAKE2b-256 |
8c4164f873536991044af0f9223a7d073e57541a287727d9132972863012717e
|
File details
Details for the file npsam-2.0.8-py3-none-any.whl.
File metadata
- Download URL: npsam-2.0.8-py3-none-any.whl
- Upload date:
- Size: 144.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
928c47ea4c6a31205984241905ca3bcd98af7df30c93ceede0990a180bb9c06d
|
|
| MD5 |
bb8a0ae7c5f272565e1d1124896a4690
|
|
| BLAKE2b-256 |
fb1fb0eec7f0f287961c3b61a0c7b425baa6dd832fb09c80e86c1d0c209bdd59
|