DeepParticleNet
A deep neural network for particle size and shape analysis.
Install / Use
/learn @maxfrei750/DeepParticleNetREADME
:exclamation: ATTENTION :exclamation:
This code is no longer maintained and has been superseeded by the paddle toolbox.
DeepParticleNet
This repository is a toolbox for the easy, deep learning-based primary particle size analysis of agglomerated, aggregated, partially sintered or simply occluded particles. It accompanies the following publication:
The utilized convolutional neural network was inspired by the Mask R-CNN architecture, developed by He et al. and is based on an implementation of Abdulla, realized with Keras and TensorFlow, controlled by Python.
Table of Contents
Examples
Detection
<img src="assets\example_detection.jpg" alt="Example Detection" width="804" height="300"/>PSD Measurement
<img src="assets\example_psd.png" alt="Example PSD Measurement" width="400" height="265"/>Citation
If you use this repository for a publication, then please cite it using the following bibtex-entry:
@article{Frei.2019,
author = {Frei, Max and Kruis, Frank Einar},
year = {2019},
title = {Image-Based Size Analysis of Agglomerated and Partially Sintered Particles via Convolutional Neural Networks},
url = {https://doi.org/10.1016/j.powtec.2019.10.020}
}
Setup
CPU only (Linux & Windows)
<details> <summary>Click to expand ...</summary>- Install docker.
- Open a command line.
- Clone this repository:
git clone --recurse-submodules https://github.com/maxfrei750/DeepParticleNet.git - Change into the folder of the repository:
cd DeepParticleNet - Spin up the docker container (adjust paths according to your folder structure):
docker run -i --name deepparticlenet -p 8888:8888 -p 6006:6006 -v /path/to/code:/tf -v /path/to/datasets:/tf/datasets -v /path/to/logs:/tf/logs maxfrei750/deepparticlenet:cpu
Optional: Start Tensorboard
- Open a command line.
- Start Tensorboard:
docker exec -i deepparticlenet tensorboard --logdir=/tf/logs - Access
localhost:6006in your browser.
GPU support (Linux)
<details> <summary>Click to expand ...</summary>- Install docker.
- Install nvidia-docker.
- Open a command line.
- Clone this repository:
git clone --recurse-submodules https://github.com/maxfrei750/DeepParticleNet.git - Change into the folder of the repository:
cd DeepParticleNet - Spin up the docker container (adjust paths according to your folder structure):
nvidia-docker run -i --shm-size=1g --ulimit memlock=-1 --name deepparticlenet -p 8888:8888 -p 6006:6006 -v /path/to/code:/tf -v /path/to/datasets:/tf/datasets -v /path/to/logs:/tf/logs maxfrei750/deepparticlenet:gpu
Optional: Start Tensorboard
- Open a command line.
- Start Tensorboard:
docker exec -i deepparticlenet tensorboard --logdir=/tf/logs - Access
localhost:6006in your browser.
GPU support (Windows)
<details> <summary>Click to expand ...</summary>Nvidia-docker does not support Windows. Therefore, if you are running Windows and need GPU support, then you need to setup a python environment (e.g. conda).
- Install conda.
- Open a command line.
- Clone this repository:
git clone --recurse-submodules https://github.com/maxfrei750/DeepParticleNet.git - Change into the folder of the repository:
cd DeepParticleNet - Create a new conda environment:
conda env create --file dpn-gpu-environment.yml - Activate the new conda environment:
activate dpn-gpu-env - Start jupyter lab:
jupyter lab
Optional: Start Tensorboard
- Open a command line.
- Activate the conda environment:
activate dpn-gpu-env - Start Tensorboard:
tensorboard --logdir=/path/to/logs - Access
localhost:6006in your browser.
Getting started
- Copy the jupyter token from your command line.
- Enter the jupyter server by accessing
localhost:8888/labin your browser and pasting the jupyter token that you just copied.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
