Point Proposal Network for particles images and related tools.
Project description
faster-particles
This package includes the following:
- Toydata generator
- LArCV data interface
- Pixel Proposal Network implementation using Tensorflow
Installation
You must install larcv2 and its
own dependencies (ROOT, OpenCV, Numpy) in order to use LArCV data interface.
To install larcv2
:
git clone https://github.com/DeepLearnPhysics/larcv2.git
cd larcv2
source configure.sh
make
Then install faster-particles
with Pip:
pip install faster-particles
Alternatively, you can also clone the source:
git clone https://github.com/Temigo/faster-particles.git
cd faster-particles
Usage
The following assumes you installed with pip. If you cloned the source, make
sure you are in the root directory and replace ppn
with python faster_particles/bin/ppn.py
.
To use toydata rather than LArCV data in the following sections, use option --toydata
.
LArCV data files can be specified with --data
option. They can use regex, e.g. ppn_p[01]*.root
.
Training
To train PPN on 1000 steps:
ppn train -o output/dir/ -l log/dir/ -d display/dir -n ppn -m 1000 --data path/to/data
To train the base network (currently only VGG available) on track/shower classification task:
ppn train -o output/dir/ -l log/dir/ -d display/dir -n base -m 1000
Inference
To run inference with a minimal score of 0.5 for predicted points:
ppn demo weights_file.ckpt -d display/dir/ -ms 0.5
More options are available through ppn train -h
and ppn demo -h
respectively.
Authors
K.Terao, J.W. Park, L.Domine
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
Hashes for faster_particles-0.1.6-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 327dc81ec59ad2f0fae16246d643d7b232a75546c694803df362aa9fd9ae7601 |
|
MD5 | 80d0de1c589c8a1f46a333324d0a5384 |
|
BLAKE2b-256 | 8dbd23e80bf6418ffb311ac551f9caeba10b8ca766efbe31589cba5f2cc84415 |