Skip to main content

A MicroAnalysis Toolkit.

Project description

SMAK3.0

MicroAnalysis Toolkit v3

If you haven't recently used conda, it is a good idea to update your installation before beginning. conda update conda

Installation with Conda

  1. Create a new environment from Anaconda prompt/navigator. Choose 'y' when prompted. conda create -n smakenv python==3.10
  2. Activate the new environment conda activate smakenv
  3. Install package via pip pip install smak
  4. Navigate to the folder within your anaconda environment where smak has been installed. This can be tricky to find.
    • To start, type in PATH (windows) or $PATH (mac). This will provide a list of Anaconda directories. Yours may look something like this: "C:\Users\yourUsername\AppData\Local\anaconda3\envs\smakenv" (windows)
    • Copy the first of the paths from the previous step and navigate to that folder on your computer in finder/file explorer. This is the folder for your smak specific virtual environment.
    • From the virtual environment folder, navigate to "Lib\site-packages\smak" (windows) or "Lib\python 3.10\site-packages\smak"(mac)
    • In this folder, you will see the code for smak, including "smak.py". Bookmark this folder, you will need to access it frequently.

Optional: Segmentation and image registration

To use the full functionality of SMAK, you will need to follow a few additional steps. This is not necessary unless you plan to use segmentation and image registration.

  1. Download the files from the following links. They are quite large and may take a while to download.
  1. Move the files into the main smak folder. This is the folder you found and bookmarked in step 4 of "Installation with Conda".
  2. From Anacoda prompt, with your smakenv virtual environment active, run the following commands to install packages. Please follow this exact order of package installation.
  • pip install pycocotools
  • conda install git
  • pip install git+https://github.com/facebookresearch/segment-anything.git
  • pip install torch
  • pip install torchvision
  • conda install lap -c conda-forge
  • pip install numpy==1.24
  1. To check this functionality, open SMAK and navigate to the Analyze/Segmentation. An expanded menu including "Initialize SAM" will be available to you.

Running SMAK

  1. Open Anaconda prompt/navigator.
  2. Activate the environment you use to run smak conda activate smakenv
  3. Navigate to the folder within your anaconda environment where smak has been installed. This is the folder you found and bookmarked in step 4 of "Installation with Conda". Using quotes aroung the path may be helpful.
  4. Run smak python smak.py

Improvements on this installation process and guide are underway! In the meantime, don't hesitate to reach out to Sam (samwebb@slac.stanford.edu) for assistance.

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

smak-3.0.11.tar.gz (4.5 MB view details)

Uploaded Source

Built Distribution

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

smak-3.0.11-py3-none-any.whl (4.8 MB view details)

Uploaded Python 3

File details

Details for the file smak-3.0.11.tar.gz.

File metadata

  • Download URL: smak-3.0.11.tar.gz
  • Upload date:
  • Size: 4.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for smak-3.0.11.tar.gz
Algorithm Hash digest
SHA256 0d368011a8f455cf5a789967fc082c4cebfcd82d983cc8cdcab1a87e9ae0bf5b
MD5 453712e94cabc5f94647d9bb029788be
BLAKE2b-256 e48b4dd94ff692bf0510b358b278a33837ef1d9e16c0ad851caeeb7fe9fc4f46

See more details on using hashes here.

File details

Details for the file smak-3.0.11-py3-none-any.whl.

File metadata

  • Download URL: smak-3.0.11-py3-none-any.whl
  • Upload date:
  • Size: 4.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.8.5

File hashes

Hashes for smak-3.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d687c0afb9c619ae3ce53f940724d458f98f02e2f1c8b2fae081fb95d2ca8f
MD5 9d8e0a92c00c667209d7763d50bd7876
BLAKE2b-256 6ad23b5a8456b1b4e918277904a73c3116dc3454708724b9d01060aa6d8fe177

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