26 fTFProtoBuf (fLibPath+
"/"+pset.
get<
std::
string>(
"TFProtoBuf")),
27 fInputs(pset.
get<unsigned
int>(
"NInputs")),
52 std::vector<ImageVectorF> vecForTF;
53 vecForTF.push_back(thisImage);
72 std::vector<ImageVectorF> vecForTF;
95 vecForTF.push_back(thisImage);
107 return cnnResults[0];
111 std::vector<float> fullResults = this->
Predict(pm);
112 std::vector<float> nue_energy;
113 nue_energy.push_back(fullResults[0]);
MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
RegPixelMap, basic input to CNN neural net.
std::vector< float > PredictNuEEnergy(const RegPixelMap &pm)
unsigned int fInputs
Number of tdcs for the network to classify.
std::vector< bool > fReverseViews
Do we need to reverse any views?
void SetViewReversal(bool reverseX, bool reverseY, bool reverseZ)
Function to set any views that need reversing.
std::vector< ViewVectorF > ImageVectorF
std::vector< float > Predict(const RegPixelMap &pm)
Return prediction arrays for RegPixelMap.
std::string getenv(std::string const &name)
Utilities for producing images for the RegCNN.
void ConvertPixelMapToImageVectorF(const RegPixelMap &pm, ImageVectorF &imageVec)
Convert a pixel map into an image vector (float version)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Defines an enumeration for cellhit classification.
TFRegNetHandler(const fhicl::ParameterSet &pset)
Constructor which takes a pset with DeployProto and ModelFile fields.
TFRegNetHandler for RegCNN modified from TFNetHandler.h.
static std::unique_ptr< RegCNNGraph > create(const char *graph_file_name, const unsigned int &ninputs, const std::vector< std::string > &outputs={})
Class containing some utility functions for all things RegCNN.
auto const & get(AssnsNode< L, R, D > const &r)
std::vector< std::string > fOutputName
std::unique_ptr< tf::RegCNNGraph > fTFGraph
Tensorflow graph.
QTextStream & endl(QTextStream &s)
std::string fTFProtoBuf
location of the tf .pb file in the above path