ParticleAnalyzer Is A Computer Vision-Based Tool for Automatic Segmentation and Size Analysis of Nanoparticles in Scanning Electron Microscope (SEM) and Transmission Electron Microscope (TEM) Images.
Video demonstrations:
Make sure your system has an NVIDIA GPU with CUDA. Install PyTorch using the appropriate CUDA version (e.g., CUDA 11.8):
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118If you do not have a CUDA-capable GPU, use the CPU version instead—however, in this case, ParticleAnalyzer will run significantly slower:
pip install torch torchvision torchaudioIf you want to enable advanced instance segmentation, install Detectron2:
pip install 'git+https://github.com/facebookresearch/detectron2.git'Warning
There may be problems installing Detectron2. Use the official documentation.
Finally, install ParticleAnalyzer from PyPI:
pip install --upgrade ParticleAnalyzer✅ Now you're ready to run the application:
ParticleAnalyzer runOpen in browser: http://127.0.0.1:8000
You can specify the port if necessary:
ParticleAnalyzer run --port 5000Launch with LLM support (OpenRouter or Hugging Face API key required):
ParticleAnalyzer run --port 5000 --api-key YOUR_OPENROUTER_API_KEY
