Giter Club home page Giter Club logo

Comments (6)

tspannhw avatar tspannhw commented on May 24, 2024

were all the parameters set? the 2.1 version has different parameters. you need to delete the old processor and drop on a new one. make sure the model directory is readable

from nifi-tensorflow-processor.

simonellistonball avatar simonellistonball commented on May 24, 2024

Note that I also changed the expected name of model files in the modeldir, and hit this as a result. Per the README, we now assume the model is called graph.pb and the labels are in label.txt

from nifi-tensorflow-processor.

simonellistonball avatar simonellistonball commented on May 24, 2024

One other note... my bad... worked in test, not properly in a proper multi-threaded nifi... I've fixed up the approach to flowFile content reading to be more robust to race conditions, and seems to work for me now in a prod setting. Please update your build from HEAD and try again.

from nifi-tensorflow-processor.

rothkoe avatar rothkoe commented on May 24, 2024

... parameters have been adjusted

Payload from the ListFile processor to the inbound queue to tensorflow processor looks fine
FlowFile Details UUID 571ff52e-b643-4dd9-a551-f71da3757210, Filename squirrelshirt.jpg,File Size 0.00 bytes

But zero byte found in logs/nifi-app.log loading the graph.pb (below)?

2017-10-03 22:23:58,259 INFO [Timer-Driven Process Thread-10] c.d.processors.process.TensorFlowService getInception: 0 bytes /home/nifi/demo3/models/graph.pb

the nifi-bootstrapp.log shows

2017-10-04 08:52:26,772 ERROR [NiFi logging handler] org.apache.nifi.StdErr 2017-10-04 08:52:26.772827: W tensorflow/core/framework/op_def_util.cc:332] Op BatchNormWithGlobalNormalization is deprecated. It will cease to work in GraphDef version 9. Use tf.nn.batch_normalization().

It seems the installed tensorflow framework mismatches with the version of the loaded models /graph.pb.

What do you think?

from nifi-tensorflow-processor.

rothkoe avatar rothkoe commented on May 24, 2024

clean install of tensorflow 1.3.0 and the debug message helped to fix it

2017-10-04 11:13:23,933 INFO [Timer-Driven Process Thread-6] c.d.p.process.TensorFlowProcessor TensorFlowProcessor[id=e65b15cb-015e-1000-ca5e-3d043cbb8088] read 0 bytes from incoming file

GetFile processor works ... not ListFile (!)

Thanks

from nifi-tensorflow-processor.

simonellistonball avatar simonellistonball commented on May 24, 2024

Yep, my changes meant we now read the content from the FlowFile, not from an external file, so the best way to do it would be ListFile->FetchFile->TensorFlowProcessor, or as you say GetFile-> TensorFlowProcessor

from nifi-tensorflow-processor.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.