Skip to main content

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.

Metadata

Release files for smak 3.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for smak 3.0.11
File Size Uploaded
smak-3.0.11.tar.gz 4.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for smak 3.0.11
File Interpreter ABI Platform
smak-3.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 MB

Release files / smak-3.0.11.tar.gz

Download URL smak-3.0.11.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
0d368011a8f455cf5a789967fc082c4cebfcd82d983cc8cdcab1a87e9ae0bf5b
BLAKE2b-256 checksum
How to use checksums
e48b4dd94ff692bf0510b358b278a33837ef1d9e16c0ad851caeeb7fe9fc4f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.5

Release files / smak-3.0.11-py3-none-any.whl

Download URL smak-3.0.11-py3-none-any.whl
Size 4.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d0d687c0afb9c619ae3ce53f940724d458f98f02e2f1c8b2fae081fb95d2ca8f
BLAKE2b-256 checksum
How to use checksums
6ad23b5a8456b1b4e918277904a73c3116dc3454708724b9d01060aa6d8fe177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.8.5

Release history Release notifications | RSS feed

This release

3.0.11 This release

2 release files

3.0.10

2 release files

3.0.9

2 release files

3.0.8

2 release files

3.0.7

2 release files

3.0.6

2 release files

3.0.5

2 release files

3.0.4

2 release files

3.0.3

2 release files

3.0.2

2 release files

3.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page