orml
orml copied to clipboard
Bug: Facemesh/Blazeface ORML model hash does not match up
Running https://github.com/openrndr/orml/blob/master/orml-facemesh/src/demo/kotlin/FaceMesh01.kt results in
hash for blazeface-1.0 is 587142c11e62d4e3947c848578788eecd4b8b157da5130d2526e9a3621c4ae70 but expected 8e4f04510214d3a734868ef682f75d7b3f1dc71be27ca528945ca5e555472887 (IllegalArgumentException)
Even when removing the cached model from /Users/xxx/Library/Application Support/orml/blazeface-1.0.pb
this does not get fixed.
The hash is stored here
https://github.com/openrndr/orml/blob/3438df62d7a66db6dbc98fa2747025649c2e78b9/orml-facemesh/src/main/kotlin/FaceMesh.kt#L143-L146
and simply replacing the hash does not help as it then returns
...
├─ FaceMesh01.main.{ :ApplicationBuilder }.{ :Program }.{ }.{ }(FaceMesh01.kt:49)
├─ FaceMesh01.main.{ :ApplicationBuilder }.{ :Program }.{ }.{ }(FaceMesh01.kt:64)
│ org.openrndr.orml.facemesh.FaceMesh.extractLandmarks(FaceMesh.kt:118)
├─ org.tensorflow.Session.Runner.feed(Session.java:248)
├─ org.tensorflow.Graph.outputOrThrow(Graph.java:211)
│
↑ No Operation named [input_1] in the Graph (IllegalArgumentException)
I loaded the downloaded file
❯ ls -alh blazeface-1.0.pb
-rw-r--r-- 1 xxx staff 419K Mar 28 19:17 blazeface-1.0.pb
in tensorboard and looked quite strange to me, but I havent done much with tensorflow since 5 years and I am unsure if my pb->tf logs script may made something wrong

Should be fixed in https://github.com/openrndr/orml/commit/2d2862f3d34e32eec9650118d82393a1c15e7175