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
.
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.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e36d70a986a7a5c94fc6e0dfd6137d752c90272a0203e0bb4ce5dad3fadd6b25 |
|
MD5 | bf98b277112fab14f8ef973411a180e5 |
|
BLAKE2b-256 | 073a9863066426d05c8de2cbd5bd309ceda91ce252f5a65a0599758a99faadd7 |