123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: locater_parameter.proto
- #include "locater_parameter.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/stubs/once.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace Measure {
- class Area3dDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Area3d>
- _instance;
- } _Area3d_default_instance_;
- class YoloParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<YoloParameter>
- _instance;
- } _YoloParameter_default_instance_;
- class PointSiftParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<PointSiftParameter>
- _instance;
- } _PointSiftParameter_default_instance_;
- class cnnParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<cnnParameter>
- _instance;
- } _cnnParameter_default_instance_;
- class LocateParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<LocateParameter>
- _instance;
- } _LocateParameter_default_instance_;
- } // namespace Measure
- namespace protobuf_locater_5fparameter_2eproto {
- void InitDefaultsArea3dImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Measure::_Area3d_default_instance_;
- new (ptr) ::Measure::Area3d();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::Area3d::InitAsDefaultInstance();
- }
- void InitDefaultsArea3d() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsArea3dImpl);
- }
- void InitDefaultsYoloParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- {
- void* ptr = &::Measure::_YoloParameter_default_instance_;
- new (ptr) ::Measure::YoloParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::YoloParameter::InitAsDefaultInstance();
- }
- void InitDefaultsYoloParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsYoloParameterImpl);
- }
- void InitDefaultsPointSiftParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_locater_5fparameter_2eproto::InitDefaultsArea3d();
- ::Measure::PointSiftParameter::_default_graph_.DefaultConstruct();
- *::Measure::PointSiftParameter::_default_graph_.get_mutable() = ::std::string("seg_model_last.ckpt.meta", 24);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::PointSiftParameter::_default_graph_.get_mutable());
- ::Measure::PointSiftParameter::_default_cpkt_.DefaultConstruct();
- *::Measure::PointSiftParameter::_default_cpkt_.get_mutable() = ::std::string("seg_model_last.ckpt", 19);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::PointSiftParameter::_default_cpkt_.get_mutable());
- {
- void* ptr = &::Measure::_PointSiftParameter_default_instance_;
- new (ptr) ::Measure::PointSiftParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::PointSiftParameter::InitAsDefaultInstance();
- }
- void InitDefaultsPointSiftParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPointSiftParameterImpl);
- }
- void InitDefaultscnnParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::Measure::cnnParameter::_default_weights_file_.DefaultConstruct();
- *::Measure::cnnParameter::_default_weights_file_.get_mutable() = ::std::string("frozen_model.pb", 15);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::Measure::cnnParameter::_default_weights_file_.get_mutable());
- {
- void* ptr = &::Measure::_cnnParameter_default_instance_;
- new (ptr) ::Measure::cnnParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::cnnParameter::InitAsDefaultInstance();
- }
- void InitDefaultscnnParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultscnnParameterImpl);
- }
- void InitDefaultsLocateParameterImpl() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
- #else
- ::google::protobuf::internal::InitProtobufDefaults();
- #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- protobuf_locater_5fparameter_2eproto::InitDefaultsArea3d();
- protobuf_locater_5fparameter_2eproto::InitDefaultscnnParameter();
- protobuf_locater_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- protobuf_locater_5fparameter_2eproto::InitDefaultsYoloParameter();
- {
- void* ptr = &::Measure::_LocateParameter_default_instance_;
- new (ptr) ::Measure::LocateParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::Measure::LocateParameter::InitAsDefaultInstance();
- }
- void InitDefaultsLocateParameter() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLocateParameterImpl);
- }
- ::google::protobuf::Metadata file_level_metadata[5];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, x_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, x_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, y_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, y_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, z_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::Area3d, z_max_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, cfg_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, weights_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, min_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, max_x_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, min_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, max_y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::YoloParameter, freq_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, point_size_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, cls_num_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, freq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, area_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, graph_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::PointSiftParameter, cpkt_),
- 3,
- 4,
- 5,
- 2,
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, length_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, height_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, freq_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, nclass_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::cnnParameter, weights_file_),
- 1,
- 2,
- 3,
- 4,
- 5,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, area_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, net_3dcnn_parameter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, seg_parameter_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Measure::LocateParameter, yolo_parameter_),
- 0,
- 1,
- 2,
- 3,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 11, sizeof(::Measure::Area3d)},
- { 17, 29, sizeof(::Measure::YoloParameter)},
- { 36, 47, sizeof(::Measure::PointSiftParameter)},
- { 53, 64, sizeof(::Measure::cnnParameter)},
- { 70, 79, sizeof(::Measure::LocateParameter)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_Area3d_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_YoloParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_PointSiftParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_cnnParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::Measure::_LocateParameter_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- ::google::protobuf::MessageFactory* factory = NULL;
- AssignDescriptors(
- "locater_parameter.proto", schemas, file_default_instances, TableStruct::offsets, factory,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\027locater_parameter.proto\022\007Measure\"\203\001\n\006A"
- "rea3d\022\020\n\005x_min\030\001 \001(\001:\0010\022\024\n\005x_max\030\002 \001(\001:\005"
- "12000\022\023\n\005y_min\030\003 \001(\001:\0044500\022\024\n\005y_max\030\004 \001("
- "\001:\00511000\022\021\n\005z_min\030\005 \001(\001:\00260\022\023\n\005z_max\030\006 \001"
- "(\001:\0043000\"\226\001\n\rYoloParameter\022\r\n\003cfg\030\001 \001(\t:"
- "\000\022\021\n\007weights\030\002 \001(\t:\000\022\020\n\005min_x\030\003 \001(\001:\0010\022\024"
- "\n\005max_x\030\004 \001(\001:\00512000\022\023\n\005min_y\030\005 \001(\001:\004450"
- "0\022\024\n\005max_y\030\006 \001(\001:\00511000\022\020\n\004freq\030\007 \001(\001:\0022"
- "5\"\277\001\n\022PointSiftParameter\022\030\n\npoint_size\030\001"
- " \001(\003:\0048192\022\022\n\007cls_num\030\002 \001(\003:\0013\022\020\n\004freq\030\003"
- " \001(\001:\00250\022\035\n\004area\030\004 \001(\0132\017.Measure.Area3d\022"
- "\'\n\005graph\030\005 \001(\t:\030seg_model_last.ckpt.meta"
- "\022!\n\004cpkt\030\006 \001(\t:\023seg_model_last.ckpt\"\227\001\n\014"
- "cnnParameter\022\023\n\006length\030\001 \001(\003:\003224\022\022\n\005wid"
- "th\030\002 \001(\003:\003224\022\022\n\006height\030\003 \001(\003:\00296\022\020\n\004fre"
- "q\030\004 \001(\003:\00225\022\021\n\006nclass\030\005 \001(\003:\0013\022%\n\014weight"
- "s_file\030\006 \001(\t:\017frozen_model.pb\"\310\001\n\017Locate"
- "Parameter\022\035\n\004area\030\001 \001(\0132\017.Measure.Area3d"
- "\0222\n\023net_3dcnn_parameter\030\002 \001(\0132\025.Measure."
- "cnnParameter\0222\n\rseg_parameter\030\003 \001(\0132\033.Me"
- "asure.PointSiftParameter\022.\n\016yolo_paramet"
- "er\030\004 \001(\0132\026.Measure.YoloParameter"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 872);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "locater_parameter.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
- ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_locater_5fparameter_2eproto
- namespace Measure {
- // ===================================================================
- void Area3d::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Area3d::kXMinFieldNumber;
- const int Area3d::kXMaxFieldNumber;
- const int Area3d::kYMinFieldNumber;
- const int Area3d::kYMaxFieldNumber;
- const int Area3d::kZMinFieldNumber;
- const int Area3d::kZMaxFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Area3d::Area3d()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsArea3d();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.Area3d)
- }
- Area3d::Area3d(const Area3d& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&x_min_, &from.x_min_,
- static_cast<size_t>(reinterpret_cast<char*>(&z_max_) -
- reinterpret_cast<char*>(&x_min_)) + sizeof(z_max_));
- // @@protoc_insertion_point(copy_constructor:Measure.Area3d)
- }
- void Area3d::SharedCtor() {
- _cached_size_ = 0;
- x_min_ = 0;
- x_max_ = 12000;
- y_min_ = 4500;
- y_max_ = 11000;
- z_min_ = 60;
- z_max_ = 3000;
- }
- Area3d::~Area3d() {
- // @@protoc_insertion_point(destructor:Measure.Area3d)
- SharedDtor();
- }
- void Area3d::SharedDtor() {
- }
- void Area3d::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* Area3d::descriptor() {
- ::protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Area3d& Area3d::default_instance() {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsArea3d();
- return *internal_default_instance();
- }
- Area3d* Area3d::New(::google::protobuf::Arena* arena) const {
- Area3d* n = new Area3d;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void Area3d::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- x_min_ = 0;
- x_max_ = 12000;
- y_min_ = 4500;
- y_max_ = 11000;
- z_min_ = 60;
- z_max_ = 3000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Area3d::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Measure.Area3d)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional double x_min = 1 [default = 0];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(9u /* 9 & 0xFF */)) {
- set_has_x_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double x_max = 2 [default = 12000];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(17u /* 17 & 0xFF */)) {
- set_has_x_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &x_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double y_min = 3 [default = 4500];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_y_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double y_max = 4 [default = 11000];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
- set_has_y_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &y_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double z_min = 5 [default = 60];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_z_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &z_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double z_max = 6 [default = 3000];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
- set_has_z_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &z_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.Area3d)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.Area3d)
- return false;
- #undef DO_
- }
- void Area3d::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double x_min = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->x_min(), output);
- }
- // optional double x_max = 2 [default = 12000];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->x_max(), output);
- }
- // optional double y_min = 3 [default = 4500];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->y_min(), output);
- }
- // optional double y_max = 4 [default = 11000];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->y_max(), output);
- }
- // optional double z_min = 5 [default = 60];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->z_min(), output);
- }
- // optional double z_max = 6 [default = 3000];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->z_max(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.Area3d)
- }
- ::google::protobuf::uint8* Area3d::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.Area3d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional double x_min = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1, this->x_min(), target);
- }
- // optional double x_max = 2 [default = 12000];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->x_max(), target);
- }
- // optional double y_min = 3 [default = 4500];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->y_min(), target);
- }
- // optional double y_max = 4 [default = 11000];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->y_max(), target);
- }
- // optional double z_min = 5 [default = 60];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->z_min(), target);
- }
- // optional double z_max = 6 [default = 3000];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->z_max(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.Area3d)
- return target;
- }
- size_t Area3d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.Area3d)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional double x_min = 1 [default = 0];
- if (has_x_min()) {
- total_size += 1 + 8;
- }
- // optional double x_max = 2 [default = 12000];
- if (has_x_max()) {
- total_size += 1 + 8;
- }
- // optional double y_min = 3 [default = 4500];
- if (has_y_min()) {
- total_size += 1 + 8;
- }
- // optional double y_max = 4 [default = 11000];
- if (has_y_max()) {
- total_size += 1 + 8;
- }
- // optional double z_min = 5 [default = 60];
- if (has_z_min()) {
- total_size += 1 + 8;
- }
- // optional double z_max = 6 [default = 3000];
- if (has_z_max()) {
- total_size += 1 + 8;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void Area3d::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.Area3d)
- GOOGLE_DCHECK_NE(&from, this);
- const Area3d* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Area3d>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.Area3d)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.Area3d)
- MergeFrom(*source);
- }
- }
- void Area3d::MergeFrom(const Area3d& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.Area3d)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- x_min_ = from.x_min_;
- }
- if (cached_has_bits & 0x00000002u) {
- x_max_ = from.x_max_;
- }
- if (cached_has_bits & 0x00000004u) {
- y_min_ = from.y_min_;
- }
- if (cached_has_bits & 0x00000008u) {
- y_max_ = from.y_max_;
- }
- if (cached_has_bits & 0x00000010u) {
- z_min_ = from.z_min_;
- }
- if (cached_has_bits & 0x00000020u) {
- z_max_ = from.z_max_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Area3d::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.Area3d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Area3d::CopyFrom(const Area3d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.Area3d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Area3d::IsInitialized() const {
- return true;
- }
- void Area3d::Swap(Area3d* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Area3d::InternalSwap(Area3d* other) {
- using std::swap;
- swap(x_min_, other->x_min_);
- swap(x_max_, other->x_max_);
- swap(y_min_, other->y_min_);
- swap(y_max_, other->y_max_);
- swap(z_min_, other->z_min_);
- swap(z_max_, other->z_max_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata Area3d::GetMetadata() const {
- protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void YoloParameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int YoloParameter::kCfgFieldNumber;
- const int YoloParameter::kWeightsFieldNumber;
- const int YoloParameter::kMinXFieldNumber;
- const int YoloParameter::kMaxXFieldNumber;
- const int YoloParameter::kMinYFieldNumber;
- const int YoloParameter::kMaxYFieldNumber;
- const int YoloParameter::kFreqFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- YoloParameter::YoloParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsYoloParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.YoloParameter)
- }
- YoloParameter::YoloParameter(const YoloParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- cfg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_cfg()) {
- cfg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cfg_);
- }
- weights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_weights()) {
- weights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.weights_);
- }
- ::memcpy(&min_x_, &from.min_x_,
- static_cast<size_t>(reinterpret_cast<char*>(&freq_) -
- reinterpret_cast<char*>(&min_x_)) + sizeof(freq_));
- // @@protoc_insertion_point(copy_constructor:Measure.YoloParameter)
- }
- void YoloParameter::SharedCtor() {
- _cached_size_ = 0;
- cfg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- weights_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- min_x_ = 0;
- max_x_ = 12000;
- min_y_ = 4500;
- max_y_ = 11000;
- freq_ = 25;
- }
- YoloParameter::~YoloParameter() {
- // @@protoc_insertion_point(destructor:Measure.YoloParameter)
- SharedDtor();
- }
- void YoloParameter::SharedDtor() {
- cfg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- weights_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void YoloParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* YoloParameter::descriptor() {
- ::protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const YoloParameter& YoloParameter::default_instance() {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsYoloParameter();
- return *internal_default_instance();
- }
- YoloParameter* YoloParameter::New(::google::protobuf::Arena* arena) const {
- YoloParameter* n = new YoloParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void YoloParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!cfg_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*cfg_.UnsafeRawStringPointer())->clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!weights_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
- (*weights_.UnsafeRawStringPointer())->clear();
- }
- }
- if (cached_has_bits & 124u) {
- min_x_ = 0;
- max_x_ = 12000;
- min_y_ = 4500;
- max_y_ = 11000;
- freq_ = 25;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool YoloParameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Measure.YoloParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string cfg = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_cfg()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.YoloParameter.cfg");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string weights = 2 [default = ""];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_weights()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.YoloParameter.weights");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double min_x = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_min_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &min_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double max_x = 4 [default = 12000];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
- set_has_max_x();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &max_x_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double min_y = 5 [default = 4500];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
- set_has_min_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &min_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double max_y = 6 [default = 11000];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
- set_has_max_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &max_y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double freq = 7 [default = 25];
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.YoloParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.YoloParameter)
- return false;
- #undef DO_
- }
- void YoloParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string cfg = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.cfg");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->cfg(), output);
- }
- // optional string weights = 2 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.weights");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 2, this->weights(), output);
- }
- // optional double min_x = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->min_x(), output);
- }
- // optional double max_x = 4 [default = 12000];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->max_x(), output);
- }
- // optional double min_y = 5 [default = 4500];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->min_y(), output);
- }
- // optional double max_y = 6 [default = 11000];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->max_y(), output);
- }
- // optional double freq = 7 [default = 25];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->freq(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.YoloParameter)
- }
- ::google::protobuf::uint8* YoloParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.YoloParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string cfg = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cfg().data(), static_cast<int>(this->cfg().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.cfg");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->cfg(), target);
- }
- // optional string weights = 2 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights().data(), static_cast<int>(this->weights().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.YoloParameter.weights");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 2, this->weights(), target);
- }
- // optional double min_x = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->min_x(), target);
- }
- // optional double max_x = 4 [default = 12000];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->max_x(), target);
- }
- // optional double min_y = 5 [default = 4500];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->min_y(), target);
- }
- // optional double max_y = 6 [default = 11000];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->max_y(), target);
- }
- // optional double freq = 7 [default = 25];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->freq(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.YoloParameter)
- return target;
- }
- size_t YoloParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.YoloParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 127u) {
- // optional string cfg = 1 [default = ""];
- if (has_cfg()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->cfg());
- }
- // optional string weights = 2 [default = ""];
- if (has_weights()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->weights());
- }
- // optional double min_x = 3 [default = 0];
- if (has_min_x()) {
- total_size += 1 + 8;
- }
- // optional double max_x = 4 [default = 12000];
- if (has_max_x()) {
- total_size += 1 + 8;
- }
- // optional double min_y = 5 [default = 4500];
- if (has_min_y()) {
- total_size += 1 + 8;
- }
- // optional double max_y = 6 [default = 11000];
- if (has_max_y()) {
- total_size += 1 + 8;
- }
- // optional double freq = 7 [default = 25];
- if (has_freq()) {
- total_size += 1 + 8;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void YoloParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.YoloParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const YoloParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const YoloParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.YoloParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.YoloParameter)
- MergeFrom(*source);
- }
- }
- void YoloParameter::MergeFrom(const YoloParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.YoloParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 127u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_cfg();
- cfg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cfg_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_weights();
- weights_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.weights_);
- }
- if (cached_has_bits & 0x00000004u) {
- min_x_ = from.min_x_;
- }
- if (cached_has_bits & 0x00000008u) {
- max_x_ = from.max_x_;
- }
- if (cached_has_bits & 0x00000010u) {
- min_y_ = from.min_y_;
- }
- if (cached_has_bits & 0x00000020u) {
- max_y_ = from.max_y_;
- }
- if (cached_has_bits & 0x00000040u) {
- freq_ = from.freq_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void YoloParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.YoloParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void YoloParameter::CopyFrom(const YoloParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.YoloParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool YoloParameter::IsInitialized() const {
- return true;
- }
- void YoloParameter::Swap(YoloParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void YoloParameter::InternalSwap(YoloParameter* other) {
- using std::swap;
- cfg_.Swap(&other->cfg_);
- weights_.Swap(&other->weights_);
- swap(min_x_, other->min_x_);
- swap(max_x_, other->max_x_);
- swap(min_y_, other->min_y_);
- swap(max_y_, other->max_y_);
- swap(freq_, other->freq_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata YoloParameter::GetMetadata() const {
- protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void PointSiftParameter::InitAsDefaultInstance() {
- ::Measure::_PointSiftParameter_default_instance_._instance.get_mutable()->area_ = const_cast< ::Measure::Area3d*>(
- ::Measure::Area3d::internal_default_instance());
- }
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> PointSiftParameter::_default_graph_;
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> PointSiftParameter::_default_cpkt_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int PointSiftParameter::kPointSizeFieldNumber;
- const int PointSiftParameter::kClsNumFieldNumber;
- const int PointSiftParameter::kFreqFieldNumber;
- const int PointSiftParameter::kAreaFieldNumber;
- const int PointSiftParameter::kGraphFieldNumber;
- const int PointSiftParameter::kCpktFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- PointSiftParameter::PointSiftParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.PointSiftParameter)
- }
- PointSiftParameter::PointSiftParameter(const PointSiftParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- graph_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_graph_.get());
- if (from.has_graph()) {
- graph_.AssignWithDefault(&::Measure::PointSiftParameter::_default_graph_.get(), from.graph_);
- }
- cpkt_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_cpkt_.get());
- if (from.has_cpkt()) {
- cpkt_.AssignWithDefault(&::Measure::PointSiftParameter::_default_cpkt_.get(), from.cpkt_);
- }
- if (from.has_area()) {
- area_ = new ::Measure::Area3d(*from.area_);
- } else {
- area_ = NULL;
- }
- ::memcpy(&point_size_, &from.point_size_,
- static_cast<size_t>(reinterpret_cast<char*>(&freq_) -
- reinterpret_cast<char*>(&point_size_)) + sizeof(freq_));
- // @@protoc_insertion_point(copy_constructor:Measure.PointSiftParameter)
- }
- void PointSiftParameter::SharedCtor() {
- _cached_size_ = 0;
- graph_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_graph_.get());
- cpkt_.UnsafeSetDefault(&::Measure::PointSiftParameter::_default_cpkt_.get());
- area_ = NULL;
- point_size_ = GOOGLE_LONGLONG(8192);
- cls_num_ = GOOGLE_LONGLONG(3);
- freq_ = 50;
- }
- PointSiftParameter::~PointSiftParameter() {
- // @@protoc_insertion_point(destructor:Measure.PointSiftParameter)
- SharedDtor();
- }
- void PointSiftParameter::SharedDtor() {
- graph_.DestroyNoArena(&::Measure::PointSiftParameter::_default_graph_.get());
- cpkt_.DestroyNoArena(&::Measure::PointSiftParameter::_default_cpkt_.get());
- if (this != internal_default_instance()) delete area_;
- }
- void PointSiftParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* PointSiftParameter::descriptor() {
- ::protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const PointSiftParameter& PointSiftParameter::default_instance() {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsPointSiftParameter();
- return *internal_default_instance();
- }
- PointSiftParameter* PointSiftParameter::New(::google::protobuf::Arena* arena) const {
- PointSiftParameter* n = new PointSiftParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void PointSiftParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!graph_.IsDefault(&::Measure::PointSiftParameter::_default_graph_.get()));
- (*graph_.UnsafeRawStringPointer())->assign(*&::Measure::PointSiftParameter::_default_graph_.get());
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(!cpkt_.IsDefault(&::Measure::PointSiftParameter::_default_cpkt_.get()));
- (*cpkt_.UnsafeRawStringPointer())->assign(*&::Measure::PointSiftParameter::_default_cpkt_.get());
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(area_ != NULL);
- area_->Clear();
- }
- point_size_ = GOOGLE_LONGLONG(8192);
- cls_num_ = GOOGLE_LONGLONG(3);
- freq_ = 50;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool PointSiftParameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Measure.PointSiftParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int64 point_size = 1 [default = 8192];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_point_size();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &point_size_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 cls_num = 2 [default = 3];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_cls_num();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &cls_num_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional double freq = 3 [default = 50];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(25u /* 25 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.Area3d area = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_area()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_graph()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.PointSiftParameter.graph");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_cpkt()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.PointSiftParameter.cpkt");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.PointSiftParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.PointSiftParameter)
- return false;
- #undef DO_
- }
- void PointSiftParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 point_size = 1 [default = 8192];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->point_size(), output);
- }
- // optional int64 cls_num = 2 [default = 3];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->cls_num(), output);
- }
- // optional double freq = 3 [default = 50];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteDouble(3, this->freq(), output);
- }
- // optional .Measure.Area3d area = 4;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->area_, output);
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.graph");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->graph(), output);
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.cpkt");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->cpkt(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.PointSiftParameter)
- }
- ::google::protobuf::uint8* PointSiftParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.PointSiftParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 point_size = 1 [default = 8192];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->point_size(), target);
- }
- // optional int64 cls_num = 2 [default = 3];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->cls_num(), target);
- }
- // optional double freq = 3 [default = 50];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(3, this->freq(), target);
- }
- // optional .Measure.Area3d area = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->area_, deterministic, target);
- }
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->graph().data(), static_cast<int>(this->graph().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.graph");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->graph(), target);
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->cpkt().data(), static_cast<int>(this->cpkt().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.PointSiftParameter.cpkt");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->cpkt(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.PointSiftParameter)
- return target;
- }
- size_t PointSiftParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.PointSiftParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional string graph = 5 [default = "seg_model_last.ckpt.meta"];
- if (has_graph()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->graph());
- }
- // optional string cpkt = 6 [default = "seg_model_last.ckpt"];
- if (has_cpkt()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->cpkt());
- }
- // optional .Measure.Area3d area = 4;
- if (has_area()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->area_);
- }
- // optional int64 point_size = 1 [default = 8192];
- if (has_point_size()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->point_size());
- }
- // optional int64 cls_num = 2 [default = 3];
- if (has_cls_num()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->cls_num());
- }
- // optional double freq = 3 [default = 50];
- if (has_freq()) {
- total_size += 1 + 8;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void PointSiftParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.PointSiftParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const PointSiftParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const PointSiftParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.PointSiftParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.PointSiftParameter)
- MergeFrom(*source);
- }
- }
- void PointSiftParameter::MergeFrom(const PointSiftParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.PointSiftParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_graph();
- graph_.AssignWithDefault(&::Measure::PointSiftParameter::_default_graph_.get(), from.graph_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_cpkt();
- cpkt_.AssignWithDefault(&::Measure::PointSiftParameter::_default_cpkt_.get(), from.cpkt_);
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_area()->::Measure::Area3d::MergeFrom(from.area());
- }
- if (cached_has_bits & 0x00000008u) {
- point_size_ = from.point_size_;
- }
- if (cached_has_bits & 0x00000010u) {
- cls_num_ = from.cls_num_;
- }
- if (cached_has_bits & 0x00000020u) {
- freq_ = from.freq_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void PointSiftParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.PointSiftParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void PointSiftParameter::CopyFrom(const PointSiftParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.PointSiftParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PointSiftParameter::IsInitialized() const {
- return true;
- }
- void PointSiftParameter::Swap(PointSiftParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void PointSiftParameter::InternalSwap(PointSiftParameter* other) {
- using std::swap;
- graph_.Swap(&other->graph_);
- cpkt_.Swap(&other->cpkt_);
- swap(area_, other->area_);
- swap(point_size_, other->point_size_);
- swap(cls_num_, other->cls_num_);
- swap(freq_, other->freq_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata PointSiftParameter::GetMetadata() const {
- protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void cnnParameter::InitAsDefaultInstance() {
- }
- ::google::protobuf::internal::ExplicitlyConstructed< ::std::string> cnnParameter::_default_weights_file_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int cnnParameter::kLengthFieldNumber;
- const int cnnParameter::kWidthFieldNumber;
- const int cnnParameter::kHeightFieldNumber;
- const int cnnParameter::kFreqFieldNumber;
- const int cnnParameter::kNclassFieldNumber;
- const int cnnParameter::kWeightsFileFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- cnnParameter::cnnParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultscnnParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.cnnParameter)
- }
- cnnParameter::cnnParameter(const cnnParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- weights_file_.UnsafeSetDefault(&::Measure::cnnParameter::_default_weights_file_.get());
- if (from.has_weights_file()) {
- weights_file_.AssignWithDefault(&::Measure::cnnParameter::_default_weights_file_.get(), from.weights_file_);
- }
- ::memcpy(&length_, &from.length_,
- static_cast<size_t>(reinterpret_cast<char*>(&nclass_) -
- reinterpret_cast<char*>(&length_)) + sizeof(nclass_));
- // @@protoc_insertion_point(copy_constructor:Measure.cnnParameter)
- }
- void cnnParameter::SharedCtor() {
- _cached_size_ = 0;
- weights_file_.UnsafeSetDefault(&::Measure::cnnParameter::_default_weights_file_.get());
- length_ = GOOGLE_LONGLONG(224);
- width_ = GOOGLE_LONGLONG(224);
- height_ = GOOGLE_LONGLONG(96);
- freq_ = GOOGLE_LONGLONG(25);
- nclass_ = GOOGLE_LONGLONG(3);
- }
- cnnParameter::~cnnParameter() {
- // @@protoc_insertion_point(destructor:Measure.cnnParameter)
- SharedDtor();
- }
- void cnnParameter::SharedDtor() {
- weights_file_.DestroyNoArena(&::Measure::cnnParameter::_default_weights_file_.get());
- }
- void cnnParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* cnnParameter::descriptor() {
- ::protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const cnnParameter& cnnParameter::default_instance() {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultscnnParameter();
- return *internal_default_instance();
- }
- cnnParameter* cnnParameter::New(::google::protobuf::Arena* arena) const {
- cnnParameter* n = new cnnParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void cnnParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(!weights_file_.IsDefault(&::Measure::cnnParameter::_default_weights_file_.get()));
- (*weights_file_.UnsafeRawStringPointer())->assign(*&::Measure::cnnParameter::_default_weights_file_.get());
- }
- length_ = GOOGLE_LONGLONG(224);
- width_ = GOOGLE_LONGLONG(224);
- height_ = GOOGLE_LONGLONG(96);
- freq_ = GOOGLE_LONGLONG(25);
- nclass_ = GOOGLE_LONGLONG(3);
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool cnnParameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Measure.cnnParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional int64 length = 1 [default = 224];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_length();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &length_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 width = 2 [default = 224];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 height = 3 [default = 96];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
- set_has_height();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &height_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 freq = 4 [default = 25];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
- set_has_freq();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &freq_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int64 nclass = 5 [default = 3];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_nclass();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
- input, &nclass_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_weights_file()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "Measure.cnnParameter.weights_file");
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.cnnParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.cnnParameter)
- return false;
- #undef DO_
- }
- void cnnParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 length = 1 [default = 224];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->length(), output);
- }
- // optional int64 width = 2 [default = 224];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->width(), output);
- }
- // optional int64 height = 3 [default = 96];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->height(), output);
- }
- // optional int64 freq = 4 [default = 25];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(4, this->freq(), output);
- }
- // optional int64 nclass = 5 [default = 3];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->nclass(), output);
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.cnnParameter.weights_file");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 6, this->weights_file(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.cnnParameter)
- }
- ::google::protobuf::uint8* cnnParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.cnnParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional int64 length = 1 [default = 224];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->length(), target);
- }
- // optional int64 width = 2 [default = 224];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->width(), target);
- }
- // optional int64 height = 3 [default = 96];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->height(), target);
- }
- // optional int64 freq = 4 [default = 25];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(4, this->freq(), target);
- }
- // optional int64 nclass = 5 [default = 3];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->nclass(), target);
- }
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->weights_file().data(), static_cast<int>(this->weights_file().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "Measure.cnnParameter.weights_file");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 6, this->weights_file(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.cnnParameter)
- return target;
- }
- size_t cnnParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.cnnParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional string weights_file = 6 [default = "frozen_model.pb"];
- if (has_weights_file()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->weights_file());
- }
- // optional int64 length = 1 [default = 224];
- if (has_length()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->length());
- }
- // optional int64 width = 2 [default = 224];
- if (has_width()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->width());
- }
- // optional int64 height = 3 [default = 96];
- if (has_height()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->height());
- }
- // optional int64 freq = 4 [default = 25];
- if (has_freq()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->freq());
- }
- // optional int64 nclass = 5 [default = 3];
- if (has_nclass()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int64Size(
- this->nclass());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void cnnParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.cnnParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const cnnParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const cnnParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.cnnParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.cnnParameter)
- MergeFrom(*source);
- }
- }
- void cnnParameter::MergeFrom(const cnnParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.cnnParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_weights_file();
- weights_file_.AssignWithDefault(&::Measure::cnnParameter::_default_weights_file_.get(), from.weights_file_);
- }
- if (cached_has_bits & 0x00000002u) {
- length_ = from.length_;
- }
- if (cached_has_bits & 0x00000004u) {
- width_ = from.width_;
- }
- if (cached_has_bits & 0x00000008u) {
- height_ = from.height_;
- }
- if (cached_has_bits & 0x00000010u) {
- freq_ = from.freq_;
- }
- if (cached_has_bits & 0x00000020u) {
- nclass_ = from.nclass_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void cnnParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.cnnParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void cnnParameter::CopyFrom(const cnnParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.cnnParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool cnnParameter::IsInitialized() const {
- return true;
- }
- void cnnParameter::Swap(cnnParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void cnnParameter::InternalSwap(cnnParameter* other) {
- using std::swap;
- weights_file_.Swap(&other->weights_file_);
- swap(length_, other->length_);
- swap(width_, other->width_);
- swap(height_, other->height_);
- swap(freq_, other->freq_);
- swap(nclass_, other->nclass_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata cnnParameter::GetMetadata() const {
- protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void LocateParameter::InitAsDefaultInstance() {
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->area_ = const_cast< ::Measure::Area3d*>(
- ::Measure::Area3d::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->net_3dcnn_parameter_ = const_cast< ::Measure::cnnParameter*>(
- ::Measure::cnnParameter::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->seg_parameter_ = const_cast< ::Measure::PointSiftParameter*>(
- ::Measure::PointSiftParameter::internal_default_instance());
- ::Measure::_LocateParameter_default_instance_._instance.get_mutable()->yolo_parameter_ = const_cast< ::Measure::YoloParameter*>(
- ::Measure::YoloParameter::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int LocateParameter::kAreaFieldNumber;
- const int LocateParameter::kNet3DcnnParameterFieldNumber;
- const int LocateParameter::kSegParameterFieldNumber;
- const int LocateParameter::kYoloParameterFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- LocateParameter::LocateParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsLocateParameter();
- }
- SharedCtor();
- // @@protoc_insertion_point(constructor:Measure.LocateParameter)
- }
- LocateParameter::LocateParameter(const LocateParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- _cached_size_(0) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_area()) {
- area_ = new ::Measure::Area3d(*from.area_);
- } else {
- area_ = NULL;
- }
- if (from.has_net_3dcnn_parameter()) {
- net_3dcnn_parameter_ = new ::Measure::cnnParameter(*from.net_3dcnn_parameter_);
- } else {
- net_3dcnn_parameter_ = NULL;
- }
- if (from.has_seg_parameter()) {
- seg_parameter_ = new ::Measure::PointSiftParameter(*from.seg_parameter_);
- } else {
- seg_parameter_ = NULL;
- }
- if (from.has_yolo_parameter()) {
- yolo_parameter_ = new ::Measure::YoloParameter(*from.yolo_parameter_);
- } else {
- yolo_parameter_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:Measure.LocateParameter)
- }
- void LocateParameter::SharedCtor() {
- _cached_size_ = 0;
- ::memset(&area_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&yolo_parameter_) -
- reinterpret_cast<char*>(&area_)) + sizeof(yolo_parameter_));
- }
- LocateParameter::~LocateParameter() {
- // @@protoc_insertion_point(destructor:Measure.LocateParameter)
- SharedDtor();
- }
- void LocateParameter::SharedDtor() {
- if (this != internal_default_instance()) delete area_;
- if (this != internal_default_instance()) delete net_3dcnn_parameter_;
- if (this != internal_default_instance()) delete seg_parameter_;
- if (this != internal_default_instance()) delete yolo_parameter_;
- }
- void LocateParameter::SetCachedSize(int size) const {
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- }
- const ::google::protobuf::Descriptor* LocateParameter::descriptor() {
- ::protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const LocateParameter& LocateParameter::default_instance() {
- ::protobuf_locater_5fparameter_2eproto::InitDefaultsLocateParameter();
- return *internal_default_instance();
- }
- LocateParameter* LocateParameter::New(::google::protobuf::Arena* arena) const {
- LocateParameter* n = new LocateParameter;
- if (arena != NULL) {
- arena->Own(n);
- }
- return n;
- }
- void LocateParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(area_ != NULL);
- area_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(net_3dcnn_parameter_ != NULL);
- net_3dcnn_parameter_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(seg_parameter_ != NULL);
- seg_parameter_->Clear();
- }
- if (cached_has_bits & 0x00000008u) {
- GOOGLE_DCHECK(yolo_parameter_ != NULL);
- yolo_parameter_->Clear();
- }
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool LocateParameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:Measure.LocateParameter)
- for (;;) {
- ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional .Measure.Area3d area = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_area()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_net_3dcnn_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_seg_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_yolo_parameter()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:Measure.LocateParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:Measure.LocateParameter)
- return false;
- #undef DO_
- }
- void LocateParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Measure.Area3d area = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, *this->area_, output);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, *this->net_3dcnn_parameter_, output);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, *this->seg_parameter_, output);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, *this->yolo_parameter_, output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:Measure.LocateParameter)
- }
- ::google::protobuf::uint8* LocateParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:Measure.LocateParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional .Measure.Area3d area = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, *this->area_, deterministic, target);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, *this->net_3dcnn_parameter_, deterministic, target);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, *this->seg_parameter_, deterministic, target);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, *this->yolo_parameter_, deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:Measure.LocateParameter)
- return target;
- }
- size_t LocateParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:Measure.LocateParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 15u) {
- // optional .Measure.Area3d area = 1;
- if (has_area()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->area_);
- }
- // optional .Measure.cnnParameter net_3dcnn_parameter = 2;
- if (has_net_3dcnn_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->net_3dcnn_parameter_);
- }
- // optional .Measure.PointSiftParameter seg_parameter = 3;
- if (has_seg_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->seg_parameter_);
- }
- // optional .Measure.YoloParameter yolo_parameter = 4;
- if (has_yolo_parameter()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *this->yolo_parameter_);
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
- _cached_size_ = cached_size;
- GOOGLE_SAFE_CONCURRENT_WRITES_END();
- return total_size;
- }
- void LocateParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:Measure.LocateParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const LocateParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const LocateParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:Measure.LocateParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:Measure.LocateParameter)
- MergeFrom(*source);
- }
- }
- void LocateParameter::MergeFrom(const LocateParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:Measure.LocateParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_area()->::Measure::Area3d::MergeFrom(from.area());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_net_3dcnn_parameter()->::Measure::cnnParameter::MergeFrom(from.net_3dcnn_parameter());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_seg_parameter()->::Measure::PointSiftParameter::MergeFrom(from.seg_parameter());
- }
- if (cached_has_bits & 0x00000008u) {
- mutable_yolo_parameter()->::Measure::YoloParameter::MergeFrom(from.yolo_parameter());
- }
- }
- }
- void LocateParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:Measure.LocateParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void LocateParameter::CopyFrom(const LocateParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:Measure.LocateParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool LocateParameter::IsInitialized() const {
- return true;
- }
- void LocateParameter::Swap(LocateParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void LocateParameter::InternalSwap(LocateParameter* other) {
- using std::swap;
- swap(area_, other->area_);
- swap(net_3dcnn_parameter_, other->net_3dcnn_parameter_);
- swap(seg_parameter_, other->seg_parameter_);
- swap(yolo_parameter_, other->yolo_parameter_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- swap(_cached_size_, other->_cached_size_);
- }
- ::google::protobuf::Metadata LocateParameter::GetMetadata() const {
- protobuf_locater_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_locater_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace Measure
- // @@protoc_insertion_point(global_scope)
|