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, replace
ppn
with python 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.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47b9d77b6ebe5cf8387c7865998d34cf3152d65ec3b0ddad5720e749af331c3c |
|
MD5 | dd2dea3708dcb601037faee15c5ea678 |
|
BLAKE2b-256 | 1c2d9bbd258688c6c09b33b307f6aeb99e8d8eb4ed7e98387a4b248568b1a857 |