redhuntlabs/Octopii

"WARNING:tensorFlow:No training configuration found..." When running tool

t3chn0t3s opened this issue · 1 comments

Greetings,

I became aware of this project via Intigriti's Bug Bytes newsletter. I went through the install using venv, but found that the following error is returned when I run the tool against the 'dummy-pii' local directory and the 'https://pii-carbonconsole.fra1.digitaloceanspaces.com' URL.

image

It seems to be working as expected as it returns a confidence value for the sample images containing "PII". I am running the tool within Kali 2022.1 using Python 3.9.12 within a virtualenv using venv. A GitHub issue for another project that lead me to add ", compile=False" to line 214 of the octopii.py script

image

I don't really understand the implications of the change, but it did result in the error no longer being returned. As I mentioned earlier, the tool seems to be working as expected, so to me it kind of seems like it is just "cosmetic".

This is an exciting project. Thank you for the time and effort put into developing it and sharing it with the world!

Yes, it appears to be a cosmetic thing, since it's just a Keras warning and not an error. According to a StackOverflow post, this is because Keras can't preserve Tensorflow optimizers. We will research into using Keras' optimizers instead of tf's. If that is unnecessary, we'll end up adding the compile=False flag too. Thanks for the tip.

Also, thanks for your feedback! We were absolutely thrilled to learn that Intigriti picked this up. The positive affirmation really motivates our research team.